Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi,

        I am trying to get a datatable using a jquery ajax call and display it in radgrid using Telerik Q2 2009. My call to the web method is going through and returning a datable from JSON.NET, but the datatable doesn't bind to the radgrid.

In Masterpage:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="frmMasterTest.master.cs" Inherits="frmMasterTest" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<<%@ Register Src="~/User Controls/ucPageHeaderStandard.ascx" TagName="ucPageHeaderStandard"
    TagPrefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Hazard</title>
    <link href="Hazard.css" rel="stylesheet" type="text/css" />    
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="120" EnablePageMethods="true">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/MainScript.js?Version=1" />                     
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            <asp:ScriptReference Path="~/Scripts/jqueryblockUI.js" />                        
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RALPMaster" runat="server" BackColor="#EEEEEE" Transparency="50">
        <div align="center">
            <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/Images/loading6.gif" />
        </div>
    </telerik:RadAjaxLoadingPanel>
 
    <div>                            
            <table cellpadding="0" cellspacing="0" border="2" width="100%">
                <tr>
                    <td valign="top">
                        <uc1:ucPageHeaderStandard ID="ucPgHdr" runat="server" EnableViewState="true" />
                        <asp:HiddenField ID="txtWireBillingNewLoanNum" runat="server" />
                        <asp:HiddenField ID="txtWireBillingReasonCode" runat="server" />                        
                        <asp:HiddenField ID="txtWIActionSummary" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <telerik:RadSplitter ID="rdSpltMain" runat="server" Orientation="Vertical" Width="99%"
                            Height="660px" CssClass="gradienceColor" VisibleDuringInit="false" LiveResize="true">
                            <telerik:RadPane ID="rdPaneLeft" runat="server" Width="50%" Height="" Scrolling="None"
                                CssClass="gradienceColor">
                                <asp:ContentPlaceHolder ID="CPHLeft" runat="server">
                                </asp:ContentPlaceHolder>
                            </telerik:RadPane>
                            <telerik:RadSplitBar ID="rdSpltBarMain" runat="server" />
                            <telerik:RadPane ID="rdPaneRight" runat="server" Width="50%" Scrolling="Both" CssClass="gradienceColor">                                
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tr>
                                            <td valign="top">
                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">
                                                <asp:ContentPlaceHolder ID="CPHTopRight" runat="server">
                                                    
                                                </asp:ContentPlaceHolder>
                                                <asp:ContentPlaceHolder ID="CPHRight" runat="server">
                                                </asp:ContentPlaceHolder>
                                            </td>
                                        </tr>
                                    </table>                                
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </td>
                </tr>
            </table>        
    </div>
    </form>
</body>
</html>

In TestNotes.aspx:

<%@ Page Language="C#" MasterPageFile="~/frmMasterTest.master" AutoEventWireup="true" CodeFile="testNotes1.aspx.cs" Inherits="TestInteraceNotes_testNotes1" %>

<%@ MasterType VirtualPath="~/frmMasterTest.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPHLeft" runat="server">
        
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                (function ($) {
                    $(document).ready(function () {
                        $('[Id$=Button1]').click(function () {                    
                            $.ajax({
                              type: 'POST',
                              url: 'TestNotes1.aspx/afLoadNotes',
                              data: '{}',
                              contentType: "application/json; charset=utf-8",
                              dataType: "json",
                              success: function(result) {
                                var mtv = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                                  mtv.set_dataSource(result.d);
                                  mtv.dataBind();                        
                              },
                              error: function(msg) {
                                alert('error');
                              }
                            });     
                        });
                    });
                })($telerik.$);
            </script>
        </telerik:RadCodeBlock>
    
        <div>                                
            <asp:Button ID="Button1" Text="Bind Grid" runat="server" />
            <div id="divGridContainer">
                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" Skin="Default"
                    AllowFilteringByColumn="true" AllowSorting="true" GroupingSettings-CaseSensitive="false">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="True" ScrollHeight="170px">
                        </Scrolling>                    
                    </ClientSettings>
                    <MasterTableView HierarchyLoadMode="Client">
                        <Columns>
                            <telerik:GridBoundColumn DataField="Date" FilterControlWidth="60px" HeaderText="Date"
                                HeaderStyle-Width="100px" ItemStyle-Width="100px" SortExpression="DateForSort">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Note" HeaderText="Note" FilterControlWidth="230px"
                                HeaderStyle-Width="270px" ItemStyle-Width="270px">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="User" HeaderText="User" FilterControlWidth="40px"
                                HeaderStyle-Width="80px" ItemStyle-Width="80px">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Type" HeaderText="Type" FilterControlWidth="40px"
                                HeaderStyle-Width="80px" ItemStyle-Width="80px">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </div>
        </div>
