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

[Solved] GridView Ajax Binding

0 Answers 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
veera
Top achievements
Rank 1
veera asked on 21 Jan 2011, 02:11 PM
Hi All,

I am new to MVC and telrick and facing one issue with Ajax binding.i will explain you the scenario.

Issue #1 :

I am binding datatable to gridview.i am getting internal 500 error while ajax binding.

Issue#2 : is it possible to place the property name instead of Expression?

helper.Telerik().Grid(modeldata)

.Name(

"MedalWinners")      

 

.Columns(columns =>

{

columns.Bound(c => c.Sport);

 

//foreach (string column in (from columnName in data.Descendants("Columns").Elements("Column")

 

 

// select columnName.Value))

 

 

//{

 

 

// columns.Bound(column);

 

 

//}

 

})

.DataBinding(dataBinding => dataBinding.Ajax().Select(

"_Sorting", "Friends"))

==================

 

In this snippet i am planing to generate the columns dynamically.but i am getting expression error?.is it possible to place the property name instead of Expression(C=>C.Sport  to "Sport" like this).?

Thanks
Vru




Tags
Grid
Asked by
veera
Top achievements
Rank 1
Share this question
or