JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid How to pass data type dynamically in grid column

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #101577

    Hi team,
    We are following –
    we would like to create dynamic columns and data fields (i.e <span class=”pln”>dataFields, columns) means – -> we have columns and datatype field list in backend and we want to use those, instead of static fields like in the example.</span>
    We are trying to create the array object dynamiclly but it is failing. Can you suggest the issue
    Example –
    <div>this.elements.forEach(element => {</div>
    <div>const object= {</div>
    <div>label: element.label,</div>
    <div>dataField: element.field_name}</div>
    <div>const column=element.field_name+’:’+type;</div>
    <div>some home it create array of strings. and it does not works</div>


    this.elements.forEach(element => {
    const object= {
    label: element.label
    dataField: element.field_name}
    const column=element.field_name+’:’+type;
    some home it create array of strings. and it does not works


    Hi Gourav,
    From what you shared as a code I was unable to reproduce the issue you encounter.
    It will be the best to share a code example in order to give you the best solution.
    However I would suggest you to check the demos regarding data binding of the grid which use Smart.DataAdapter
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.