|
L10n.load({
'en-US': {
'pager': {
'pagerInfo': "{0} of {1} pages ({2} records)",
'firstPageTooltip': "Go to first page",
'lastPageTooltip': "Go to last page",
'nextPageTooltip': "Go to next page",
'previousPageTooltip': "Go to previous page",
'nextPagerTooltip': "Go to next Pager",
'previousPagerTooltip': "Go to previous Pager",
'pagerDropDown': 'PageSize',
'All':'PagerAll'
},
}
});
<TreeGridComponent dataSource={formatData} allowPaging={true} treeColumnIndex={1} childMapping='subtasks' pageSettings={this.pageSettings} ref={g =>
this.treegrid = g} >
<ColumnsDirective>
. . .
</ColumnsDirective>
</TreeGridComponent> |
|
<DropDownListComponent id="ddlelement" change={this.onChange.bind(this)} dataSource={this.sportsData} />
<TreeGridComponent dataSource={formatData} allowPaging={true} treeColumnIndex={1} childMapping='subtasks' allowPaging='true' pageSettings={this.pageSettings} ref={g => this.treegrid = g} height='220'>
. . .
<Inject services={[Page, Filter, Toolbar]}/>
</TreeGridComponent>
Change event:-
onChange(args){
. . .
var locale = args.value;
this.treegrid.locale= locale; // need to dynamically change the locale for grid
L10n.load(localede); // load corresponding culture text
setCulture(locale); // Change the Grid culture
} |