@edwardsmarkff
@edwardsmarkff
Forum Replies Created
-
AuthorPosts
-
edwardsmarkff
Participantalso required:
'allowEdit' : falsehttps://codepen.io/edwardsmarkf/pen/WNJGvwz
i get the impression you should not try to use
allowEdittogether withtemplate, since the two seem to conflict.-
This reply was modified 4 years, 2 months ago by
edwardsmarkff.
edwardsmarkff
Participanti THINK this will work:
https://codepen.io/edwardsmarkf/pen/WNJGvwz
imho the workaround is to set
autoCreateto off to force the user to hover into the field, otherwise the tooltip would not open in a new cell.opinions, please…..!
-
This reply was modified 4 years, 2 months ago by
edwardsmarkff.
edwardsmarkff
Participantan issue i have experienced is that when you add a new row and you are using:
template : function (formatObject)the new template does not seem to work properly until you click on some other field, then go back and click again on the field in question. only then does the “template” seem to work.
-
This reply was modified 4 years, 2 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 2 months ago by
edwardsmarkff.
edwardsmarkff
Participantcould you please show me an example of the smart-tooltip on an editable cell that is added after the page renders?
please see my example: https://codepen.io/edwardsmarkf/pen/VwxjvME
and click the “add 74” button and then ADD a new row.
edwardsmarkff
Participantok this does what i want:
https://codepen.io/edwardsmarkf/pen/VwxjvME
but its VERY clumsy. hopefully one of the wizards at smart-html-elements can come up with a better way to associate a smart-tooltip with a cell.
note: for some reason, using “addEventListener” to a div (or any tag) in the grid does not seem to “stick”. you can issue the command in the code or in the console, but the tag does not change. so i decided to “split” the div and insert the extra characteristics in the middle.
there HAS to be a better way to do this!
edwardsmarkff
Participanti also tried this:
https://codepen.io/edwardsmarkf/pen/Baxzaje
but addEventListener does not seem to “stick”….
edwardsmarkff
Participantscratch question please — when i try to use grid inside a smart-window, the delete button stops working.
i am going to tey using a “delete?” checkbox column instead, where if the column gets checked, the row will be deleted.
edwardsmarkff
Participantor another dumb question: would it be possible perhaps in a future release to also include the deleted row with the onRowRemoved() callback ??
edwardsmarkff
Participant<span style=”text-decoration: underline;”>thank you very much.</span>
https://codepen.io/edwardsmarkf/pen/LYdqxWP 😁
i should think this would be necessary enough to require its own unique event: “onRowRemoving()” .
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participantis it possible to get the data contained in the row? the function onRowRemoved() appears to lose the data.
so this does not seem to work for me:
https://codepen.io/edwardsmarkf/pen/JjLwzGQ
or does require a new function “onRowRemoving()” dedicated to me? 😂🤣😂🤣
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participantthis did not work:
for ( const [key, value] in document.getElementsByClassName('smart-icon-delete') ) { let thisVal = document.getElementsByClassName('smart-icon-delete')[key] ; . . . . console.log(thisVal); . . . . console.log (typeof thisVal) ; . . . . thisVal.addEventListener('click', (event) => { console.table(event); } ) }-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participanthere is what i mean:
https://www.htmlelements.com/demos/grid/editing-dialog/
https://codepen.io/edwardsmarkf/pen/KKobVwj
i need to be able to determine which row was deleted by a jScript event.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participantthank you! its a mystery how i could have missed it.
can the textArea and dialog be combined somehow??
like this: https://codepen.io/edwardsmarkf/pen/dymQbyL
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participantha ah – wow i cant believe i missed that!
hey, just a suggestion. i am your BIGGEST fan customer out there (but obviously far away from the smartest) and yet somehow i missed/overlooked the little arrow to get more information on a subject.
is the arrow next to the property/event/method too small? or am i just not very observant?? (please dont answer that….)
i have been using smart-elements for a couple of years now and i have never noticed this before. 😳😳😳😳😳😳😳
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
edwardsmarkff
Participantgot it:
https://codepen.io/edwardsmarkf/pen/KKoeoZN
this was MUCH more difficult than it should have been. maybe provide a website example?
const myDropDownValues = ['one', 'two','three', 'last']; . . { label: 'Last Name', dataField: 'lastName', template: '' , editor: { template: 'dropDownList' , dataSource: myDropDownValues } },also, i never found anyplace where
editoris described in the documentation – at least not specifically under ‘grid’.-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 3 months ago by
edwardsmarkff.
-
This reply was modified 4 years, 2 months ago by
-
AuthorPosts