jQWidgets Forums
Forum Replies Created
-
Author
-
March 17, 2014 at 8:43 pm in reply to: DropdownList in jQuery UI Dialog DropdownList in jQuery UI Dialog #51218
Thanks Peter. What I noticed is, when I use jqxWindow, it works well, however for jquery dialog it scrolls up the top.
March 17, 2014 at 6:58 pm in reply to: DropdownList in jQuery UI Dialog DropdownList in jQuery UI Dialog #51212And these dropdownlists are inside the jqxNavigationBar
Hi Peter,
Can the custom UI appear on the same row as the column name. I looked at filter demo’s. Is there a way to have checked filter show up on the same row as header?
Do you have an example of custom filter UI (on filter menu) with checked filters?
September 4, 2013 at 5:59 am in reply to: Grid Popup Editing using MVVM (knockout) Grid Popup Editing using MVVM (knockout) #28274+1 vote for an example to do this
June 28, 2013 at 7:38 pm in reply to: Grid row and column formatting Grid row and column formatting #24153Thanks Peter, we were able to use the cellrenderer methods to adjust the grid exactly to our needs.
April 29, 2013 at 5:00 pm in reply to: Having a showrowfilter = true slows things down Having a showrowfilter = true slows things down #20258Hi Peter,
Sorry I bumped this thread. I don’t have editors as the OP. I should have opened a new thread to help clarify
Please see the new thread.
Thanks
VikApril 29, 2013 at 4:18 pm in reply to: Having a showrowfilter = true slows things down Having a showrowfilter = true slows things down #20252Hello,
I have a similar issue as the OP. When I turn off filters
showfilterrow: false
, for my columns, performance increases *significantly*.
I have eight columns, that load initially and then additional columns are being shown/hidden from a dropdown checkbox list. When I turn off filters, it blazes through.
We’d like to use filters, however, performance is pretty bad. I’ve downloaded latest 2.8.2 and still the same issue.
Please advise.
Thanks.
Nevermind, there is a setting
clickToOpen: true
which works beautifully!
Thanks Peter, I’m able to style the menu item appropriately based on the link.
April 11, 2013 at 3:41 pm in reply to: Grid saving state to database Grid saving state to database #19073Hi Peter, I’ll put together a sample project to illustrate this.
April 10, 2013 at 3:57 pm in reply to: Grid saving state to database Grid saving state to database #19015After much testing I can confirm that object returned from getstate is same as object returned from the db. Not sure why the loadstate
("#asGrid").jqxGrid('loadstate', <em>thisStateFromDB</em>);
does not work
April 10, 2013 at 3:20 pm in reply to: Grid saving state to database Grid saving state to database #19011Hi Peter,
thisstate is the serialized form of object (state) which the “savestate” method gives out.
var state = $("#asGrid").jqxGrid('savestate');
Instead of ‘savestate’ , should I use ‘getstate’ ?
Is this correct way of saving state info to the database and fetching it back?
var state = $("#asGrid").jqxGrid('getstate');
Store state as string
JSON.Stringify(state)
to the database and then use
//statefromdb obj comes from db (JSON string)var thisstate =JSON.parse(statefromdb ); $("#asGrid").jqxGrid('loadstate', thisstate);
April 9, 2013 at 5:52 pm in reply to: Grid saving state to database Grid saving state to database #18912Thanks Peter for your reply.
1. I’m calling loadstate when I’m making customization to Grid (such as when a checkbox is selected to show/hide columns)
2. The state is parsed correctly. When I do a console.log for state before persisting to db is same as one before getting from db. (As seen by Firefox Firebug Window->Object
3. ‘m using the latest version (jQWidgets v2.8.0 (2013-Mar-22))Code snippets
//Saving data:
function SaveState(state) {
console.log(“GridState”, state);
var dataToSend = {
UserId: $(‘#UserId’).val(),
State: JSON.stringify(state) //<—- using JSON.stringify(state) to convert object into string for db storage
};$.ajax({
url: 'xx/SaveUserSettings/?UserId=' + dataToSend.UserId + '&SettingName=asGrid&SettingValue=' + dataToSend.State,
type:'POST',
data: dataToSend,
success: function (data) {
//alert('saved data ' + data);
}
});
}//Getting data:
//get 'views' info for the grid
$.ajax({
url: 'xx/GetUserSettings/?UserId=' + $('#UserId').val() + '&settingName=AssignmentsGrid',
success: function (data) {
var thisstate = JSON.parse(data); //<—- using JSON.parse(data) to convert string from db to object
console.log(thisstate);
//attempting to load the state
$("#asGrid").jqxGrid('loadstate', thisstate);
$("#asGrid").jqxGrid('refresh');
$("#asGrid").jqxGrid('render');
}
});Thank you Dimitar. Is there a way to do this natively, without using knockout way? I was hoping to see a function such as
$(‘#menu’).jqXMenu(‘Item Name’, ‘Item Value’);
February 22, 2013 at 4:46 pm in reply to: Menu click event in Firefox Menu click event in Firefox #15727Thanks Peter for the quick reply!
It appears when using native DOM objects FF does not support innerText element. I had to use innerContent and it worked.
However, that is not the case as in your example: when using jQuery $(event.args).text() and it is optimized to work with FF and IE.
Another related question:
Is there a way to provide “navigateUrl” option in the li element, such that when a li element is clicked they are taken to that url instead of catching the on itemclick method?
Thanks again for your quick response!!
-
AuthorPosts