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

[Solved] how to modify ajax result before sending

0 Answers 46 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.
mahmoud
Top achievements
Rank 1
mahmoud asked on 01 Aug 2011, 01:26 PM
Dear Teleriks,
I have an mvc grid which one of its column data comes from another source(i.e. user's name which comes from active directory).

I do it in server by this :
   columns.Bound(o => o.UserFullName)
                  .Template(o=>ProfileCommon.GetProfile(o.UserName).ToString())

but when the request comes from ajax i need to implement the "ClientTemplate" method of grid ajax. therefore calling
ProfileCommon.GetProfile(o.UserName) is not possible in it.

also I cannot edit the binding methods becuase of "gridaction" attribute modify the Query for 
paging/grouping/ordering.

so what should i do?
Tags
Grid
Asked by
mahmoud
Top achievements
Rank 1
Share this question
or