</asp:Content>
In TestNotes.aspx.cs
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.Services;
using System.IO;
using Newtonsoft.Json;
 
public partial class TestInteraceNotes_testNotes1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
             
        }
    }
 
    [WebMethod]
    public static string afLoadNotes()
    {
        Web Service call returns a datatable
        return Serialize(dt);
    }
 
    public static string Serialize(object value)
    {
        Type type = value.GetType();
 
        Newtonsoft.Json.JsonSerializer json = new Newtonsoft.Json.JsonSerializer();
 
        json.NullValueHandling = NullValueHandling.Ignore;
 
        json.ObjectCreationHandling = Newtonsoft.Json.ObjectCreationHandling.Replace;
        json.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore;
        json.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
 
        //if (type == typeof(DataRow))
        //    json.Converters.Add(new DataRowConverter());
        //else if (type == typeof(DataTable))
        //    json.Converters.Add(new DataTableConverter());       
 
        StringWriter sw = new StringWriter();
        Newtonsoft.Json.JsonTextWriter writer = new JsonTextWriter(sw);
        //if (this.FormatJsonOutput)
        //    writer.Formatting = Formatting.Indented;
        //else
        //    writer.Formatting = Formatting.None;
 
        writer.QuoteChar = '"';
        json.Serialize(writer, value);
 
        string output = sw.ToString();
        writer.Close();
        sw.Close();
 
        return output;
    }
}

Please Advice Thank you!
Vamsi       
Vamsi
Top achievements
Rank 1
 answered on 17 Aug 2012
0 answers
168 views
Hi friends, I would like to refresh all my open rad-tabs, if the user comes back to my page from another browser page/tab, containing tad-tab strip.

FYI ...

  • I am having my tab strip declared in the master file.
  • by mentioning "another browser page/tab" i meant to say new tab of same browser window or the new window of the browser. I need to refresh the "caller tab" 's rad-tabs when the "callee-tab" or "callee-window" is closed.
  • I've tried to use the "ClientSelectedTab" fot my tab strip but it looks like it just repaints the tab [ as I can not see the data get updated, but it does if I right click and select refresh from my IE9 tab.


Much appreciated...

Aarsh
Top achievements
Rank 1
 asked on 17 Aug 2012
4 answers
58 views
Hi,

1) I copied the following into radEditor.Content
<map id="a"><img src="image" /></map>
2) When I retrieved the content from radEditor.Content, I found new code in it.

In Firefox and Chrome, the new code is exactly the same as the old code (this is how I WANT it to behave).

In IE7 however, the new code I got was different:
<map id="a"><img alt="" src="http://**.***.com/***/image" /></map>

where "http://**.***.com/***/" is the current URL domain and path

I am using the following version of Telerik: 2008.02.0826.35

Could you kindly look into the issue and help me address it?
Thanks,
Varun
Pankaj
Top achievements
Rank 1
 answered on 17 Aug 2012
0 answers
75 views
hi friends,

i have a new error...

my page error
  

Server Error in '/' Application.

Operation could destabilize the runtime.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[VerificationException: Operation could destabilize the runtime.]
   Telerik.WebControls.GridClientChangesLoader.LoadChanges(String argument, NameValueCollection collection) +28
   Telerik.WebControls.RadGrid.LoadPostData(String postDataKey, NameValueCollection postCollection) +118
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743



web.config files

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    
  <system.web>

    <compilation defaultLanguage="vb" debug="true" />

    <customErrors mode="Off" defaultRedirect="hatalar/hata.htm" />

    <authentication mode="Forms">
<forms name="OturumAc" loginUrl="oturum_ac.aspx" protection="All" timeout="20" path="/" />
    </authentication> 

    <authorization>
        <deny users="?" /> <!-- Allow all users -->

    </authorization>


    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

    <sessionState 
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
            cookieless="false" 
            timeout="80" 
    />

    <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-9" />

<pages validateRequest="false" />

<!-- HTTP RUNTIME 
    -->
    <httpRuntime 
executionTimeout="90" 
maxRequestLength="999999" 
useFullyQualifiedRedirectUrl="false" 
minFreeThreads="8" 
minLocalRequestFreeThreads="4" 
appRequestQueueLimit="100" 
enableVersionHeader="true"
/>

<!-- HTTP MODULES 
    -->


  </system.web>
  
  <appSettings>
  
<add key="BaglantiCumlesi" value="Persist Security Info=False;Data Source = ********; Initial Catalog=******;UID=*****;pwd=*********"/>

  </appSettings>

