Hi,
I am having the issue with the frozen column not working when I hide the SelectFields column.
code is as follows:
<ClientSetting>
<Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="2" />
</ClientSettings>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="region_name" HeaderText="region"/>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="region_id" SortOrder="Ascending" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
it is all working fine until I do this in the code behind:
grdResult.MasterTableView.GetColumnSafe("region_name").Display = false;
Then the frozen column is not working, but horizontal scroll is still there..except all of the columns are moving now.
Advice please. Need it asap...
Cheers
Josh
I am having the issue with the frozen column not working when I hide the SelectFields column.
code is as follows:
<ClientSetting>
<Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="2" />
</ClientSettings>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="region_name" HeaderText="region"/>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="region_id" SortOrder="Ascending" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
it is all working fine until I do this in the code behind:
grdResult.MasterTableView.GetColumnSafe("region_name").Display = false;
Then the frozen column is not working, but horizontal scroll is still there..except all of the columns are moving now.
Advice please. Need it asap...
Cheers
Josh
10 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 13 Jun 2008, 06:17 AM
Hi Josh,
Can you try hiding the column using the Visible property?
Thanks
Princy.
Can you try hiding the column using the Visible property?
grdResult.MasterTableView.GetColumnSafe("region_name").Visible= false; |
Thanks
Princy.
0

Josh
Top achievements
Rank 1
answered on 13 Jun 2008, 06:21 AM
Hi Princy,
Thanks for the reply,
but I have tried both scenarios Display and Visible...both producing the same result...
Cheers
Josh
Thanks for the reply,
but I have tried both scenarios Display and Visible...both producing the same result...
Cheers
Josh
0

Josh
Top achievements
Rank 1
answered on 13 Jun 2008, 07:13 AM
Ok I think I found the problem
It is still a bug with the horizontal scroll/frozen column.
Basically, it will work only on certain grid width and browser width. When I ran it on my browser fully expanded, the problem occurs, when I minimize and make my browser smaller, it is working fine.
So I reckon the problem is with some calculation of the screen size? As my grid width = 100%;
To aid reproducing the error, my screen resolution is 1920x1200. My Grid width is 100% in a framed window on the right hand side, left frame 60px width. My headerstyle width is 150px, with a total of 14 columns, happens after I hide the 4th column, (so 10 showing, 4 hidden). header/cell padding = 2px 2px 2px 2px.
Please confirm?
Cheers,
Josh
It is still a bug with the horizontal scroll/frozen column.
Basically, it will work only on certain grid width and browser width. When I ran it on my browser fully expanded, the problem occurs, when I minimize and make my browser smaller, it is working fine.
So I reckon the problem is with some calculation of the screen size? As my grid width = 100%;
To aid reproducing the error, my screen resolution is 1920x1200. My Grid width is 100% in a framed window on the right hand side, left frame 60px width. My headerstyle width is 150px, with a total of 14 columns, happens after I hide the 4th column, (so 10 showing, 4 hidden). header/cell padding = 2px 2px 2px 2px.
Please confirm?
Cheers,
Josh
0
Hello Josh,
Can you please open a support ticket and attach to it a small runnable sample that reproduces the issue you experience? Thus we will do our best to provide a solution.
All the best,
Pavel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Can you please open a support ticket and attach to it a small runnable sample that reproduces the issue you experience? Thus we will do our best to provide a solution.
All the best,
Pavel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Niko
Top achievements
Rank 2
answered on 10 Sep 2008, 09:30 AM
I get a problem like that too.
i init the columns at server,and some of them display is false,but if i do Frozen column things,all the column is display on the FireFox.
and the
i init the columns at server,and some of them display is false,but if i do Frozen column things,all the column is display on the FireFox.
and the
UseStaticHeaders = true make the page align not well on the IE.
0
Hi,
I have prepared a small sample with a column that has Display=false and the Grid itself is using Static Headers. It behaves as expected under IE and FireFox. Give it a try and let me know if it meets your requirements or if there is something I am leaving out.
Regards,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have prepared a small sample with a column that has Display=false and the Grid itself is using Static Headers. It behaves as expected under IE and FireFox. Give it a try and let me know if it meets your requirements or if there is something I am leaving out.
Regards,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Niko
Top achievements
Rank 2
answered on 22 Sep 2008, 09:34 AM
hi .
my problem as fellow: i have to init all my columns on the server side.some them display = 'false'.
every column fixed width like '100px',and my grid can't fix width.
one: how can the grid show a scroll bar when the page got 100%,but not the page show a scroll bar itself.
two: the strange thing is if i do horizontal scroll ,some columns should display
disappeared on IE,and all the display = 'false' columns displayed on firefox.
i hope you can understand what i mean.
can you do a example like that for me ?thank you .
my problem as fellow: i have to init all my columns on the server side.some them display = 'false'.
every column fixed width like '100px',and my grid can't fix width.
one: how can the grid show a scroll bar when the page got 100%,but not the page show a scroll bar itself.
two: the strange thing is if i do horizontal scroll ,some columns should display
disappeared on IE,and all the display = 'false' columns displayed on firefox.
i hope you can understand what i mean.
can you do a example like that for me ?thank you .
0
Hello,
I have prepared a small sample which hides a column using Visible=false instead, but the end result should be what you need. Try it and let us know what you think.
Greetings,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have prepared a small sample which hides a column using Visible=false instead, but the end result should be what you need. Try it and let us know what you think.
Greetings,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Niko
Top achievements
Rank 2
answered on 24 Sep 2008, 09:12 AM
hi Pavel
Thanks for your help!
But I need some data in the hidden columns !
Thanks for your help!
But I need some data in the hidden columns !
0
Hi Niko,
In order to retrieve values from the columns marked with Visible = false consider adding those columns to the ClientDataKeyNames array of the master table and fetch them using the getDataKeyValue() method for the corresponding GridDataItem.
This online demo of the product illustrates the approach in question.
Best,
Stephen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
In order to retrieve values from the columns marked with Visible = false consider adding those columns to the ClientDataKeyNames array of the master table and fetch them using the getDataKeyValue() method for the corresponding GridDataItem.
This online demo of the product illustrates the approach in question.
Best,
Stephen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.