1 Solution
Hi Praburaju,
Thank you for attached project. In the example, there is an error. In the near future, we will correct this. I have reviewed your code and detected following problems:
1) You try to use the client-side _aspxAttachEventToElement method, when this method is unavailable (script is not loaded).
2) Current ClientInstanceName of ASPxGridView and ClientInstanceName, which you use, are different.
I have modified your project. It is attached.
-
Hi,
Thanks for the quick replay to the above question. Now i need solutions for this query
1.Height doesn't set for the Aspx Grid in first tab page
2. But for the second Aspx Grid, its workingHow to set Height for Aspx Grid in first tab page?
-
Hi Praburaju,
The user control js function AdjustSize contains the server code that evaluated on the server and provide grid client name.
As the main page contains several user controls, last user control AdjustSize function replace other user controls AdjustSize implementations.
To overcome this issue pass grid client object to the AdjustSize function as parameter:
function AdjustSize(grid) { var height = Math.max(0, document.documentElement.clientHeight); grid.SetHeight(height - 40); }<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="true" Width="100%"> <ClientSideEvents Init="function(s, e) { AdjustSize(s); }" EndCallback="function(s, e) { AdjustSize(s); }" /> ... </dx:ASPxGridView> -
hi,
Thanks for the replay, i know that problem persist. let me know how to get the client instance name of AspxGridView in tab change -
Hi,
Thank you for your feedback. Please refer to the Q398679 report that describes a similar issue in greater detail.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+