Dec 12, 2013, 11:41 AM
[CLOSED] Custom parameter in grid column Renderer
Hi,
We are creating a grid using dynamic columns from controller.
I need to pass custom parameters(string[]) in grid column Renderer which would call RowActionBtnState() method from external JS file.
Controller :
Please suggest.
We are creating a grid using dynamic columns from controller.
I need to pass custom parameters(string[]) in grid column Renderer which would call RowActionBtnState() method from external JS file.
Controller :
string[] userRoles = new string[] { "role1", ""role2", "role3" };
columns.Insert(0, new Column() { Text = "", DataIndex = "State_ID", Locked = true, Width = 40, Renderer = new Renderer() { Fn = "RowActionBtnState", FormatArgs = userRoles } });
JS file code : var RowActionBtnState = function (value, meta, record, index, userRoles) {
// Some Code
};
When I set a debugger inside RowActionBtnState() the userRoles parameter shows 1 everytime.Please suggest.
Last edited by Daniil; Dec 16, 2013 at 3:12 AM.
Reason: [CLOSED]