jQWidgets Forums
Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
Author
-
Great! Thanks Nadezhda !!
Hi Nadezhda,
Thanks, Is it possible to hide it when there is no grouping but show it if grouping is applied and hide it again once grouping is removed ?
Thanks!
March 11, 2015 at 5:56 am in reply to: Tricky hyperlink in grid idea Tricky hyperlink in grid idea #68311Aha got it done. Thanks Dimitar. Here is the solution if someone interested.
Decided to keep same xml file format,
<products> <product docid="XXX123"> <productname>ABC</productname> .... </product> </products>
Added id in datafields,
datafields: [ { name: 'docid', type: 'string' }, { name: 'productname', type: 'string' }, ],
/* Create JQGrid */ $("#jqxgrid").jqxGrid( { width: 850, source: getAdapter(), pageable: true, sortable: true, groupable: true, autoheight: true, filterable: false, autoshowfiltericon: false, columnsresize: true, altrows: true, columns: [ { text: 'Product Name', datafield: 'productname',cellsrenderer: Opendocument}, .... ] });
Renderer function,
var Opendocument= function (id,row, column, value) { var _id= $('#jqxgrid').jqxGrid('getcellvalue', id, "docid"); var _pname=$('#jqxgrid').jqxGrid('getcellvalue', id, "productname"); var format = { target: '"_new"' }; var href="<a href=/$path/"+_id+"?OpenDocument>"+_pname; var html = $.jqx.dataFormat.formatlink(href, format); return html; }
March 10, 2015 at 1:54 pm in reply to: Tricky hyperlink in grid idea Tricky hyperlink in grid idea #68275Thanks Dimitar! Do you mean to accomplish hyperlink I need to redesign my XML file completely ? ain’t it possible to accomplish this using my existing schema ? Could you please provide sample example to hyperlink first column with your suggested schema ?
Thanks a ton!
March 10, 2015 at 8:11 am in reply to: Grid case insensitive filter Grid case insensitive filter #68248Thank you (y)
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)