We are using Net Advantage 2011.2. We have a button click event where we pull webhierarchical grid data into it to save it based on functionality. However we are not getting webhierarchical grid data as expected. We are binding data from codebehind.
protected Sub btn_clickEvent(ByVal Sender as Object, ByVal e as EventArgs) handles btn.ClickEvent
Dim testGrid as Infragistics.Web.UI.GridControls.WebHeirarchicalGrid
testgrid = Me.GridFromUI
End Sub
In the above example we are not getting GridFromUI grid values. Please provide us a way to use data from Grid on a button click event
HI,Thank you i didnt declare client click correctly in above code. I have attached screenshot and the respective error. Please go through it.
Hello,
Did you check my sample? From what I see in your code you did not declare onClientClick property correctly. Please take a look at my sample to see how it should be done. If you need further information regarding this, here is an article - https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.onclientclick(v=vs.110).aspx .
I am looking forward to hearing from you.
Hi,
That sample was build using V11.2, However we are using v15.2 for now. I tried adding perform function to button click
<asp:button id="save" runat="server" on click="test" onClientClick="performUpdate">
<script>
function performUpdate(sender, event) { ig_controls.MainContent_g1.get_gridView().get_behaviors().get_editingCore().commit() event.preventDefault();}
</script>
In real time we are using VB.net and perform update function on client click is not working.
From my understanding on rowUpdating method we will get new values and we have to change values in dataset manually.Once row updating is complete it will move to button click event. Please guide me if my understanding it is not correct.
Hello Katti,
If you want to get access to the new values, you should trigger Row_Updating event from the client side. This can happen by executing this on your button click event:
After that you would have the old and the new values on the server:
I am attaching a working sample based on your sample.
Also, I am reminding again that the version you are using is retired several years ago and it is currently not supported. The product lifecycle is stated in the following page:www.infragistics.com/help/product-lifecycle.
Hi Tihomir Iliev,
All the solutions you provided are working successfully. Thank you. However we are not getting updated child band values on button click event (getting old values not updated values). Could you please look into this issue and kindly let me know if you need more information on this issue.