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
745
How to assign value for Editor Control using JavaScript
posted

Hi ... I am using Infr2007v.3, In my application i am using a wedgrid..in that i am assigning a webdate chooser for a cell like below

 

 

 

UltraWebGrid1.Columns[6].AllowUpdate = Infragistics.WebUI.UltraWebGrid.

 

AllowUpdate

.Yes;

UltraWebGrid1.Columns[6].DataType =

 

"System.DateTime"

;

UltraWebGrid1.Columns[6].Type = Infragistics.WebUI.UltraWebGrid.

 

ColumnType

.Custom;

UltraWebGrid1.Columns[6].EditorControlID =

 

"WebDateChooser2"

;

i want to edit the data of column[6] using webdate Chooser...i want to display the current Date ..how can i do this using JavaScript

Parents
No Data
Reply
  • 49378
    posted

    Hi Naag C,

    It has been some time since your post, however in case you still need assistance with this I would be glad to help.

    Obviously I am not aware of your particular implementation specifics, but you should be able to change the values for all cells using code similar to:


    for(int i=0; i<igtbl_getGridById('UltraWebGrid1').Rows.length ; i++) {
    igtbl_getGridById(
    'UltraWebGrid1').Rows.getRow(i).getCell(6).setValue(newValue);
    }

    where newValue in your case should be some date value.

    Please contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Children
No Data