Skip to content

Replies

0
Maya Kirova
Maya Kirova answered on Mar 20, 2013 3:00 PM

Hello seang,

 

Thank you for posting in our forum.

 

To get the index you’ll need to loop through the columns of the igGrid and find the index in which the column with that key is located in the collection. For example:

var currentRowInd = 0;
for (var i = 0; i < columns.length; i++) {
  if (columns[i].key == ui.columnKey) {
      currentRowInd = i;
  }
}

Let me know if you have any questions or concerns.

Best Regards,

Maya Kirova

Developer Support Engineer II

Infragistics, Inc.

http://es.infragistics.com/support

 

0
Maya Kirova
Maya Kirova answered on Mar 19, 2013 4:56 PM

Hello Karthik ,

 

I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

 

Best Regards,

Maya Kirova

Developer Support Engineer

Infragistics, Inc.

http://es.infragistics.com/support

 

0
Maya Kirova
Maya Kirova answered on Mar 19, 2013 4:54 PM

Hello siqingdu ,

 

I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

 

Best Regards,

Maya Kirova

Developer Support Engineer

Infragistics, Inc.

http://es.infragistics.com/support

 

0
Maya Kirova
Maya Kirova answered on Mar 13, 2013 4:31 PM

Hello Karthik ,

 

Thank you for posting in our forum.

 

As the error suggests you need to set for the grid the DataKeyFields property in order to be able to update values in the grid.

Generally the DataKeyFields should match the primary key of the collection you’re binding them to and should be unique for each record.

You could set in this case the RowID as the primary key of your data table and then set that in the DataKeyFields property of the grid.

 

Let me know if you have any questions or concerns.

 

Best Regards,

Maya Kirova

Developer Support Engineer II

Infragistics, Inc.

http://es.infragistics.com/support

 

0
Maya Kirova
Maya Kirova answered on Mar 13, 2013 3:19 PM

Hello siqingdu ,

 

Thank you for posting in our forum.

 

Is the WARP panel nested inside an update panel or perhaps the other way around?

Could you share an example with a page that produces your issue? A code snippet of how the ajax enabled controls are defined and nested inside each other would also be helpful.

 

In the meantime you can also try setting  for the script manager on the page:  ScriptMode="Release"

 

I’m looking forward to your reply.

 

Best Regards,

Maya Kirova

Developer Support Engineer II

Infragistics, Inc.

http://es.infragistics.com/support

 

0
Maya Kirova
Maya Kirova answered on Feb 7, 2013 2:30 PM

Hello Geovanny,

In the sample the columns are created dynamically and added to the grid’s columns collection as are the separate drop down editor providers.

Do you need the behaviors to be created runtime as well? If that’s the case before creating the columns and editors you can create the editing core behavior and the cell editing behavior using the CreateBehavior method. There’s an example with the selection behavior here:

https://es.infragistics.com/help/aspnet/webdatagrid-adding-a-behavior-at-runtime

Let me know if you’ve encountered any issues or if you have any questions.

 

Best Regards,

Maya Kirova

Developer Support Engineer

Infragistics, Inc.

http://es.infragistics.com/support

 

 

0
Maya Kirova
Maya Kirova answered on Feb 5, 2013 8:52 AM

Hello Geovanny,

 

If you want the drop downs to be visible only while you’re editing the cells you could use  DropDownProviders for the grid instead. There’s an example on how that would look here:

http://es.infragistics.com/products/aspnet/sample/data-grid/dropdown-editors

 

 

When you’re using only template column the  grid will not detect the changes you make in them since the template columns are unbound  so they have no connection to the actual data source of the grid.

 

The editor providers function a bit differently.  They’re assigned to a bound data field column from the grid and manage the values of the cells in that column. So if you change the selection via an editor provider the values of the cell will be changed accordingly and you would be able to commit them which would in turn raise the RowUpdating event where you can manage the updating to the data source.

 

I’ve updated Petar’s sample to use DropDownEditorProvider’s instead of templates. Please refer to it and let me know if this is what you’re trying to achieve.

 

 

Best Regards,

Maya Kirova

Developer Support Engineer

Infragistics, Inc.

http://es.infragistics.com/support

WebDataGridWithDynamicColumnsAndDropDowns_modified