@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
admin
KeymasterHi tulio,
I meant that the codepen provided is invalid because nothing is seen in it. The issue is that the editor is not implemented as in the sample I referred to and that the data source is invalid. While the sample binds to beverages.json, your columns do not and the Grid is empty without any data loaded. It looks like that you want to use the grid in unbound mode as a spreadsheet and add dropdownlist editor to it. Is that right?
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
Unfortunately, the provided example is not working. There is no Grid on it.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
I cannot see a grid in the provided example.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
We are unable to reproduce this. Could you share an example?
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/March 4, 2022 at 8:19 am in reply to: Integrate admin templates with codeigniter application #102930admin
KeymasterHi
The JS files should be configured in the routing as well. Each page has different dependencies and the configuration should be set there.
Example:
{ path: '/dashboard-2', template: './dashboard-2/template.htm', styleUrls: ['./dashboard-2/styles.css'], scriptUrls: [ '../../../smart/source/modules/smart.calendar.js', './dashboard-2/index.js' ], title: 'Dashboard 2 - ' + defaultTitle }Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/March 3, 2022 at 7:36 am in reply to: Integrate admin templates with codeigniter application #102928admin
KeymasterHi,
In the folder of an admin template, there is a file called ‘routing.js’ and a setupRouting function inside it. There you can define the routes to the different page. To learn how to define a page, you can look at some of the folders in the admin template like: “detail”. It has 4 files inside it – index.htm, template.htm, styles.css and index.js. The index.js defines scripts after the page is loaded, styles.css defines page-specific styles, index.htm defines the page’s title, template.htm defines the page’s content.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi johnm,
Could you share a github project link which will allow us to test the reported behavior? Without being able to test it, the provided information is not sufficient for reproducing this.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
Please, subscribe to our newsletter to get notifications about the new versions. A new version will be released this month.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
You can share a codepen example – https://codepen.io/
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
You can share an example with a link to codepen. From the provided information, I think that the column with datepicker is not a ‘date’ column, but is a ‘string’ column.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
The reported behavior is confirmed and will be resolved in the next release.
Thank you for the feedback!
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
The editor should be set like that:
{ label: 'Order Date', width: 250, dataField: 'date', cellsFormat: 'dd-MM-yyyy', editor: { template: 'dateTimePicker', formatString: 'dd-MM-yyyy', onInit(index, dataField, editor) { } } },Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi Tullio,
Thanks for the feedback.
We tested this and tried to replicate the reported behavior without avail. Could you share a small codepen sample which shows the specific problem?
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
Thank you for writing.
The onRender and getValue callbacks should be added with the custom grid editor here. Please, take a look at https://www.htmlelements.com/demos/grid/editing-cascading/ which shows how to implement a custom Dropdownlist cell editor in the datagrid.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/admin
KeymasterHi,
I think that the formatFunction should be used instead here. Please, look at https://www.htmlelements.com/demos/grid/overview/
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts