Completed
Last Updated: 19 Aug 2015 11:11 by ADMIN
Steve
Created on: 11 Feb 2015 18:27
Type: Bug Report
1
InvokejQueryFunction can only return a string
Currently, InvokejQueryFunction can only return a string, which is not good when a jQuery functon being called returns something other than a string, the data returned is useless - see:
http://www.telerik.com/forums/getting-non-string-values-back-from-invokejqueryfunction

It would be REALLY nice if this call could return an object, or something other than a string - as in the example in the above forum post shows a jQuery function returning an array.
1 comment
ADMIN
Daniel Djambov
Posted on: 19 Aug 2015 11:11
Telerik: the issue is fixed and we are now not limited to string only, but return whatever type is needed, using override of the existing method like this: 

MyObj[] obj = Pages.JsTree.UsingJsonDiv.AsjQueryControl().InvokejQueryFunction<MyObj[]>("jstree('get_selected', 'true')"); 

where for example

public class MyObj
 {
 public string id;
 public string text;
 }

Solution will available in our next product release planned to be out by the end of Aug 2015.