</configuration>

please help me!!
A.Fırat
Top achievements
Rank 1
 asked on 17 Aug 2012
1 answer
92 views
How do I determine if a DetailTable is alternating? I have the following line of C# code which colors the correct area of the DetailTables, but I need it to color every other one instead of all of them:

item.OwnerTableView.DetailTables.OwnerGrid.BackColor = System.Drawing.Color.BlueViolet;

I've tried putting the above statement in various if statements, but cannot get it to work properly. I sincerely appreciate any help!
Pavlina
Telerik team
 answered on 17 Aug 2012
1 answer
66 views

The grid short icon(arrow) doesn’t sort the data grid instead submitting the page.

The source shows as below

<input type="submit" name="ctl00$ContentPlaceHolder1$_grid$ctl00$ctl02$ctl00$ctl01" value=" " title="Sorted asc" class="rgSortAsc" />

 

I have even tried adding the ImagesPath to the radgrid. But still have the same behaviour.

 

Any solution?

Pavlina
Telerik team
 answered on 17 Aug 2012
3 answers
361 views
Hi,

I want to display a Loading gif just like this example, but I am using MVC3/Razor so how can I do the same thing in cshtml?
http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx

I know that you can't use asp controls with razor so how can I render the Panel and reference with the following html.
<telerik:RadAjaxManager id="RadAjaxManager1">     
<AjaxSettings>         
<telerik:AjaxSetting AjaxControlID="Panel1">             
<UpdatedControls>                 
<telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />             
</UpdatedControls>         
</telerik:AjaxSetting>     
</AjaxSettings>
</telerik:RadAjaxManager>


Thanks
Dave
Peter
Telerik team
 answered on 17 Aug 2012
3 answers
98 views
I have 5 combos in my RadGrid and each combo has almost 500 items.
First I have encountered an issue that when I want to save the data by clicking a button. It is not going to its server side.
Then it is solved by giving maxRequestLength in Webconfig.

<httpRuntime

executionTimeout="90"

maxRequestLength="16384"

useFullyQualifiedRedirectUrl="false"

minFreeThreads="8"

minLocalRequestFreeThreads="4"

appRequestQueueLimit="100"

enableVersionHeader="true"

/>


Now when I upload the site the issue still remains.
Pavlina
Telerik team
 answered on 17 Aug 2012
5 answers
79 views
Hello,

I am using Visual Studio 2010 and Telerik.Web.UI, v.2012.1.215.40 (Dev).

My webform has an embedded RadScheduler. I believe that the RowHeight of a scheduler defaults to 25px. At run-time, however, I change the RowHeight property using the following simple code, based on the view selected by the end-user:
protected void radScheduler_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e) {
    if (this.radScheduler.SelectedView == SchedulerViewType.TimelineView) {
        this.radScheduler.RowHeight = Unit.Pixel(100);
    }
    else {
        this.radScheduler.RowHeight = Unit.Pixel(25);
    }
}

That works fine and the row heights sucessfully switch between 25 and 100px as the user changes the view.

Then I added a button below the scheduler to export the current scheduler view to a PDF file. The button click code is very basic and is as follows:
protected void btnExport_Click(object sender, EventArgs e) {
    this.radScheduler.ExportToPdf();
}

The click event works fine and successfully creates a PDF file.

When the scheduler is in Timeline view, which successfully displays the row heights at 100px, and the export button is clicked, the row heights are ignored during the export to PDF. The row heights in the PDF file appear to be back at 25px. The webform, which is still open in Timeline view, continues to display the row heights at 100px. How can I resolve this problem?

BTW, if I do away with the NavigationComplete event above, and explicitly add RowHeight="100px" to the <telerik:RadScheduler> ... </telerik:RadScheduler> schema, I still have the same problem when I click my Export to PDF button.

Is there something I can do to maintain the 100px row height whenever I export to PDF?

Thanks,
Steven
Peter
Telerik team
 answered on 17 Aug 2012
