Skip to content

Replies

0
Josh
Josh answered on Jul 9, 2012 9:51 PM

Good to know, thanks.

0
Josh
Josh answered on Jul 6, 2012 3:17 PM

Thanks Borislav.  I had a suspicion they might be js native types.  This makes sense.

0
Josh
Josh answered on May 30, 2012 11:07 PM

Thanks Borislav!  This works perfectly.  It's a shame there's not a built-in 'readonly' method, but this was pretty straight-forward.

Just wanted to add that anyone who wants to do this should probably namespace the event handling.  Then, when you unbind the "cancelling" handlers when readonly is set to false, you won't unbind any other handlers attached to these events.

http://docs.jquery.com/Namespaced_Events

0
Josh
Josh answered on May 24, 2012 3:13 PM

Thanks, but this isn't exactly what I'm looking for.  Sorry, should have been more specific.  What I want is something like a regular html control's "Readonly" or "Disabled" attribute, where the control is completely uneditable and indicates this visually (in most cases they're "greyed out").

In the case of the IgGrid, I would want the user to be unable to make any selections, sort, or use any of the other Grid functionality.

I should also mention that my grid is generated from the MVC Helper, just in case there are inconsistencies between this and the client-side generation.

0
Josh
Josh answered on May 4, 2012 6:04 PM

Hi Josh,

As psurobdude suggested, you will need to parse the serialized date from the server response.

Just to be clear, psurobdude is looking for the answer, and I made the suggestion :).

0
Josh
Josh answered on May 2, 2012 6:03 PM

Correct, no, you can't use the method I linked to directly in IG's itemtemplate.  You'd convert the date values in your datasource using javascript, then send your datasource to igcombo with the dates already in an acceptable format.

There may be some way to have IG's datasource recognize JSON dates and display them formatted in the way you like, but it's not immediately apparent to me from looking at their documentation.

http://www.igniteui.com/help/api/2015.2/ig.datasource

0
Josh
Josh answered on May 1, 2012 11:33 PM

Check out this post in Stack Overflow.  It involves using the native js Date object:

http://stackoverflow.com/a/2316066/732673