I use WebHierarchicalDataGrid, there are several bands (several levels of data).
For each band the RowEditingTemplate is specified.
I see that final page markup contains "rendered" template for each parent row. In other words, if a dropdown element is specified as template for child band, it will be rendered for each parent rows.
It is very insufficient, because the dropdown has a lot of values, and if my grid has a lot of rows, the size of page of will be excessively increased.
UltraWebGrid renders template only one time.
Maybe there is any option that forces to render template only once?
Hello Alexander,
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Thank you for your patience. After some further research I found that you can use $find over $get. With this you can pass in the ClientID and get or set the value, please see the following forum post for more information concerning this matter.
http://forums.infragistics.com/forums/t/24684.aspx
Other than this alteration there doesn’t appear to be any other alternate solutions to getting and setting the value for items in the RowEditTemplate.
Please let me know if you have any questions concerning this matter.
Seeing as how Dave has been able to answer your questions pertaining to entering a RowEditTemplate for a newly added row and having a delayed postback through batch updating I will look further into an alternate way of having a custom user control as a RowEditTemplate. I will give you a progress update by the end of the day Tuesday.
Thank you very much for help.
Could you share your thoughts on one more thing:
I want to use UserControl as RowEditingTemplate.
All works fine, the control is shown correctly but there is a problem with data binding, I've done it as shown below, but I don't like it, maybe you could suggest something better:
<ig:RowEditingTemplate > <ClientBindings> <ig:RowEditingClientBinding ColumnKey="SubRuleId" ControlID="subRuleTemplate" GetValueJavaScript="$get({ClientID}+'_txtSubRuleId'). SetValueJavaScript="$get({ClientID}+'_txtSubRuleId').value = {value};" /></ClientBindings><Template> <controls:SubRuleTempate runat="server" ID="subRuleTemplate"></controls:SubRuleTempate> </Template></ig:RowEditingTemplate>
SubRuleTemplate - it is UserControl. it has asp:TextBox with id = txtSubRuleId
I dont like the way I am getting to the edit controls located on UserControl:
$get({ClientID}+'_txtSubRuleId')
Alexander
Hi,There is no UpdateRowBatch event in the WDG. You'll need to handle RowUpdating, RowAdding, or RowDeleting off of the editing core behavior on the server. To commit changes, you can call grid.get_behaviors().get_editingCore().commit(). Be sure the grid is the container grid of interest, not the WHDG.
-Dave