Tom, I have created for you a altRows example here:
http://www.trirand.net/examples/appearance/alternate_row_background/default.aspx
Please, take a look at it and experiment with all the Themes available (25 of them) in the “Themes” tab below the example. You will notice that some theme roller themes do not support altRows, some do, some have very hardly visible differences.
Also, run FireBug for FireFox and check out how our setup is different from yours. Another thing to watch for – which version are you using? Please, try the very last official release (I believe 3.5.3 if I am not mistaken, 3.6 is still in beta).
Hopefully we can work this out.
Rumen Stankov
That is weird, did you get any specific error message while adding the grid to the toolbox? I just tried that and it worked fine for me.
Either way, adding to the toolbox is just convenient and is by no means necessary. Just copy the Trirand.Web.Dll assembly to your /bin folder. You also need to add the following clause to your ASPX page
and then you can use the grid in the page
Can you please check out the version and the Theme you are using? Some of the ThemeRoller themes shipped do not support that (or it is very hardly visibile – for example the Redmond theme and the Start theme). You can check out with the UI Darkness for example.
Just a quick update, we've changed the API a bit and moved everything in the HierarchySettings collection. HierarchyMode controls if grid is parent, child (or both, for example 2-nd level grid in a 3 level hierarchy).
We've optimized even more and if you check out the Hierarchy example here:
http://www.trirand.net/demo.aspx
You will see that we have a complete 3 level hierarchy based on Northwind (Customers -> Order -> OrderDetails) with just 1 line of javascript and 1 line of C#.
Comments are welcome.
Regards,
Rumen Stankov
I believe you can pretty much use the same logic, save the scrollTop before grid reload
var savedScrollTop = ts.grid.bDiv.scrollTop
and then restore it in the “gridComplete” event, instead of reseting to 0 (as is the original source). Will this work?
Rumen Stankov
Trirand
Hello David,
We just finished this feature and have uploaded one Grid -> SubGrid example in our online ASP.NET demos
http://www.trirand.net/demo.aspx
Let us know what you think. We believe it turned out pretty well (in terms of code complexity) – just one line of C# code, one new grid property (SubGridMode.Parent, SubGridMode.Child) and a couple of lines of javascript. You can see all code implementation details in the code tabs below the example.
We are also finishing up the documentation and it will be available on the site later this week.
Any questions / comments are as usual welcome.
Regards,
Rumen Stankov
Trirand
There is a client-side event gridComplete, you can use it to select the row that was originally selected. To obtain it, prior to the reload, do something similar to
var selRow = jQuery('#jqGridID').getGridParam('selrow')
then in gridComplete use something similar to this
jQuery('#jqGridID').setGridParam( {{ gridComplete: function()
Do you have DOCTYPE set for the page? Is it XHMTL 1.0 / 1.1 strict?
I just checked the page, it states incorrect javascript error on line 64, and indeed there is one extra “,” after the “repeatitems” option that might be problematic.
Also, I got “Operation Aborted”, which often happens when components try to modify the DOM in IE before the page is ready (document.readyState). My guess here is that if you move the 3 grids initialize logic in the jQuery document.ready even, things will go smoother.
Rumen
Hello David,
Yes, we are almost ready with that and expect to release this feature (subgrid in grid) Monday. We will let you know here when we are ready, the updates will show on our ASP.NET site here:
Thanks again.
Rumen Stankov
Trirand
Nothing that is built-in the grid to dynamically retrieve that from database, since this is a pure client-side side utility. The only (and as far as I can tell, the best) way to do it is to first featch the data from database and then when constructing the jQuery init statement from jqGrid to include it as a server variable, e.g. write it directly from server.
In ASP.NET that woud be
jQuery(“#jqGridId”).jqGrid …
..
…
where DropDownValues are calculated on the server.
Alright, so jqGrid does not really depend on the database (MySql, MS SQL, Oracle, etc) so from what I can tell this is an XML formatting issue.
You can try static XML formatting until you get it right, then froce Oracle produce the type of XML jqGrid accepts.
R.
My guess here is that you would need to define the grid in the page (e.g. the javascript would not be in the “open” event of the window).
Then, in the “open” event, you can trigger jQuery(“#GridID”).trigger(”reloadGrid”)
Hope this helps.
In ASP.NET, you would just write directly to Response, then in case of error just End() the Response stream. Then, what is sent to client will be displayed by the grid, e.g.
try
In ASP.NET, you would just write directly to Response, then in case of error just End() the Response stream. Then, what is sent to client will be displayed by the grid, e.g.
try
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top