dgrid

How to apply multiple filters on a dstore?

拈花ヽ惹草 提交于 2020-02-25 09:21:08
问题 Let's say that a dstore has records with First name, Last name and Age. Now, I want records with First name as "Name1" OR Age= 25. How can I do this in dstore ? If I do, recordStore.filter({name: 'Name1'}, {age: 25}); then it returns the records having name as "Name1" AND Age=25. Another question, in the records of my dstore , there is an array also (comprising of colours). I want to filter the results based on the colours selected by the user. The problem that I face is that dstore.filter()

How to apply multiple filters on a dstore?

こ雲淡風輕ζ 提交于 2020-02-25 09:19:30
问题 Let's say that a dstore has records with First name, Last name and Age. Now, I want records with First name as "Name1" OR Age= 25. How can I do this in dstore ? If I do, recordStore.filter({name: 'Name1'}, {age: 25}); then it returns the records having name as "Name1" AND Age=25. Another question, in the records of my dstore , there is an array also (comprising of colours). I want to filter the results based on the colours selected by the user. The problem that I face is that dstore.filter()

dgrid custom sort issue

荒凉一梦 提交于 2020-01-07 02:50:07
问题 I'm trying to override the sort logic in dgrid as suggested by kfranqueiro in this link - https://github.com/SitePen/dgrid/issues/276. I get the data from the server in sorted order and just want to update the UI of column header. I'm doing this - On(mygrid, 'dgrid-sort', lang.hitch( this,function(event){ var sort = event.sort[0]; var order = this.sort.descending ? "descending" : "ascending"; console.log("Sort "+ this.sort.property + " in " +order+" order."); event.preventDefault(); mygrid

Dojo dGrid header checkbox to select all does not work

一个人想着一个人 提交于 2019-12-31 04:55:08
问题 I created a dojo dgrid however i used a form wizard to seprate the fields on the form, however with the current structure i am having an issue with the select all feature on the grid. I cannot select all however if i remove the div Page2 and it content from the form it works. In firebug i also inspected the DOM and i saw the 'aria-checked = mixed' when i check the select all box when it should be 'aria-checked = true'. How can i get the header checkbox to allow all records to be selected when

Dojo Dgrid - Use remaining space in block

百般思念 提交于 2019-12-25 12:45:19
问题 I have a block like this: <div class="container"> <div class="someStuff">Some stuff of unknown height</div> <div class="myDGrid" data-dojo-attach-point="dgrid"></div> </div> The DGrid is started like this: new (declare([OnDemandGrid, DijitRegistry]))({ store: ..., columns: ... }, this.dgrid); Requirements: The container block has some height. The someStuff block has some height that is dynamically set. The myDGrid block contains a Dojo DGrid. It should use the remainder of the space in

How to open dialog or popup when clicking on a cell in Dojo Dgrid

馋奶兔 提交于 2019-12-25 12:33:51
问题 I want to open a dialog box when clicking on a cell.I am using dgrid/editor. editor({field: "column1",label: "col1",editor: "text",editOn: "click"}) I am getting text box when using the above code.I want a dialog box.Please tell me how to get a dialog box.I am using OndemandGrid with JSONReststore to display the grid. 回答1: You don't need use editor to trigger a dialog, use click event on a cell is ok: var grid = new declare([OnDemandGrid,Keyboard, Selection])({ store: Observable(new Memory(

How to open dialog or popup when clicking on a cell in Dojo Dgrid

ⅰ亾dé卋堺 提交于 2019-12-25 12:33:28
问题 I want to open a dialog box when clicking on a cell.I am using dgrid/editor. editor({field: "column1",label: "col1",editor: "text",editOn: "click"}) I am getting text box when using the above code.I want a dialog box.Please tell me how to get a dialog box.I am using OndemandGrid with JSONReststore to display the grid. 回答1: You don't need use editor to trigger a dialog, use click event on a cell is ok: var grid = new declare([OnDemandGrid,Keyboard, Selection])({ store: Observable(new Memory(

Transform Javascript code to JSON and vice versa

ぃ、小莉子 提交于 2019-12-25 10:49:10
问题 I'm working on a small project in which I will work with dgrid dojo, the dgrid must be customized according to the profile of the person if he's administrator or simple user. The dgrid will be filled from a REST service, and I had the idea to not only fill the dgrid but also customize it with textbox, buttons and checkbox. For example here is the code of a dgrid with 2 columns whose fields can not be changed: window.Grid= new StandardGrid({ sort: "abbreviation", store: stateStore(), columns:

How to show all records at once in dojo dgrid?

﹥>﹥吖頭↗ 提交于 2019-12-25 05:33:17
问题 We are using dojo dgrid for tables in our web app. Generally, we use dgrid pagination but in one case we don't want to use pagination and show all records at once. I followed steps as mentioned in the following URL. But its not working. There is no error but it just don't show any records when I use SingleQuery. http://dgrid.io/tutorials/0.4/single_query/ 来源: https://stackoverflow.com/questions/30701456/how-to-show-all-records-at-once-in-dojo-dgrid

Dgrid Resizing within BorderContainer

China☆狼群 提交于 2019-12-23 12:26:36
问题 I have a dgrid within a BorderContainer with "liveSplitters" enabled (using Dojo 1.8). The dgrid comes up nicely, but when I move the splitter between the left column and the "leading" column (that the dgrid is within), the dgrid does not properly resize. However, if I resize the window a tad, then the dgrid snaps back into a proper size (i.e. filling 100% of the "leading" pane of the BorderContainer). I have dgrid set to 100% width in CSS. Is there some way I need to tell dgrid to refresh