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

Grid issue with Timespan

2 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ahmed Ilyas
Top achievements
Rank 1
Ahmed Ilyas asked on 18 Sep 2011, 08:05 PM
Hi.
using ASP.NET MVC here, and using the Telerik Grid control.
I ran into a problem where, the initial databinding is fine from the server end, which contains a timespan object. it shows the value just fine.

However, when you press the refresh button on the Grid, the data just disappears even though, the AJAX select call IS being called.

I then ran into this thread:

http://www.telerik.com/community/forums/preview-thread/aspnet-ajax/grid/timespan-object-with-mvc-grid.aspx

So I implemented the Client Template and that works. The problem now is that when you hit the refresh button - I see the icon just indicating its doing work but there is no work being done at all! No errors either.

so what can I do here to display the TimeSpan object correctly on client side, with these issues even when you hit the refresh button?



2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 22 Sep 2011, 07:39 AM
Hello Ahmed,

Refreshing RadGrid requires postback. I assume that is why it does not work properly in MVC. You can find more information on using RadControls for ASP.NET AJAX in ASP.NET MVC, you can refer to the below topic:
http://www.telerik.com/help/aspnet-ajax/mvc-limitations.html

However, I would suggest that you directly use our Grid extension for MVC.

Greetings,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Ahmed Ilyas
Top achievements
Rank 1
answered on 22 Sep 2011, 07:59 AM
my apologies for not making it clear but I am using the grid extensions
Tags
Grid
Asked by
Ahmed Ilyas
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Ahmed Ilyas
Top achievements
Rank 1
Share this question
or