Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
UltraWebGrid cell info into Combobox and textbox
posted

I would like to learn how to get a specific cells value, and populate a textbox with that specific value not by selecting the cell either.  i.e.

Column 4, Row 1 cell = textbox.text, perferably in VB

 

I am new at this so, please  be nice.  I am sure it is something right under my nose just over thinking it.

Parents
  • 385
    posted

    Hi Dylan,

    I had to do something similar.  From what I understand, info from the grid is only available to the form using client-side events.  So for me, I went into the grid's properties, chose "display layout" and then "ClientSideEvents" then I picked an event.  Then I added javascript that looked like this(in my case, I wanted to take the text from a columns footer and then display it in a text box):

    function UltraWebGrid1_MouseOutHandler(gridName, cellId, key)

    {

     var row = igtbl_getRowById(cellId);
     var nextRow = row.getNextTabRow(false, true);

     var grid = igtbl_getGridById(gridName);
     var col = igtbl_getColumnById("UltraWebGrid1_rc_0_7");   
         
     document.getElementById(Subtotal).value = (col.getFooterText());

    }

    I had to run the page and look at  it with "View Source" to see what name the page called the grid and cell(UltraWebGrid1_rc_0_7) at runtime

    Hope this helps,

    JCC

Reply Children
No Data