@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
September 6, 2019 at 7:32 am in reply to: horizontal range-slider missing selection track highlight from #100316
admin
KeymasterNow, this https://www.htmlelements.com/demos/slider/ticks-on-track/ works with CSS of >=4.0 but not in 3.2.
That is probably where the regression for the simpler case mentioned above was introduced!September 5, 2019 at 9:51 pm in reply to: horizontal range-slider missing selection track highlight from #100315admin
KeymasterI mean … since 4.0! I need additional CSS to make that div appear for horizontal sliders. This is a regression in your CSS. Please treat it as such.
Below is a quick fix:
smart-slider:not([orientation=vertical]) .smart-value {
--h: 2px; --d: -1px;
height: var(--h);
transform: translate(var(--d), var(--d));
}
September 5, 2019 at 5:20 pm in reply to: horizontal range-slider missing selection track highlight from #100314admin
KeymasterHi cetinsert,
Thanks for writing.
The smart-slider .smart-value CSS is used. You can customize the CSS class based on your application needs.
Best Regards,
George
Smart HTML Elements Team
https://www.htmlelements.comSeptember 5, 2019 at 2:02 pm in reply to: horizontal range-slider missing selection track highlight from #100313admin
Keymasterapplies to basic, non-range sliders too: https://www.htmlelements.com/demos/slider/basic/
September 5, 2019 at 1:25 pm in reply to: Grid – element.exportData() – missing time of dates #100311admin
KeymasterCan you provide an example?
September 4, 2019 at 3:42 pm in reply to: Grid – element.exportData() – missing time of dates #100309admin
KeymasterHi cetinsert,
.xlsx Dates are internally represented as numbers. If you add Format of your Date column in Excel or Google Spreadsheet, you will see that the value is exported correctly. We put a default ‘d’ format in the ver. 4.4.0 for Dates.
.html Dates export depends on the Grid’s cellsFormat property. The default value is ‘d’ which is (dd/MM/YYYY) during the Grid export, when no format is set. If you want to keep the time component, you will need to set your columns format.
Regards,
George
Smart HTML Elements Team
https://www.htmlelements.comSeptember 4, 2019 at 7:58 am in reply to: Grid – { editing: { enabled, batch } } – commandColumnDelete – width grow glitch #100303admin
KeymasterHi cetinsert,
Additional Grid settings are required:/*1*/ 'commandColumnEdit': { visible: false }, /*2*/ 'commandColumnCancel': { visible: false }, /*3*/ 'commandColumnUpdate': { visible: false }
Best Regards,
George
Smart HTML Elements Team
https://www.htmlelements.com/admin
KeymasterThe problem was that I had the first row frozen. It will get an exception as shown above if you try to insert before a frozen row.
If not frozen, then I can insert at 0, and it works. This gives me the most-recent-first insertion I want to show history.
I can see that it’s not obvious what the “correct” behaviour might be. It depends on the full definition of what you consider to be “frozen”.
I think anyway I didn’t need to freeze, as I just want to freeze the headers. I supposed the headers are automatically frozen anyway.September 2, 2019 at 7:12 pm in reply to: grid with css height auto and add new row fails to display rows after ~3 adds #100283admin
KeymasterThank you so much – I appreciate the prompt feedback! It allows me to move on to other things while waiting for a fix.
admin
KeymasterI would prefer to work with the bound data, though.
I’m afraid I am thoroughly confused about adding rows by creating a row and adding nodes to the grid, vs. adding rows to the data source.
The latter is my preference, and it does work, but only for append and insert but not insert at top.
I had hoped I could manipulate the data source, as it is most convenient for e.g. update an array from a REST fetch, but only having partial luck with this. Works if I want to add to the end or middle, just not at the top.admin
KeymasterBased on: https://www.htmlelements.com/demos/grid/dynamic-rows/.
Use rows.splice(0, 0, createRow()); in the example, within the addRow click handler.
Regards,
George
Smart Html Elements Team
https://www.htmlelements.com/September 2, 2019 at 6:54 pm in reply to: grid with css height auto and add new row fails to display rows after ~3 adds #100280admin
KeymasterHello,
We confirm the Grid component issue reported by jtara. We will resolve it in the next update.
Regards,
George
Smart Html Elements Team
https://www.htmlelements.com/admin
KeymasterSorry, I can’t find how to delete a post, I have to leave the duplicate above.
I looked at source code, and I find nothing that seems to prepend. Only add() and insert().admin
KeymasterUgh, sorry about that. The impossible forum software again.
smart.grid.row.js:282 Uncaught TypeError: Cannot set property 'row' of undefined at Row.render (smart.grid.row.js:282) at HTMLElement._renderFrozenRows (smart.grid.core.js:6944) at HTMLElement._recycle (smart.grid.core.js:6914) at DataAdapter.notifyFn (smart.grid.core.js:4535) at DataAdapter._notify (smart.data.js:193) at DataAdapter.insert (smart.data.js:634) at <anonymous>:1:35
September 2, 2019 at 6:27 pm in reply to: grid with css height auto and add new row fails to display rows after ~3 adds #100274admin
KeymasterSo, then I experiment from the console with e.g.:
document.addCourseGrid.dataSource.add({id:’mytest 2′, code:’f123aacdee’});
with results as I explained above.
This is with 4.3. -
AuthorPosts