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

[Solved] RADGrid Issues

7 Answers 222 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prem Kumar
Top achievements
Rank 1
Prem Kumar asked on 21 Dec 2009, 04:25 PM

Hi Experts,

 

We are using the licensed version of Telerik RadControls for ASP.NET AJAX for one of our ASP.NET project. We have some issues while using the telerik that we are unable to fix. Would really appreciate if you can provide us the fix.

 

Issue 1:

 

While using the RADGrid to render the values, we sometimes face a strange issue wherein the grid header gets extended out. When we debugged the issue through IEDeveloper, we found that “Padding-right:17px” gets added automatically. This issues frequently happens when we toggle between the ASP.NET tab control and the RADGrid with the issue is placed inside the tab control.

 

 

                Snapshot of the grid with the IEDeveloper debug details (Image attached below)

 

Issue 2:

 

We have another issue in the RADGrid with inline editing. Whenever a row is in edit mode (in EditFormSetting), moving the scroll bar in the RADGrid becomes sluggish. I have noticed his happening while RADComboBox is placed in editform.

 

 

Issue 3:

 

Is there a way to set the current focus to a particular row in the RADGrid? The requirement is, when I go an inline edit and save we actually rebind the data every time in the server which causes the grid to be refreshed and the scroll bar position also gets reset to the first row. I want the scroll bar position to be retained as it was before edit.

 

Query:

 

Is it possible to dynamically Bind an Entity list to the Telerik Grid? We have this feature in the ASP.NET grid which we have used extensively. Now, after incorportaing the RADGrid, we are unable to bind with our Entity list.

Is it possible to have dynamic columns for the above said entity biding ? The columns in the grid are dynamic based on certain crieteria, It can sometimes have 3 columns or it can some times have 10.

 

<telerik:RadGrid ID="dbgGridName" runat="server" EnableEmbeddedSkins="false"

                        Skin="Vista" AutoGenerateColumns="false" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"

                        Width="502px" AllowPaging="false" ShowHeader="true" AllowMultiRowEdit="false"                        OnItemDataBound="dbgAddIPUsageData_ItemDataBound" >

</telerik:RadGrid>

 

// Dynamic adding of columns to grid

arrayListColumns = GetSession("arrayListColumns") as ArrayList;

paramValues = (string[])arrayListColumns.ToArray(typeof(string));

for (int i = 1; i <= paramValues.Length; i++)

                {

                        CustomBoundColumn col2 = new CustomBoundColumn();

                        col2.DataField = Convert.ToString(paramValues.GetValue(i - 1));

                        col2.HeaderText = getGridColumnHeadings(Convert.ToString(paramValues.GetValue(i - 1)));

                        col2.ItemStyle.HorizontalAlign = HorizontalAlign.Left;

                        dbgGridName.MasterTableView.Columns.Add(col2);

                    }

 

The Entity is attached as a text file.

Code behind Binding :

List<SomeDataEntity> myEntityList = fetchDataListFromDB() ;

….

dbgGridName.DataSource = myEntityList;

dbgGridName.DataBind();

 

TIA,

Ravishankar

7 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Dec 2009, 04:51 AM
Hi,

#3 .  Have you tried setting  the SaveScrollPosition property of the Scrolling settings to True

 <ClientSettings> 
        <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" /> 
    </ClientSettings> 


Thanks,
Princy
0
Prem Kumar
Top achievements
Rank 1
answered on 11 Jan 2010, 08:43 AM
Hi Princy,

Thanks for the response and I apologize for the late reponse. The settings that you have mentioned in your post was already there in the code.
Any clue on other issues like issue 1 and 2.

Thanks
-Prem
0
Yavor
Telerik team
answered on 14 Jan 2010, 07:00 AM
Hi Prem,

Based on the supplied information, it is hard to determine what is causing the unwanted behaviors which you described. To track the issue further, it will be best if you open a formal support ticket, and attache a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.

Regards,
Yavor
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
Prem Kumar
Top achievements
Rank 1
answered on 15 Jan 2010, 01:00 PM
Hi Yavor ,

How do I create a support ticket?
We have a licensed version of telerix for ASP.NET AJAX.

Thanks
-Prem
0
Yavor
Telerik team
answered on 15 Jan 2010, 01:34 PM
Hi Prem,

You can log into your Telerik account, and open a support ticket from there.

Regards,
Yavor
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
BB Agrawal
Top achievements
Rank 1
answered on 18 Jan 2010, 07:07 AM
Hi There,
I could not find where to start a new thread that why I am posting my ques here. I dont know whether its a right place or not.

I am using RadGrid control of telerik since a long time. I have an issue with sorting. I have created 5-6 usercontrols and put that on the same page. The last user control is having a RadGrid. When I click on any any header of the grid data gets sorted but that takes me to the starting of the page i.e. on the top of the page. So every time the user tries to sort data he has to scroll again to see the sorted data. Do we have any feature in telerik thru which we can avoid this?

A quick reply is expected.

Thanks!
BB Agrawal
0
Yavor
Telerik team
answered on 21 Jan 2010, 08:45 AM
Hello BB Agrawal,

Subsequent to a sorting operation, you can set the focus to a given element on the page. Alternatively, you can scroll to an element in the grid, if you have scrolling enabled for the control. More information on this is available in the following article:

http://www.telerik.com/help/aspnet-ajax/grid-scroll-to-selected-item.html

I hope one of these options is applicable in your case.

Sincerely yours,
Yavor
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.
Tags
Grid
Asked by
Prem Kumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Prem Kumar
Top achievements
Rank 1
Yavor
Telerik team
BB Agrawal
Top achievements
Rank 1
Share this question
or