jQWidgets Forums
Forum Replies Created
-
Author
-
December 9, 2014 at 12:56 am in reply to: Check for number of row after retrieval (binding?) Check for number of row after retrieval (binding?) #63924
Never mind. I figured it out.
I added a callback function for the jqxDataAdapter.loadComplete and check the length of the data adapter. It works beautifully.
September 25, 2014 at 4:12 pm in reply to: Can the group header background color be changed? Can the group header background color be changed? #60075Works like a champ! Thank you Dimitar.
September 24, 2014 at 6:37 pm in reply to: Default sorting on multi-column Default sorting on multi-column #60003Hi Peter,
It works, with a deep gliche. :). If you have a datatable that is grouped, the sorting of a column will mess up the group.
For example, if you have a datasource that has the following columns:
State
City
Name
AddressAnd you have a datatable using the above datasource, grouped by State. If you don’t have a sorted column, and the the group is displayed in order with states that has A like Arkansas, Alaska, Az first. But, if you have a sorted column, for example, on the Name, and then the order of the State group is messed up badly.
Thanks.
Hi Peter,
No. I still want the advanced mode, but I want to include the simple mode by having the option “search All” in the search dropdown listbox.
September 23, 2014 at 9:04 pm in reply to: Default sorting on multi-column Default sorting on multi-column #59943How about just one column? Can it be sorted by Name within the State group?
March 19, 2014 at 9:01 pm in reply to: How to programmatically move columns in a grid. How to programmatically move columns in a grid. #51437Thank you Peter.
Is there also a method that can be used to move a row up or down?
Thanks
March 18, 2014 at 5:10 pm in reply to: How to read a value of a hidden column How to read a value of a hidden column #51312I have to use cellsrenderer from another column, and the use $(#).jqxGrid() to get the value of the rendering row. However, I wonder if it’s safe to do so?
Another question is, how to I find out if a row is already selected? If selectrow() is called inside the cellsrenderer(), it will of-course create a infinite loop.
Thanks.
March 6, 2014 at 7:23 pm in reply to: How to re-order the search field How to re-order the search field #50627But, is there a way to set the search field to a particular column on the list?
Thanks.
March 6, 2014 at 6:56 pm in reply to: How to re-order the search field How to re-order the search field #50626Filtering is nice. I don’t want to disable filtering.
When there is a will, will be there a way. 🙂
February 18, 2014 at 5:27 pm in reply to: How to change the "advance" text How to change the "advance" text #49693Thanks Peter, that works.
I start liking your product. :))
February 15, 2014 at 12:42 am in reply to: DataTable – Problem with reading XML data DataTable – Problem with reading XML data #49552Thanks Peter.
Finally, I figured it now. Even though that the data source is set to “xml”, it expected a string to return. I change the GetXmlData2() function to return a string type as shown below, and it works beautifully.
public string GetXmlData2()
{
this.ServiceDocument = GetData();
return View(this.ServiceDocument.Root.ToString());
}February 13, 2014 at 6:54 pm in reply to: DataTable – Problem with reading XML data DataTable – Problem with reading XML data #49483For more information, here is my result method in Controller
public ActionResult GetXmlData2()
{
this.ServiceDocument = GetData();
return View(this.ServiceDocument.Root);
return View(this.ServiceDocument.Root.ToString(SaveOptions.DisableFormatting));
}And here is my jqxDataAdapter
var source =
{
datatype: “xml”,
root: “MCNDATA”,
record: “Record”,
url: ‘@Url.Action(“GetXmlData2”, “Home”)’,
};As soon as the url is not set to a file, it does not work. I debugged and indeed the GetXmlData2() is called correctly, and the method return a valid Xml (basically the same xml from the same file)
Thanks.
February 13, 2014 at 6:14 pm in reply to: DataTable – Problem with reading XML data DataTable – Problem with reading XML data #49482hi Peter,
I know that I am a pain on the neck, but the sample you gave out is of course working only if you have the data on the client site (or hard-code it locally inside the script like you did. But in the real world it does not work that way.
I know that you cannot create all scenario. But, if jqwidgets claims to work with MVC, XML, binding remotely, and then it should have at least one example for MVC. In the MVC’s world, people would read data from the controller and return view(). That is the example (and scenario) that most people would looking for.
But thank you so much anyway. You are great technical supporter.
February 6, 2014 at 5:35 pm in reply to: DataTable – Problem with reading XML data DataTable – Problem with reading XML data #49092Hi Peter,
So, would you confirm that there is absolutely no way to use XML data (and so JSON) with jqDataAdapter, unless the XML is written to a file first? Basically, the XML string (or JSON string) requires special handling in a HTML page. All HTML reserved characters must be converted to pre-defined string. For example, double quote must be convert to ", less than sign (<) must be converted to <, and so on… And I don’t see jqDataTable, jqGrid, jqTreeGrid, jqDataAdapter together support the conversion.
Thanks
February 5, 2014 at 8:34 pm in reply to: DataTable – Problem with reading XML data DataTable – Problem with reading XML data #49034Hi Peter,
Do you have sample code that set the “localdata:” to a xml string?
Thanks.
-
AuthorPosts