Hi,
I have a RadGrid with a specific scrollheight set in the clientsettings section - all configured as normal.
In my RadGrid it works just fine until I got to add a new item. At that point the edit mode for the new item causes the item to appear above the scroll region and the whole scroll region moves down (and off) the page. I'd expect that the edit more would make the new item appear inside the scroll region and that the overall position of it would remain the same...
Any pointers or should I provide some code?
Regards,
Jon
I have a RadGrid with a specific scrollheight set in the clientsettings section - all configured as normal.
In my RadGrid it works just fine until I got to add a new item. At that point the edit mode for the new item causes the item to appear above the scroll region and the whole scroll region moves down (and off) the page. I'd expect that the edit more would make the new item appear inside the scroll region and that the overall position of it would remain the same...
Any pointers or should I provide some code?
Regards,
Jon
6 Answers, 1 is accepted
0
Hi Jon,
The "insert" RadGrid item is part of the header area, that's why it is outside the scrollable data container. Your options are:
- use Height instead of ScrollHeight - http://www.telerik.com/help/aspnet-ajax/height-vs-scrollheight.html
- use a popup edit form - http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx
- modify the ScrollHeight at runtime, when an insert item is to be shown
- use scrolling without static headers
Regards,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
The "insert" RadGrid item is part of the header area, that's why it is outside the scrollable data container. Your options are:
- use Height instead of ScrollHeight - http://www.telerik.com/help/aspnet-ajax/height-vs-scrollheight.html
- use a popup edit form - http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx
- modify the ScrollHeight at runtime, when an insert item is to be shown
- use scrolling without static headers
Regards,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jon
Top achievements
Rank 1
answered on 23 Oct 2009, 08:46 AM
Hi Dimo,
Hope you are well.
Thanks for the tips. I've gone with the first suggestion although it looks a little weird with the scroll bar now being so small when editing the record. It wouldn't have been so bad if the edit mode for existing records did the same. I guess that there must be some major reason for this in the underlying code.
The popup option would have been good but in all honesty I hate the look of the popup window. When you compare it to the look of the RadWindow appearance it looks somewhat unfinished. Is there any way to get the popup window appearing like the RadWindow or would I need to use a RadWindow with another web page for editing?
It would be nice to have the grid's built in popup look like the RadWindow as then it's minimal extra coding.
Regards,
Jon
Hope you are well.
Thanks for the tips. I've gone with the first suggestion although it looks a little weird with the scroll bar now being so small when editing the record. It wouldn't have been so bad if the edit mode for existing records did the same. I guess that there must be some major reason for this in the underlying code.
The popup option would have been good but in all honesty I hate the look of the popup window. When you compare it to the look of the RadWindow appearance it looks somewhat unfinished. Is there any way to get the popup window appearing like the RadWindow or would I need to use a RadWindow with another web page for editing?
It would be nice to have the grid's built in popup look like the RadWindow as then it's minimal extra coding.
Regards,
Jon
0
Hi Jon,
With the Q3 2009 release of RadControls, you will be able to use a RadWindow with a ContentTemplate, i.e. without the need to use a second web page. So you can try that approach.
I am afraid the possibilities to make a RadGrid popup edit form look like a RadWindow are rather limited currently.
Best wishes,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
With the Q3 2009 release of RadControls, you will be able to use a RadWindow with a ContentTemplate, i.e. without the need to use a second web page. So you can try that approach.
I am afraid the possibilities to make a RadGrid popup edit form look like a RadWindow are rather limited currently.
Best wishes,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jon
Top achievements
Rank 1
answered on 26 Oct 2009, 02:04 PM
Hi Dimo,
That sounds very promising - just what I'll need. Is that functionality available now in the beta of Q3 2009?
Regards,
Jon
That sounds very promising - just what I'll need. Is that functionality available now in the beta of Q3 2009?
Regards,
Jon
0
Hello Jon,
Yes, it should be available in the Q3 2009 Beta - see the release notes here:
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q3-2009-beta-vesion-2009-3-1016.aspx
Best,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Yes, it should be available in the Q3 2009 Beta - see the release notes here:
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q3-2009-beta-vesion-2009-3-1016.aspx
Best,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jon
Top achievements
Rank 1
answered on 26 Oct 2009, 03:14 PM
Hi Sebastian,
Great - I'll give this a try in the next couple of weeks. Just what I needed - good timing to need it!
Regards,
Jon
Great - I'll give this a try in the next couple of weeks. Just what I needed - good timing to need it!
Regards,
Jon
