@edwardsmarkff

@edwardsmarkff

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 52 total)
  • Author
    Posts
  • in reply to: grouping dynamically #108633
    edwardsmarkff
    Participant

    got it:

    grid.grouping.groupBy = ['productName'];
    grid.grouping.enabled = true;
    grid.grouping.expandMode = true;
    grid.columns[2].visible = false;

    not sure if this is documented anywhere, but the chrome-console helped me to find this by reverse-engineering a working grid-group example.

    using grid dynamically is incredibly powerful.  i hope that smart-elements starts to provide examples of dynamic-grid.  i believe that others would find it exceptionally useful.

    in reply to: grid dynamic load reload #108618
    edwardsmarkff
    Participant

    thank you!

    in reply to: getting JSON codepen example to work with CORS issue #108611
    edwardsmarkff
    Participant

    Actually, my suggestion works fine.

    sadly, there is not a chrome plugin to do this for us, or at least not one i could find that works.

    i should think simulating this with a plugin would be easy:    chrome.exe –user-data-dir=”C://Chrome dev session” –disable-web-security

    in reply to: getting JSON codepen example to work with CORS issue #108583
    edwardsmarkff
    Participant

    this is starting to become a big problem with all the codepen examples:

    
    Access to script at 'https://codepen.io/source/modules/smart.grid.js' (redirected from 'https://cdpn.io/source/modules/smart.grid.js') from origin 'https://cdpn.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    in reply to: using a Smart drop-down-list for a cell grid #108578
    edwardsmarkff
    Participant

    thank you.   there is a VERY MINOR typo on the page you referenced:

     

    Smart Grid Web Component Editing Cell Cropdowns Demo

    in reply to: grid very simple editing example #108554
    edwardsmarkff
    Participant

    ha ha !  i should have known that you would have an INFINITELY better way!   thank you.

    • This reply was modified 3 years, 3 months ago by edwardsmarkff.
    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….!  😫

    • This reply was modified 3 years, 9 months ago by edwardsmarkff.
    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;
    }
    })
    
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    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');
    

     

     

    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
    • This reply was modified 3 years, 10 months ago by edwardsmarkff.
Viewing 15 posts - 16 through 30 (of 52 total)