This is a migrated thread and some comments may be shown as answers.

set height of rad pane to rad grid in grid client event

1 Answer 66 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Nataraj Vedula
Top achievements
Rank 1
Nataraj Vedula asked on 31 Oct 2008, 08:29 AM
Hi,

I have a grid defined in the middle pane of the splitter. When grid was created I want to set the height of the grid to the height of the middle pane(rad pane). For this i used the Client Event:"OnGridCreated". But i am having a problem while reading the pane height.

    function GridCreated(sender, args)  
    {  
     var pane = document.getElementsByName("TecaGridPane");  
     var x =  pane.get_height();  
    } 

This code throws an script error. Please provide me some pointers to read the rad pane height in the script function.
After getting the height of pane how can i assign it to the grid?
Any inputs on this will be very much beneficial for me.

Thanks in Advance,
Nataraj

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Nov 2008, 02:55 PM
Hello Nataraj,

I suggest to examine this KB article and use it as a base to further extend it in order to get the desired behavior.


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
Nataraj Vedula
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or