Hi,
I am trying to run the igHierarchicalGrid initializing example from this linkhttp://es.infragistics.com/help/topic/69219839-1383-42EC-AE2F-D625FA377083#initializing_jquery. I do not get + sign to expand next level. I am using IGniteUI trial version. Is there any dependency that I am missing? Please help.
Thanks
Pratibha
Hello PNajbile,
This is an intial update to let you know that I have received your inquiry an will be looking into this matter for you. I will follow-up with you on this thread on or before Friday.
Thanks!
Hi PNajbile,
I am doing some further looking at this issue. I will follow-up with you on this by or before Monday.
Hello Pratibha,
Thank you for your patience. I have done some further looking into this matter. I have been able to reproduce the issue. I am currently looking into see if the data or the grid is setup improperly concerning the child bands. I will continue to look into this matter and will give you a progress update by the end of the day tomorrow.
Hi Pratibha,
Thank you for your patience on this issue. This will just take a little bit more time to look into. I will follow-up with you once I have obtained some info from our developers pertaining to configuring the HierarchicalGrid with the Hot Towel Template.
For this issue I have made certain assumptions, that being it is your plan to implement the igHierarchicalGrid in a project that uses the Durandal Hot Towel Template.
I would like to however take a moment to confirm that using the Hot Towel Template is indeed the approach you are aiming to take. I ask this as while your project begins to implement the Hot Towel Template, when viewing your details.html, for example, it can be seeing that you are not using the Durandal MVC functionality but appear to be binding the grid in the standard way:
<section class="main-box">
<table id="grid1">
</table>
</section>
If you are intending to use the Durandal Hot Towel Template for your project, I can refer you back to the following resources:
http://es.infragistics.com/community/blogs/angel_todorov/archive/2013/08/06/using-the-ignite-ui-grid-and-breeze-js-in-a-hot-towel-spa-a-complete-crud-app.aspx
http://www.johnpapa.net/hottowel/
Realizing that you were initially referencing Angel's blog to create your sample, did you happen to see the sample attached to the bottom of the blog post? If no, this sample can serve as an example for the project set-up.
If you have indeed seen the sample provided on the blog post, let me know of any specific questions you may have pertaining to implementing the igHierarchicalGrid with the Hot Towel Template.
Thank you Pratibha!
Hello,
Angel's blog is using igGrid not igHierarchicalGrid. I am using igHierarchicalGrid. grid1 is initialized in viewAttached event because all ig resources are loaded at this point. Is there anything wrong there? Please help.
I finalized an example you can reference that implements the igHierarchicalGrid into the Hot Towel template. As you review this example you will find that I have the js file (igHierarchicalGrid.js) in my App/ViewModels folder. It is here that create my Knockout ObservableArray:
activate: function () {
//the router's activator calls this function and waits for it to complete before proceding
if (this.data().length > 0) {
return;
}
var northwindObservableCategories = {
data: ko.observableArray(
[
{
CategoryID: ko.observable(1),
CategoryName: ko.observable("Beverages"),
Description: ko.observable("Soft drinks, coffees, teas, beers, and ales"),
Products: ko.observableArray(
ProductID: ko.observable(1),
ProductName: ko.observable("Chai"),
CategoryID: 1,
QuantityPerUnit: "10 boxes x 20 bags",
UnitPrice: 18.0000,
UnitsInStock: 39,
UnitsOnOrder: 0,
ReorderLevel: 10,
Discontinued: false
},
…. Etc
};
…… return this.data(northwindObservableCategories.data())
})
I then have the corresponding html file (igHierarchicalGrid.html) that resides in the App/Views folder
<table id="hierarchicalGrid" data-bind="igHierarchicalGrid: {
dataSource: data,
primaryKey: 'CategoryID',
autoGenerateLayouts: false,
columnLayouts: [
key: 'Products',
primaryKey: 'ProductID',
foreignKey: 'CategoryID',
features: [
name: 'Updating',
editMode: 'cell',
enableDataDirtyException: false,
enableDeleteRow: false,
enableAddRow: false
]
],
inherit: false
}"></table>
You wouldn't want to use the details.html file for this purposes. The JohnPapa link provided is an ideal source for sorting through the template views: http://www.johnpapa.net/hottowel/
Pratibha, let me know if upon viewing this example if you have any additional questions.
**please note that due to file size constraints scripts, bin, Packages, etc have been omitted. These will need to be added in to run this example
The reference to durundal/http and durandal/app is essential to the Hot Towel Template as it takes in the relevant http.js and app.js files (that reside in the durandal folder) for processing, which are part of the Durundal Hot Towel Template plumbing. To read more about Durundal Hot Towel Template you can check out the Durundal documentation (http://durandaljs.com/).
For your inquiry pertaining to the Infragistics javascript files, you will find them in the AppStart/BundleConfig.cs file. This is how the required js files get loaded when developing a Durundal Hot Towel template which follows the MVVM design. For more on this, Angel touches on this in his blog: http://es.infragistics.com/community/blogs/angel_todorov/archive/2013/08/06/using-the-ignite-ui-grid-and-breeze-js-in-a-hot-towel-spa-a-complete-crud-app.aspx
Prathibha, just to ensure you are aware I want to state that the Hot Towel Template as which is being followed here is not the only way to develop an Infragistics HierarchicalGrid project. This Durundal Hot Towel template approach has been followed throughout this thread as this is the approach we understand is your requirement. To learn more about the Durundal Hot Towel template approach which follows the MVVM you can reference the above links as well as the http://www.johnpapa.net/hottowel/
Thanks Pratibha!
I have created a private case for you with case number CAS-121915-V3F4K7 where I have attached this same project to the private case
Thanks. I have a question..why do you use 'durandal/http', 'durandal/app' in ighierarchicalgrid.js? Also there is no ig.loader function.. how do you load iggrid resources? Somehow I cannot run this example. Please help.