I'm a new user to the Aikido framework, and I'm finding it pretty frustrating exploring the CSOM javascript functions. All I want to do is to skip over a column when a user hits the tab. I dont know of a way to control tabindex, therefore I figure I could control the ExitedEditMode event and manually skip over the column, but havent been able to execute it. Any help is greatly appreciated.
Hello,
Indeed, WebDataGrid is quite different from UltraWebGrid both on the server and on the client, but the CSOM we employ is based entirely on the new standard Microsoft introduced in their ASP.NET AJAX client-side framework, so this is more or less the new standard for CSOM interaction. Maybe we need to document things a little bit better in examples and help -- point taken, we are working on that every day.
In addition to the online resources, you can use the debugger; keyword to debug the javascript in browser in order to see all available methods and properties. Public properties start with get / set. Private methods and properties are typically prefixed with underscores.
Here is a sample script for the task that you need to achieve (skip the second cell and go directly to third on exiting edit mode).
<script type="text/javascript"> function exitEdit(sender, args) { //debugger; var grid = $find("<%= WebDataGrid1.ClientID %>"); var cell = args.getCell(); var row = cell.get_row(); var newEditCell = null; if (cell.get_index() == 0) { newEditCell = row.get_cell(2); } if (newEditCell != null) { var editingBehavior = grid.get_behaviors().get_editingCore().get_behaviors().get_cellEditing(); // timeout needed to avoid entering exitEdit mode again - and end in recursion / stack overflow window.setTimeout(function() { editingBehavior.enterEditMode(newEditCell); }, 200); } } </script> <div> <ig:WebDataGrid ID="WebDataGrid1" runat="server" DataSourceID="AccessDataSource1" Height="350px" oninitializerow="WebDataGrid1_InitializeRow" Width="400px" > <Behaviors> <ig:EditingCore> <Behaviors> <ig:CellEditing> <CellEditingClientEvents ExitingEditMode="exitEdit" /> <EditModeActions EnableOnActive="True" EnableOnKeyPress="True" /> </ig:CellEditing> </Behaviors> </ig:EditingCore> </Behaviors> </ig:WebDataGrid> </div>
The CSOM is documented here online (online reference)
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebDataGrid~Infragistics.Web.UI_namespace.html
HTH,
Hi
The link suggested seems no to work and i cannot find any documentation about CSOM for the new WebDataGrid!?
Any advice is welcome
RegardsAdrian
Hello Adrian,
Please check this out : CSOM If you use 10.2 you are able to benefit from JavaScript intellisense support
Hope this helps
in your example, you used $find. Where is that in the CSOM reference? Also It seems that very little progress has been made with help file, since I can't find anything I need, such as getting reference to another column, populating dataproviders, etc. I am not sure if simply blaming Microsoft really helps developers here.
$find is part of MS AJAX Framework because of that you are not able to find it in our documentation. This function returns MS AJAX Component and for example $find('WebDataGrid1 ') should return the grid if it has been found on the page.
If you go through the documentation of WebDataGrid you will see that there are information and code (C# / javascript) showing how to use each one of its behaviors.
https://es.infragistics.com/help/aspnet/webdatagrid-behaviors
Hope this helps.
I am sorry it does not help at all. Looking through topics and hoping for examples is not what I am expecting to find as a paid customer.
Hello mingdyansty,
would you be able to share with us what you are trying to achieve may be I will will be able to help you in that direction.
I am sorry but it does not address what I am looking for. The video is too general.
Please take a look at this video : http://community.infragistics.com/aspnet/media/p/79141.aspx
I would like to use the hierarchical gird. Both master and detail grids have lookup columns with dropdown boxes. Parent grid has three columns: Phase, status and comments. Phase and statuses are drop down columns. Child grid has a dropdown list column called milestone. During editing process on the parent row, whevever the user selects different value from the dropdown list in the Phase column, status column will be presented with different lookup values. Not only that, available choices for the milestone will changed as well based on the selection. CRUD must be enabled for both parent and child grid.