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 posting in the community.
I suggest that you try setting the width of the rows selectors explicitly through the RowSelectorStyleDefault in your grid's DisplayLayout.
Note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.htmlAdditional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
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
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.
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!
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.
Thank You Petar! Much appreciated!
Would you know what I can do with this post?
http://community.infragistics.com/forums/p/66644/336823.aspx#336823
Please feel free to contact me if you have any further questions regarding this scenario.
I am attaching a sample illustrating the change in datasource and applying conditional styling scenario (on the test page, upon selecting a different node in a tree, the datasource of WebDataGrid is toggled).
Regarding manually updating your datasource, I suggest that you take a look at the following video illustrating WebDataGrid Manual CRUD:
http://blogs.infragistics.com/aspnet/media/p/218617.aspx
Note that you can update your datasource in the rowAdding/Updating/Deleting events, which will be fired for each modified row. More information on enabling and using the WDG BatchUpdating feature can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataGrid_Batch_Updating.html
Please let me know if this is helpful.
Sorry to be so bothersome but I am not having much luck with this new control as of yet. Another issue I am having is editing and saving the grid data. Because I have a complex sql select statement and I also change the bound datasource of the grid based on the tree selection, my datasource binding is done in vb programmatically. In the webdatagrid, I have the autocrud set to false and editingcore enabled and batchupdating set to true. I do this because I want the user to be able to edit any data in the grid without a postback and then to select a button that cycles through the rows and updates the data programmatically. Everything works ok until I go to save the updates. I cycle through the rows using
WebDataGrid1.Rows(iCount).Items(0).Value to get the value in a given cell. The problem is that this value is not the modified value, it is still the original value. Is there a way to get the modified values programmatically?
Thank You!
I am using 11.2 version. Changing from Ultrawebgrid to webdatagrid has been confusing and have not found much documentation on it. I did find a youtube video that helped me get a dropdown editor working correctly. It was basically in how I set it up. I am going to review my setup for the datepicker and see if I don't have it set up correctly. I will let you know.
On the styling issue, yes, I do reapply a new datasource to the grid on each selection of the webdatatree. What clause should I add?
Thank you!