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

Issue while implementing scrolling in hierarchical gridview

3 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pooja
Top achievements
Rank 1
pooja asked on 23 Dec 2011, 12:08 PM
Hello Telerik team,

I have created a telerik grid and customized it to implement hierarchy (The default Telerik hierarchical gridview does not solve our requirements). Within header template I have included the required column headers and column data within multiple item templates. I am using javascript to implement Expand and collapse functionality.

Now, there is a requirement to implement scrolling within this hierarchical grid. I have enabled the 'AllowScroll' property to 'true' as follows:
<ClientSettings>
          <Scrolling AllowScroll="True">
          </Scrolling>
 </ClientSettings>

this is working fine. but, when I set 'UseStaticHeaders' property to 'true' (to get static headers), the whole content of grid gets shrinked. And on expanding and collapsing multiple tables, the table content gets misaligned with the headers.
Can you help me in implementing scrolling for hierarchical grid views with static headers?
Note: I am using 2009 version of Telerik. Is this issue resolved in any newer version?

Thanks, 
Pooja

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 23 Dec 2011, 06:10 PM
Pooja:

I want to be sure that you've seen and implemented this important note in your application:

Note that when you use scrolling with static headers, Telerik RadGrid columns should declare HeaderStyle.Width. See the Scroll with static headers documentation.

Cheers!
0
pooja
Top achievements
Rank 1
answered on 26 Dec 2011, 02:30 PM
I have already seen and tried specifying Header width also. But, still it did not worked for me :(
Also, in my case header width will be dynamic based on size of data in respective column so I cannot fix it. I tried providing header width in pixels and percentage as well, still my grid content gets shrinked...
0
Shinu
Top achievements
Rank 2
answered on 27 Dec 2011, 05:09 AM
Hello Pooja,

Check the following code library.
Separate scrolls for inner tables in hierarchical grid

-Shinu.
Tags
Grid
Asked by
pooja
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
pooja
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or