I am using an UltrawebGrid that is bound to a dataset. I hide 4 columns when viewing. I am having issues with the size of the rowselector size (see pic). I have tried to set the size of the rowselectorstyle.width, as well as each of the columns of the grid. I have also set the TableLayout to auto and I am still getting the same results. Anything I am overlooking?
Hi jcom39201,
Thank you for your reples.
Regarding your first query, the code you have provided seems ok. I have tested the scenario but am yet unable to replicate the described issue using version 11.2. However, there is a known issue causing similar effects which should be resolved in the latest service releases for 10.2 and 10.3 and later versions. I would need to know your exact product version in order to be able to provide more insight.
As per for your styling question, can you provide me with some more information - is the data source of your grid changed upon changing the selection in WebDataTree ? It may help to add !important clause in your classes to see if that has any effect.
Please feel free to contact me if you have any questions.
Petar,
I also am having issues with my css on the grid. When i initially run my page I have a webdatatree loaded with IDs. When the user selects an item in the tree it loads the webdatagrid and applies the css correctly. Everything works fine on the first id selected. If the user selects a different ID from the tree, it reloads the grid with new data but the css formatting does not get applied (i have some conditional formatting in the initialize row and it gets ran but the grid does not show the correct format).
This is the conditional css formatting I use.
{
;
}
Thanks!
Thanks Petar!
Another issue I am having is trying to add a DatePickerProvider. I use the following code to add it programmatically.
Me.WebDataGrid1.Behaviors.CreateBehavior(Of EditingCore)()
datePickerProvider.ID =
"DatePickerProvider1"
columnSetting.ColumnKey =
"0"
columnSetting.EditorID = datePickerProvider.ID
When I run the page and bind sql data to grid and then try to click in the cell that has a date, it shows the dropdown arrow image on the right of the cell but does not drop down a calendar. If I try to select another cell in that column I get this error...
microsoft jscript runtime error: sys.argumentexception: value must not be null for controls and behaviors. parameter name: element
Thanks
Thank you for your replies.
In WebDataGrid, column text alignment may be fixed using CSS. Please refer to the following guide for detailed instructions on customizing your grid's style:
http://blogs.infragistics.com/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
Regarding row iteration, I suggest that you handle the InitializeRow serverside event in order to implement your logic.
Please let me know if this helps.
Sorry, I did get the hide a column working, was my mistake but still not getting the cycle through the rows to work. Also trying to format the columns for alignment = center or alignment = right, also cell padding. How are those formatted now? Thanks