@edwardsmarkff

@edwardsmarkff

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 46 total)
  • Author
    Posts
  • in reply to: getting JSON codepen example to work with CORS issue #108550
    edwardsmarkff
    Participant

    sorry should have said:

    1. visit: https://www.htmlelements.com/demos/grid/datagrid-bind-to-json/
    2. scroll to bottom of page and notice the “Edit the codepen” button at the bottom of the page
    3. on windows, do window-key “R”
    4. enter the following command & open up a new window:    chrome.exe –user-data-dir=”C://Chrome dev session” –disable-web-security
    5. go back to first window, and click “Edit the codepen” at the bottom of the page
    6. QUICKLY grab the URL to the codepen (it will morph into another URL after  a moment or so)  repeat if necessary
    7. paste URL into the newly opened window from step 4
    8. change the dataSource value to the following:  dataSource: ‘//htmlelements.com/demos/scripts/beverages.json‘,

    otherwise you get the CORS error.

    in reply to: bolding items #108536
    edwardsmarkff
    Participant

    this is excellent, thank you very much.

    you might consider including this in an example.

    in reply to: bolding items #108529
    edwardsmarkff
    Participant

    i found a workaround….   thank you.

    in reply to: html tags in a smart-window label #108526
    edwardsmarkff
    Participant

    scratch question please.  i was trying to put a drop-down-list in the title bar.   that appears to be impossible since the drop-down-list wont open properly.  😁

    in reply to: issue with numeric input #104839
    edwardsmarkff
    Participant

    i see this same behavior on firefox-113, chrome-113m safari, and edge testing with browserstack.com

    it just seems to intermittently skip certain numbers.  this MAY have something to do if you click “near” the arrow rather than right on the arrow, but i have yet to find a pattern.

    in reply to: issue with numeric input #104838
    edwardsmarkff
    Participant

    https://codepen.io/svetoslavjqwidgets/pen/xxyJPQL

    sorry but i still see it in most current FF & chrome, on two separate win-10 computers.  there does not seem to be any pattern which number is skipped.

    please try clicking to 25 or so and see if indeed it requires 25 clicks for you.

    i will continue to look for any pattern which might be causing this.

    in reply to: listbox template and dataSource #104373
    edwardsmarkff
    Participant

    ha ha thank you – i really should have thought of that before posting a stupid question on a public forum….!  😫

    in reply to: filling in a combo box using jScript #104238
    edwardsmarkff
    Participant

    yes i agree with you, but please see my example:    https://codepen.io/edwardsmarkf/pen/XWBazzR
    i am creating the smart-combo-box using jScript so i will be unable to use your method until after the appendChild() is called.

    
    let element = document.createElement('smart-combo-box');
    element.value = 'my default value!';
    document.querySelector('div').appendChild(element);  // notice this needs to be done after the value is assigned.
    

    as you can see from the console screenshot, the value is successfully added to the DOM object, but the value does not display properly.

    could this possibly be a software flaw?  (a possible workaround below)

    console

    
    // 2023-01-17 workaround to smart-html-elements problem
    document.getElementById('phoneticTranscriptionInputScreen').querySelectorAll('smart-combo-box').forEach( item => {
    if ( item.value ) {
    let tmp = item.value;
    item.value = '';
    item.value = tmp;
    }
    })
    
    in reply to: filling in a combo box using jScript #104224
    edwardsmarkff
    Participant

    i am sorry that my question was not clear:

    https://codepen.io/edwardsmarkf/pen/XWBazzR

    
    let element = document.createElement('smart-combo-box');
    element.value = 'default value!';
    

    providing the value does not appear to be working for me, as you can see, the provided value is not displaying.  i am only seeing a blank.

    EDIT:

    this statement works fine:

    
    document.querySelector('smart-combo-box').setAttribute('value', 'test');
    

     

     

    in reply to: assigning an event to EVERY cell #103689
    edwardsmarkff
    Participant

    also required:   'allowEdit' : false

    https://codepen.io/edwardsmarkf/pen/WNJGvwz

    i get the impression you should not try to use allowEdit together with template, since the two seem to conflict.

    • This reply was modified 2 years, 2 months ago by edwardsmarkff.
    in reply to: assigning an event to EVERY cell #103673
    edwardsmarkff
    Participant

    i THINK this will work:

    https://codepen.io/edwardsmarkf/pen/WNJGvwz

    imho the workaround is to set autoCreate to 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 2 years, 2 months ago by edwardsmarkff.
    in reply to: assigning an event to EVERY cell #103670
    edwardsmarkff
    Participant

    an 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.

    in reply to: assigning an event to EVERY cell #103669
    edwardsmarkff
    Participant

    could 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.

     

     

    in reply to: assigning an event to EVERY cell #103666
    edwardsmarkff
    Participant

    ok 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!

    in reply to: assigning an event to EVERY cell #103665
    edwardsmarkff
    Participant

    i also tried this:

    https://codepen.io/edwardsmarkf/pen/Baxzaje

    but addEventListener does not seem to “stick”….

Viewing 15 posts - 16 through 30 (of 46 total)