Skip to content

Conversation

@jandic
Copy link
Contributor

@jandic jandic commented Oct 14, 2013

Extended to support specification of default column sort order and mRender function specification. mRender function can be used for manipulating cell content on client side (e.g. make it a hyperlink with an image).

…ender function specification. mRender function can be used for manipulating cell content on client side (e.g. make it a hyperlink).
mcintyre321 added a commit that referenced this pull request Oct 14, 2013
Default column sort order and mRender implementation
@mcintyre321 mcintyre321 merged commit d91d356 into mcintyre321:master Oct 14, 2013
@mcintyre321
Copy link
Owner

Thanks for the code.

I'm sure you noticed, but if you didn't, you can also do cell rendering if you don't want to use mRender using the transform parameter:

DataTables.Create(userVms, dataTableParam, userVm => new { Name = "<a href='...'>" + userVm.Name + "</a>});

which does it server side.

@jandic
Copy link
Contributor Author

jandic commented Oct 14, 2013

Hi, yes, I saw that. But if you want to generate some long HTML based on an id, it makes more sense to do that client side to save bandwidth.

Pavel

@mcintyre321
Copy link
Owner

Sure thing - I think it's definitely good to have the option of either approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants