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

[Solved] What wrong with this grid

1 Answer 47 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.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 08 Feb 2012, 09:33 PM
i asked this question before but never got an answer, so i have supplied a bit more information, i have included a simple example project

When using a varable in databinding such as is done in the demo like this

.Select("_OrdersForEmployeeHierarchyAjax", "Grid", new { employeeID = "<#= EmployeeID #>" }))
my url comes out like
/Grid/_OrdersForEmployeeHierarchyAjax/%3C%23%3dEmployeeID%23%3E


The <#= InvoiceId #> varable is not rendering correctly?
Anyone know why this would happen?

this by the way did work for me in the past, its really doing my head in.

Thanks

1 Answer, 1 is accepted

Sort by
0
Alan Mosley
Top achievements
Rank 1
answered on 14 Feb 2012, 07:07 AM
Had a fesh look at the problem today and solved it straight away.i was using
id = <# =EmployeeID #> of cause this was being picked up by the defaut route
changed to
EmployeeID = <# =EmployeeID #>
and all is working


Tags
Grid
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Alan Mosley
Top achievements
Rank 1
Share this question
or