This is a migrated thread and some comments may be shown as answers.
Column formats are not maintained
6 Answers 26 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rahul Agashe
Top achievements
Rank 1
Rahul Agashe asked on 05 Mar 2010, 06:16 AM
I am appling a style to each column using CSS. The grid looks fine intially. But as soon as I uses a page navigation and moves to next page and come back to first page all the formatting applied to clumns is lost.

Basically my grid page size is 5 and on first page it shows 5 records but on the next page there are only 2 records. So when I navigate from 2nd page to 1st page only first 2 columns are formatted and rest are not.

Is this a bug with MVC grid?

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Mar 2010, 08:07 AM
Hi Rahul Agashe,

What version are you using? This shouldn't be a problem with the current release 2009.3.1320. I have attached a sample project.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rahul Agashe
Top achievements
Rank 1
answered on 05 Mar 2010, 09:08 AM
I tried to use latest Telerik.Web.Mvc.Dll (2009.3.1320.135) file in my current project, but now I am getting error as below,

"Method not found: 'System.Collections.Generic.IDictionary`2<System.String,System.Web.Mvc.ValueProviderResult> System.Web.Mvc.ControllerBase.get_ValueProvider()'."

I have not change anything in the code, which was running fine with previous version (2009.3.1218.235) of the dll.

Please advice. 
0
Atanas Korchev
Telerik team
answered on 05 Mar 2010, 11:37 AM
Hi Rahul Agashe,

You are using the wrong assembly version. You need 2009.3.1320.235 instead of 2009.3.1320.135 (the latter is for ASP.NET MVC 1).

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rahul Agashe
Top achievements
Rank 1
answered on 05 Mar 2010, 11:50 AM
From where do I get the assembly with version 2009.3.1320.235
0
Atanas Korchev
Telerik team
answered on 05 Mar 2010, 12:13 PM
Hello Rahul Agashe,

Both files are part of the Telerik Extensions for ASP.NET MVC zip file (within the binaries folder). Go download it from our web site.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rahul Agashe
Top achievements
Rank 1
answered on 08 Mar 2010, 11:34 AM
With the latest DLL formatting issue got resolved, but the now the problem is that Grid columns does not get formatted as per the CSS applied to them. They get proper CSS applied only is I perform some kind of action on the grid such as "Sorting/Paging".

Below is the code sample for the same,

columns.Add(o => o.PayrollDate).Format(

"{0:MM/dd/yyyy}")

 

.HtmlAttributes(

new { @class = " datefield", @style = "width:10%" })

 

Tags
Grid
Asked by
Rahul Agashe
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Rahul Agashe
Top achievements
Rank 1
Share this question
or