jQWidgets Forums
Forum Replies Created
-
Author
-
What I mean is when column property “pinned” set true and “hidden” set true – column is still visible.
Not a big deal, but confusing.
June 26, 2013 at 7:44 pm in reply to: Case sensitive fields in grid Case sensitive fields in grid #23933Thank you!
is it possible to put text into filter textbox after grid is loaded?
actually this is what i need!
Something like that:
if page needs to prefitlered i set filterAdded = true, then “processdata” i added filter data, then in “filter” event i set filterAdded to false and skips processdata (well adding filter)Now I need to figure out how to populate filter textbox in column header.
filter: function () {
filterAdded = false;
// update the grid and send a request to the server.
$(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘filter’);
},
sort: function () {
// update the grid and send a request to the server.
$(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘sort’);
},
root: ‘DataRows’,
processdata: function (data) {
if (filterAdded)
{
console.log(‘processdata’);
data.filterscount = 1;
data.filtervalue0 = ‘@ViewBag.FilterGridValue’;
data.filterdatafield0 = ‘@ViewBag.FilterGridField’;
data.filteroperator0 = ‘and’;
data.filtercondition0 = ‘EQUAL’;
}},
May 23, 2013 at 3:41 pm in reply to: Grid checkbox loses its state during scroll. Grid checkbox loses its state during scroll. #21772Works!
May 23, 2013 at 3:30 pm in reply to: Grid checkbox loses its state during scroll. Grid checkbox loses its state during scroll. #21771I see. Thank you. will let you know how it goes.
May 23, 2013 at 3:15 pm in reply to: Grid checkbox loses its state during scroll. Grid checkbox loses its state during scroll. #21769This seems to be jquery version issue plus some other variables. It works fine under 1.8.3 jquery.
Actually I figured out the way. Just dont use select event.
renderer: function (index, label, value) {
// var datarecord = data[index];
var img = ”;
if (index == 0)
img = ”;var table = ‘‘ +label + ‘‘ + img + ”;
return table;
}April 18, 2013 at 2:05 pm in reply to: Update data source property Update data source property #19551Thanks!
var salesRenderer = function (row, datafield, value) {
return “< a on-Click= >sales”;
};var customersListDataFields = [
{ name: ‘CustomerId’ },
{ name: ‘CustomerName’ }];var customersListColumnDefs = [
{ text: ‘Customer Name’, datafield: ‘CustomerName’, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ },
{ text: ‘Voice’, cellsrenderer: salesRenderer, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ }
];var showSales = function (s) {
$(s).qtip({
content: {
text: ‘Loading…’, // The text to use whilst the AJAX request is loading
ajax: {
url: ‘/customers/showcustomertooltipcontentfromserver’, // URL to the local file
type: ‘GET’, // POST or GET
data: {} // Data to pass along with your request
}
}
});$(s).qtip(‘toggle’, true);
}; -
AuthorPosts