7 answers
499 views
I am struggling to get a RadGrid to edit a few columns. It will go into edit mode for checkbox fields, but they will revert to their prior values when editing is complete. For numeric columns, it *looks* like they are editable, but values can not be changed at all. I've looked at all the code examples I can find and nothing seems to work.
Here's the aspx:
<script type="text/javascript">
 
     var hasChanges, inputs, dropdowns, editedRow;
 
     function RowClick(sender, eventArgs)
     {
         if (editedRow != null && hasChanges)
         {
             if (confirm("Update changes?"))
             {
                 hasChanges = false;
                 $find("<%= MasterGrid.MasterTableView.ClientID %>").updateItem(editedRow);
             }
             else
             {
                 hasChanges = false;
             }
         }
     }
 
     function RowDblClick(sender, eventArgs)
     {
         if (editedRow && hasChanges)
         {
             if (confirm("Update changes?"))
             {
                 hasChanges = false;
                 $find("<%= MasterGrid.MasterTableView.ClientID %>").updateItem(editedRow);
             }
             else
             {
                 hasChanges = false;
             }
         }
          
         editedRow = eventArgs.get_itemIndexHierarchical();
         $find("<%= MasterGrid.MasterTableView.ClientID %>").editItem(editedRow);
     }
 
     function GridCreated(sender, eventArgs)
     {
         var gridElement = sender.get_element();
         var elementsToUse = [];
          
         inputs = gridElement.getElementsByTagName("input");
 
         for (var i = 0; i < inputs.length; i++)
         {
             if (inputs[i].type.toLowerCase() == "hidden")
             {
                 continue;
             }
 
             Array.add(elementsToUse, inputs[i]);
             inputs[i].onchange = TrackChanges;
         }
 
         dropdowns = gridElement.getElementsByTagName("select");
 
         for (var i = 0; i < dropdowns.length; i++)
         {
             dropdowns[i].onchange = TrackChanges;
         }
 
         setTimeout(function ()
         {
             if (elementsToUse[0]) elementsToUse[0].focus();
         }, 100);
     }
 
     function TrackChanges(e)
     {
          hasChanges = true;
     }
 
 
     function isChildOf(parentId, element)
     {
         while (element) {
             if (element.id && element.id.indexOf(parentId) > -1) {
                 return true;
             }
             element = element.parentNode;
         }
         return false;
     }
 
     function OnMoveToSelectedClick(sender, args) {
          
         var srcView = $find("<%=  ProfileGrid.ClientID %>").get_masterTableView();
         var dstView = $find("<%=  SelectedGrid.ClientID %>").get_masterTableView();
         var dataItems = srcView.get_dataItems();
         var selectedRows = srcView.get_selectedItems();
          
         var srcData = "<%=SelectedItems %>";
         var dstData = "<%=SelectedItems %>";
 
         for (var i = 0; i < selectedRows.length; i++)
         {
             var row = selectedRows[i];
             var cell = srcView.getCellByColumnUniqueName(row, "ItemID");
             //here cell.innerHTML holds the value of the cell
             var itemID = cell.innerHTML;
 
             srcView.deleteItem(dataItems[i].get_element());
         }
          
         return false;
     }
 
     function rowDropping(sender, eventArgs) {
         // Fired when the user drops a grid row
 
         var node = eventArgs.get_destinationHtmlElement();
 
         if (!isChildOf('<%=SelectedGrid.ClientID %>', node)) {
             eventArgs.set_cancel(true);
         } else {
 
         }
 
     }
 
</script>

