Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • Hi,

                                    I tried to set height of grid using java script with the help of your reference link (http://www.devexpress.com/Support/Center/p/E1081.aspx), but its not working and the height is not set. some time the fire fox get crashed. I enclosed the output as image file, please check and contact ASAP.


                                AspxGridHeight_help.zip
                                You must  log in  or  register  to leave comments

                                1 Solution

                                -1

                                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.

                                Q410991.zip
                                • Praburaju Selvaraj 06.23.2012

                                  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 working

                                  How to set Height for Aspx Grid in first tab page?

                                • Ruslan (DevExpress) 06.25.2012

                                  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>
                                  
                                • Praburaju Selvaraj 06.25.2012

                                  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.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                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.