I can fill in the text box within the grid in javascript with this:
document.getElementById('datagrid1_0_isSelected').value = '1';
So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect):
document.getElementById('datagrid1_' + SRow.itemIndex +...
I have posted this in asp.net forum also, but since it involves Java, I wanted to put it here also.
In Server VB:
If dgMoves.Items(i).BackColor.Equals(System.Drawing.Color.LightSteelBlue) Then
SetAlertMessage("Selected: " & i)
End If
never equates to TRUE.
In server...
Is there a way to get the backcolor of a row in server code?
When the user clicks a button (say Process), then i need to loop thru the grid and capture the backcolor of each row in order to do something.
cannot write the following:
If dgGrid.items.item(i).backcolor = "Red" then...
Here is the background:
I have a datagrid in which i am programming client side events to enable multi-select or at least multi-highlighting.
Server side I added these 2 events in the Row_Databound event of the grid:
e.Item.Attributes.Add("OnClick", "HighlightRow( this );")...
In the RowDataBound event of my Datagrid, I have the following line of code:
e.Item.Attributes.Add("OnClick", "HighlightRow( this );")
in the HEAD of the page I have the following JS:
function HighlightRow(SRow)
{
var oItem = SRow.style.backgroundColor;
if(oItem != 'LightSteelBlue')...
Is there some way to pass in the number of records to return to a stored procedure and then use that variable to return TOP X from table?
ie:
@iHowmanyrecs integer
as
Select Top @iHowManyRecs from MyTable
or will I need to build a dynamic SQL string and then exec it?
PH
I was walking home...
I have the need to insert the name of the stored proc doing the insert into a table, but would like to make the code alittle more reusable. so rather than
Insert into mytable (ProcessName)
values('spThisStoredProcName')
I was hoping there was a way to get that from within the stored...
I have a datagrid that contains Checkboxes to allow the user to 'Select' a row.
The datagrid is contained within DIV tags.
I would like to call dgGrid_CheckChanged when the checkbox is checked or unchecked in order to highlight the row as a selected item.
This works fine, until the user has...
I have a Datagrid that contains CheckBoxes to allow the user to 'Select' a row.
The datagrid is contained within DIV Tags.
I would like to call dgGrid_CheckChanged when the checkbox is checked or unchecked to highlight the row as a selected item.
This works fine, until the user has scrolled...
I have imbedded a datalist control in my Datagrid.
This datalist is made up of Linkbuttons. HTML Below. (sorry about the formatting)
<asp:templatecolumn headertext="From Facility">
<ItemTemplate>
<asp:datalist id="dlFacilities" Runat="server" BorderColor="#CC9966"...
Can anyone guide me in this?
I would like to trap for Shift Key Press on my aspx page.
I have a datagrid that allows for multiple selections (dont think it's important how that is handled at this point).
Say the user selects the first item, the presses the shift key and selects the 5th item...
I have successfully implemented Denis Bauer's Hierargrid for imbedding a datagrid within a datagrid it works great.
My new problem is that I must imbed a datalist as the child control inside the Hierargrid now in order to use it's Horizontal Repeater.
I can not seem to cast the datagrid item...
Does anyone have experience with Microsofts DataSetHelper Class?
I have successfully implemented that method SelectGroupByInto when returning one field and grouping on that field, but when I attempted to return table with 2 fields grouped on the same 2 fields, I get an error withing the class...
I have a need to create datagrids (same one/same type of data/3 cols) on a page multiple times (indefinetely).
I thought I would start with a user control page with the datagrid on it and then add it to the page each time i need to, but not sure this is the way to go.
As a side-note, each grid...
I have a datagrid that will display about 5 columns with One row each in an ItemTemplate.
Here is a sample of the first column:
<ItemTemplate>
<% databinder.eval(container.dataitem "InfoField") %>
</ItemTemplate>
I have a + sign that when clicked, I would like to expand that row to show...
I am having a major issue getting a working CompareValidator into Datagrid.
Here is some background
Say i have a grid with 3 columns.
Column1 = ItemNo
Column2 = TotalNumber
Column3 = AvailableNumber
The only editable (textbox) column is AvailableNumber.
I have a working...
I know there is an easy answer to this, I am still a newbie though.
I have one datagrid - dgSecurity that is called upon clicking the detail button of the main data grid row - dgUsers.
above the dgSecurity grid - I have Edit/save/cancel buttons. In other words - I do not want the grid to...
I knew it was too good to be true. I have a datagrid that i just implemented Datapaging on - and that worked just swell, until.....
You delete the only record on the last page.
Say I have 6 rows in my datagrid and my pagesize is set to 5. If I page to the row #6 (2nd page) and click on...
I need to disallow editing on a datagrid based on some value in one of the cells. Here is some background.
I have a datagrid, that has edit and delete buttons for each row. When the click the Edit, the column changes to Update / Cancel buttons. Everything so far is fine with that.
One of the...
I have the need to create multiple datagrids based on a table returned in a dataset.
Dataset.table
Group# Value1 Value2
1 1 x
1 2 y
1 3 z
2 4 x
2 5 y
2 6 z
In the above case, I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.