<AxnGrids:AxnGrid
ID="MasterGrid"
runat="server"
Width="1550"
Height="356"
AutoGenerateColumns="False"
InitialResizeToFit="False"
AllowMultiRowSelection="False"
BorderStyle="Solid"
BorderColor="black"
BorderWidth="1px"
Visible="True"
OnPreRender="MasterGrid_PreRender"
OnNeedDataSource="MasterGrid_NeedDataSource"
AllowMultiRowEdit="False">
<ClientSettings
AllowRowsDragDrop="False"
AllowColumnsReorder="true"
ReorderColumnsOnClient="true">
<Selecting AllowRowSelect="False" EnableDragToSelectRows="false" CellSelectionMode="SingleCell"/>
<Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="1"/>
<ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" />
</ClientSettings>
<MasterTableView
CommandItemDisplay="Top"
MasterKeyField="ItemID"
Width="100%"
TableLayout="Fixed"
EditMode="InPlace"
AllowAutomaticUpdates="False"
AllowAutomaticDeletes="False"
AllowAutomaticInserts="False">
<CommandItemSettings ShowAddNewRecordButton="False"/>
<NoRecordsTemplate>
<div style="height: 30px; cursor: pointer;">No inventory items found.</div>
</NoRecordsTemplate>
<Columns>
<telerik:GridEditCommandColumn Visible="True" HeaderStyle-Width="100px" />
<telerik:GridDragDropColumn HeaderStyle-Width="18px" Visible="false" />
<AxnGrids:AxnGridBoundColumn UniqueName="ItemID" DataField="ItemID" HeaderText="ItemID" Visible="False" ReadOnly="True"/>
<AxnGrids:AxnGridBoundColumn UniqueName="PartNumber" DataField="PartNumber" HeaderText="Part" HeaderStyle-Width="100px" ReadOnly="True"/>
<AxnGrids:AxnGridBoundColumn UniqueName="Description" DataField="Description" HeaderText="Description" HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Left" ReadOnly="True"/>
<AxnGrids:AxnGridBoundColumn UniqueName="ShopID" DataField="ShopID" HeaderText="Shop" HeaderStyle-Width="100px" ReadOnly="True"/>
<AxnGrids:AxnGridBoundColumn UniqueName="Manufacturer" DataField="Manufacturer" HeaderText="Manufacturer" HeaderStyle-Width="100px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="OnHand" DataField="OnHand" HeaderText="On Hand" HeaderStyle-Width="100px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="OnOrder" DataField="OnOrder" HeaderText="On Order" HeaderStyle-Width="100px" ReadOnly="True"/>
<telerik:GridCheckBoxColumn UniqueName="Seasonal" DataField="Seasonal" HeaderText="Seasonal" HeaderStyle-Width="100px" ReadOnly="False" />
<telerik:GridCheckBoxColumn UniqueName="UseLeadTime" DataField="UseLeadTime" HeaderText="Use Lead Time" HeaderStyle-Width="150px" ReadOnly="False"/>
<telerik:GridCheckBoxColumn UniqueName="UseOrderCycle" DataField="UseOrderCycle" HeaderText="Use Order Cycle" HeaderStyle-Width="200px" ReadOnly="False"/>
<telerik:GridNumericColumn UniqueName="ServiceLevel" DataField="ServiceLevel" HeaderText="Service Level" HeaderStyle-Width="100px" ReadOnly="False"/>
<telerik:GridNumericColumn UniqueName="ForecastPeriod" DataField="ForecastPeriod" HeaderText="Forecast Period" HeaderStyle-Width="140px" ReadOnly="False"/>
<telerik:GridNumericColumn UniqueName="DemandScope" DataField="DemandScope" HeaderText="Demand Scope" HeaderStyle-Width="150px" ReadOnly="False"/>
<telerik:GridNumericColumn UniqueName="AverageLeadTime" DataField="AverageLeadTime" HeaderText="Average Lead Time" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="AverageOrderCycle" DataField="AverageOrderCycle" HeaderText="Average Order Cycle" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="TotalDemand" DataField="TotalDemand" HeaderText="Total Demand" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="AverageDemand" DataField="AverageDemand" HeaderText="Average Demand" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="TotalVariance" DataField="TotalVariance" HeaderText="Total Variance" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="AverageVariance" DataField="AverageVariance" HeaderText="Average Variance" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="StandardDeviation" DataField="StandardDeviation" HeaderText="Standard Deviation" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="ServiceFactor" DataField="ServiceFactor" HeaderText="Service Factor" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="DemandCost" DataField="DemandCost" HeaderText="Demand Cost" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="AverageInventoryCost" DataField="AverageInventoryCost" HeaderText="Average Inventory Cost" HeaderStyle-Width="160px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="LeadTimeFactor" DataField="LeadTimeFactor" HeaderText="Lead Time Factor" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="OrderCycleFactor" DataField="OrderCycleFactor" HeaderText="Order Cycle Factor" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="Turns" DataField="Turns" HeaderText="Turns" HeaderStyle-Width="130px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="HighPoint" DataField="HighPoint" HeaderText="High Point" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="RecReorderPoint" DataField="RecReorderPoint" HeaderText="Recommended Reorder Point" HeaderStyle-Width="200px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="RecSafetyPoint" DataField="RecSafetyPoint" HeaderText="Recommended Safety Point" HeaderStyle-Width="190px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="AverageCost" DataField="AverageCost" HeaderText="Average Cost" HeaderStyle-Width="150px" ReadOnly="True"/>
<telerik:GridNumericColumn UniqueName="InventoryValue" DataField="InventoryValue" HeaderText="Inventory Value" HeaderStyle-Width="150px" ReadOnly="True"/>
</Columns>
</MasterTableView>
</AxnGrids:AxnGrid>

The data that the grid is binding to is a System.Collections.Generic.List of items coming from a web service.

I found the double-click edit code in the documentation, I believe, but I would also like for editing to not require a double click. I would prefer that edits be started as soon as the cell has focus and edits committed as soon as the cell loses focus. So if there are any pointers on how to do that I would appreciate the help. But, obviously, just getting the data to commit at all would be a primary objective.

Thanks,

Ben
TMW Systems

Ben
Top achievements
Rank 1
 answered on 17 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?