Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
144 views
I have a RadGrid with an EditForm containing a RadEditor. The EditForm is shown in a popup and is set to modal.  When I press the 'Toggle Full screen' button, the Editor is 'behind' the modal.  So the area is greyed out and you cannot push any button available in the editor.

Can someone please help me to fix this?

<telerik:RadGrid ID="grdTicketHistory" runat="server" Width="100%" AutoGenerateColumns="false" Skin="Silk" OnNeedDataSource="grdTicketHistory_NeedDataSource" OnItemDataBound="grdTicketHistory_ItemDataBound" OnPreRender="grdTicketHistory_PreRender"
OnUpdateCommand="grdTicketHistory_UpdateCommand" OnDeleteCommand="grdTicketHistory_DeleteCommand" OnInsertCommand="grdTicketHistory_InsertCommand">
                            <MasterTableView AllowSorting="true" Width="100%" EditMode="PopUp" AllowPaging="true" PageSize="10" AllowFilteringByColumn="true" DataKeyNames="TicketLogID"
                                CommandItemDisplay="Top" ShowHeader="false" >
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="30px"></telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn UniqueName="DeleteCommandColumn" Text="Delete" CommandName="Delete" ButtonType="ImageButton"
                                        ConfirmText="Are you sure you want to delete this record?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" />
                                </Columns>
                                <DetailItemTemplate>
                                    <asp:Table ID="tblDetailItemTemplate" runat="server" Width="100%">
                                        <asp:TableRow>
                                                    <asp:TableRow>
                                                        <asp:TableCell>
                                                            <telerik:RadEditor runat="server" ID="txtLogText" Enabled="false" EditModes="Preview" Height="250px" ></telerik:RadEditor>   
                                                        </asp:TableCell>
                                                    </asp:TableRow>
                                                </asp:Table>
                                            </asp:TableCell>
                                        </asp:TableRow>
                                    </asp:Table>                                       
                                </DetailItemTemplate>
                                <EditFormSettings EditFormType="Template" >
                                    <PopUpSettings Modal="true" Width="1000px" ZIndex="3000" />
                                    <FormTemplate>                                       
                                        <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;">
                                            <tr>
                                                            <td colspan="2">
                                                                <telerik:RadEditor runat="server" ID="txtLogText" TabIndex="10" ToolsFile="~/xml/ToolsFile.xml"  NewLineMode="Br" OnClientLoad="OnClientLoadRadEditor"></telerik:RadEditor>           
                                                                <asp:CustomValidator id="valLogText" runat="server" ControlToValidate="txtLogText" ErrorMessage="- Text is mandatory" ToolTip="Text is mandatory"> <img src="/cmit/Images/warning.gif" style="border:0" alt=""/></asp:CustomValidator>
                                                            </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="white-space:normal" colspan="2">
                                                    <asp:Button ID="btnUpdate" TabIndex="11" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button
                                                    <asp:Button ID="btnCancel" TabIndex="12" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
                                                </td>
                                            </tr>
                                        </table>
                                         
                                    </FormTemplate>
                                    <EditColumn ButtonType="ImageButton" />
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                   
    



Ianko
Telerik team
 answered on 23 Jan 2015
1 answer
82 views
Hi,

Does the ticker control support multiple lines?  I have a datatable that returns 5 rows.  I want the ticker to produce 5 lines as well, i.e. not overwrite the orginal one 5 times?

Is this possible?

Thanks

Andy.
Slav
Telerik team
 answered on 23 Jan 2015
6 answers
222 views
I have this RadWindow in a parent page:

<script type="text/javascript">
 function ShowWindow() {
 var oWnd = window.radopen('Window1.aspx', 'window1');
}        
</script>
 
<body>
  <form id="form1" runat="server">
    <div>
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
      </telerik:RadScriptManager>
      <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
          </telerik:RadWindowManager>
...........

This is how I open the RadWindow from code behind of the parent page:
...
else
   {
      Session["fatherMessageID"] = id;
      string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(ShowWindow);</script>";
      ClientScript.RegisterStartupScript(this.GetType(), "showWindow", script);
    }

This is how I close the RadWindow from inside the RadWindow:
<script type="text/javascript">
        function GetRadWindow() {
            var oWnd = null;
            if (window.radWindow) oWnd = window.radWindow;
            else if (window.frameElement.radWindow) oWnd = window.frameElement.radWindow;
            return oWnd;
        }
        function CloseWindow() {
            var oWnd = GetRadWindow();
            oWnd.close()
        }
    </script>

Calling the script from a button inside the RadWindow:
string script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(CloseWindow);</script>";
ClientScript.RegisterStartupScript(this.GetType(), "CloseWindow", script);

The problem I am experiencing is that the RadWindow after being opened and closed the first time, keeps reopening later on on page load and on click of any controls on the parent page.
How can I resolve this problem?

Thanks for supporting
Felice
Felice
Top achievements
Rank 1
 answered on 23 Jan 2015
2 answers
143 views
This may be premature.  This may or may not be an Ajax problem, but here goes.

I have identical code deployed to 2 web servers (dev and production).  There are 2 main problems as far as I can tell, both Internet Explorer related.  On one site the app works perfectly in all browsers including IE.  In the other it works perfectly in Chrome and Firefox but not IE. 

The page has a master page containing a RadScriptManager,  RadCodeBlock,   RadStyleSheetManager,  RadSkinManager, and and asp:Repeater populated with Asp:Link buttons.
The page itself contains a RadInputManager,  RadWindowManager,  RadToolTipManager, 2  RadCodeBlocks, and the  RadGrid itself.

Problem 1 is that in IE, the asp:Repeater is disabled.  The set of links is populated and displays correctly but they simply don't work.

Problem 2 is that various hyperlinks in the RadGrid also do not work in IE. (Also generated in code.)  The idea is that these hyperlinks call a JavaScript function which in turn calls up a popup window.  

(As far as I can remember I copied this pattern directly from Telerik.
The calls are like this:   var oWnd = window.radopen("EditWindow.aspx?Id=" + Id, "Add Entry For Record " + Id);   )  

All these calls crash, giving a message saying that the window object is null.

Troubleshooting this problem is complicated by the fact that I do not have direct access to the production server due to security concerns.  A friend of mine has suggested that this might be due to some sort of permissions problem in IIS.

Anyone else have a problem like this?
Boris
Top achievements
Rank 1
 answered on 23 Jan 2015
6 answers
357 views
Hi guys,


We are using Telerik  ASP.NET Ajax Controls for some time without embedded resources by setting the appropriate configuration settings:


<add key="Telerik.EnableEmbeddedSkins" value="false"/>

<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false"/>

<add key="Telerik.EnableEmbeddedScripts" value="false"/>        

 

We have only one JavaScript file, Telerik.js , that contains all java script files for all controls and one .css file, Common.css,  that contains all common styles for all controls. For each skin, we create a single css file with all  controls styles for that skin.

Our problem is when we update the Telerik framework, because we have to regenerate the files mentioned above. It seems that although we are following
the order specified in the documentation bellow,

http://www.telerik.com/help/aspnet-ajax/introduction-disabling-embedded-resources.html

when merging the java script files, we end up with Java Script errors.

We are looking for some help regarding the merging procedure or eventually a tool that, for instance, we’ll let us select the controls we want to use and will generate a single .js file  with all the scripts, and single .css file with all common styles.
 

Best regards,
Dan Ciobanu
Christian
Top achievements
Rank 1
 answered on 23 Jan 2015
2 answers
182 views
Hi !
I have a radmenu in my masterpage that updates the content of the "mainarea"  with is an iFrame wrapped in a updatepanel.

If I  use a radgrid and try to delete a item the confirmwindow is always displayed centered regarding to my iFrame.
This is not very nice since the user cannot se the confimwindow if trying to delete an item far up or far down in the grid.
I' thinking the user shouldn't have to scroll to find the window.

If I use ConfirmDialogType="Classic" it works nice and the window is showing besides the selected row.
If I use ConfirmDialogType="Radwindow"  outside the iFrame it also works nice .

I would like the window to show up besides the area where I clicked or  centred in relation to the screen.

Anyone nows how to solve this issue ?

Regards
Stefan
Stefan
Top achievements
Rank 1
 answered on 23 Jan 2015
1 answer
110 views
<telerik:RadGrid ID="grdLogframe" OnNeedDataSource="grdLogframe_NeedDataSource" <br>                    OnItemDataBound="grdLogframe_ItemDataBound" OnPreRender="grdLogframe_PreRender" runat="server" AutoGenerateColumns="false"><br>                    <MasterTableView DataKeyNames="NodeID" Name="tblLogframe"><br>                        <Columns><br>                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn><br>                            <telerik:GridBoundColumn UniqueName="NodeID" DataField="NodeID" Visible="false"></telerik:GridBoundColumn><br>                            <telerik:GridTemplateColumn UniqueName="NodeText" DataField="NodeText" HeaderText="Objectives"><br>                                <ItemTemplate><br>                                    <%# Eval("ProjectLogframeNodeType.NodeTypeName") %>&nbsp;:&nbsp;<%# Eval("NodeText") %><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br>                            <telerik:GridTemplateColumn UniqueName="indicators"><br>                                <itemtemplate><br>                                       <telerik:RadGrid ID="grdIndicators" runat="server" AutoGenerateColumns="false" ShowHeader="true" OnPreRender="grdIndicators_PreRender" OnItemCreated="grdIndicators_ItemCreated" OnItemDataBound="grdIndicators_ItemDataBound"><br>                                           <MasterTableView DataKeyNames="ProjectLogframeIndicatorID" <br>                                               NoMasterRecordsText ="Indicators not defined yet" Name="tblIndicators"><br>                                               <Columns><br>                                                   <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Project Indicators" UniqueName="Description" DataField="Description"></telerik:GridBoundColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Corporate Indicators" UniqueName="CorpResultFrameworkIndicatorID" DataField="CorpResultFrameworkIndicatorID"></telerik:GridBoundColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Programme Indicators" UniqueName="ProgrameIndicatorID" DataField="ProgrameIndicatorID"></telerik:GridBoundColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Baseline" UniqueName="Baseline" DataField="Baseline"></telerik:GridBoundColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Targets" UniqueName="Targets" DataField="Targets"></telerik:GridBoundColumn><br>                                                   <telerik:GridBoundColumn HeaderText="Means of Verifications" UniqueName="MeansOfVerification" DataField="MeansOfVerification"></telerik:GridBoundColumn><br>                                               </Columns><br>                                               <CommandItemSettings AddNewRecordText="Add Indicator" AddNewRecordImageUrl="../Img/insert.png" /><br>                                           </MasterTableView><br>                                       </telerik:RadGrid><br>                                </itemtemplate><br>                            </telerik:GridTemplateColumn>
...

I am doing the nested grid binding inside the item created of the outer grid.
the issue is with the CRUD operations on the inner grids, whenever they post back the whole grid structure is recreated and the post back event is lost.
This is manifested specifically with the InitInsert and InitUpdate commands on inner grids. the grid refreshes but the action is lost.

how can i perform this?

thank you
Angel Petrov
Telerik team
 answered on 23 Jan 2015
1 answer
79 views
I would like to open a popup window and then access a client side function within that window at a later time in the session. Is there any way to do this? How do I get a reference to that popup window?

I know how to call a parent window from a child but not the other way around,

Thanks...
Marin Bratanov
Telerik team
 answered on 23 Jan 2015
4 answers
268 views
I don't know why I have such a hard time grasping the fundamentals of radgrid when in edit/insert mode but I sure do. I do not see how to edit/trap the values I am editing. I am trying to work with a checkbox list that has the days of week in a gridtemplatecolum. I am using editForms mode as per tutorials. I can using the insert_command get the selected values and convert those to a string for sql_insert to a column, however I can't get the value out when in edit mode back into the list. ie. convert Monday,Tuesday into the checkbox list as I can't find the checkboxlist. I am using EditCommand. once i can find the control, reading it back in should not be a problem... its a matter of finding it.

Dim appid As String  
    Dim cblstr As String  
 
      
    Protected Sub SqlDataSource1_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource1.Inserting  
        e.Command.Parameters("@AppID").Value = Applicants1.appid  
        e.Command.Parameters("@NotAvailalble").Value = cblstr 
    End Sub  
 
 
    Protected Sub SqlDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource1.Selecting  
        If Applicants1.appid IsNot Nothing Then  
            appid = Applicants1.appid  
            e.Command.Parameters("@AppID").Value = appid 
        End If  
 
    End Sub  
 
    Protected Sub RadGrid1_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.EditCommand  
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            Dim cbl As CheckBoxList = (TryCast(e.Item, GridEditableItem)).Controls(0).FindControl("CBNotAvail")  
            ' this totally fails as it says it can't find the item  
        End If  
    End Sub  
 
    Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand  
          
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            Dim cbl As CheckBoxList = (TryCast(e.Item, GridEditableItem)).Controls(0).FindControl("CBNotAvail")  
            cblstr = functions.CBListValues(cbl)  
        End If  
 
 
    End Sub 


Source
        <telerik:GridTemplateColumn UniqueName="NotAvailable" HeaderText="Not Available" Visible="False">  
                     <EditItemTemplate> 
                    <asp:CheckBoxList ID="CBNotAvail" runat="server" SelectedValue='<%# Bind("NotAvailalble") %>' > 
                    <asp:ListItem>Monday</asp:ListItem> 
                    <asp:ListItem>Tuesday</asp:ListItem> 
                                            </asp:CheckBoxList> 
                    </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
Kostadin
Telerik team
 answered on 23 Jan 2015
1 answer
262 views
So I am trying to use a radgrid to allow updates to my database, and while the page functions properly, I can't seem to save the data back to the database, any help you can offer would be appreciated greatly. I am new to both C# and asp.

Page Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ValidationEdit.aspx.cs" Inherits="EditPages_ValidationEdit" MasterPageFile="~/EUEMain.master"   %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphLeftNav" runat="Server">
    <asp:HyperLink ID="HomeLink" runat="server" NavigateUrl="..\Default.aspx" Text="Home" />
    <br />
    <asp:HyperLink ID="AddLink" runat="server" Text="Status Edit Page" />
    <br />
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="Server">
    <p></p>
<p></p>
<p></p>
    <h1>Subdivision Statuses</h1>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadGrid ID="RadGrid1" runat="server" DataModelID="Status" AllowPaging="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True"
        AllowAutomaticDeletes="true" AllowSorting="true" OnItemCreated="RadGrid1_ItemCreated"
        OnItemInserted="RadGrid1_ItemInserted" OnPreRender="RadGrid1_PreRender" OnInsertCommand="RadGrid1_InsertCommand" OnNeedDataSource="Radgrid1_NeedDataSource">
         
    <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView  AutoGenerateColumns="False"
            DataKeyNames="Description" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description"
                    UniqueName="Description" >
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn  DataField="Visible" HeaderText="Visible" SortExpression="Visible"
                    UniqueName="Visible">
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="StatusType" HeaderText="Status Type" UniqueName="StatusType"></telerik:GridBoundColumn>
                <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" />
            </Columns>
            <EditFormSettings>
                <EditColumn ButtonType="ImageButton" />
            </EditFormSettings>
        </MasterTableView>
 
    </telerik:RadGrid>
    <h1>
        Track Statuses
        <telerik:RadGrid ID="RadGrid2" runat="server" DataModelID="Status" AllowPaging="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True"
        AllowAutomaticDeletes="true" AllowSorting="true" OnItemCreated="RadGrid1_ItemCreated"
        OnItemInserted="RadGrid1_ItemInserted" OnPreRender="RadGrid1_PreRender" OnInsertCommand="RadGrid1_InsertCommand" OnNeedDataSource="Radgrid1_NeedDataSource">
         
    <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView  AutoGenerateColumns="False"
            DataKeyNames="Description" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description"
                    UniqueName="Description" >
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="Visible" HeaderText="Visible" SortExpression="Visible"
                    UniqueName="Visible">
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="StatusType" HeaderText="Status Type" UniqueName="StatusType"></telerik:GridBoundColumn>
                 
                <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" />
            </Columns>
            <EditFormSettings>
                <EditColumn ButtonType="ImageButton" />
            </EditFormSettings>
        </MasterTableView>
 
    </telerik:RadGrid>
    </h1>
     <asp:EntityDataSource ID="EntityDataSourceStatus" runat="server" ConnectionString="name=PtcDbModelEntities"
        DefaultContainerName="PtcDbModelEntities" EntitySetName="Status" OrderBy="it.[ContactName]"
        EntityTypeFilter="Description" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True">
    </asp:EntityDataSource>
</asp:Content>

and the Code behind:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using Model;
using Telerik.Web.UI;
 
public partial class EditPages_ValidationEdit : BNSF.EUECommonApplication.EUEBasePage
{
 
    public List<Status> StatusList { get; set; }
    public object CurrentSubStatusList { get; set; }
 
    protected void Page_Load(object sender, EventArgs e)
    {
         
        AddLink.NavigateUrl = @"..\EditPages\ValidationEdit";
        if (!Page.IsPostBack)
        {
             
                using (PtcDbModel localDb = new PtcDbModel())
                {
                    var localTemp = (from tempList in localDb.Status
                                     where tempList.StatusType == "S"
                                     select tempList)
                                    .ToList();
                    var localTemp2 = (from tempList in localDb.Status
                                      where tempList.StatusType == "T"
                                      select tempList)
                                    .ToList();
                    CurrentSubStatusList = localTemp;
                    CurrentTrackStatusList = localTemp2;
 
                    var tempDetailList = CurrentSubStatusList;
                    var tempDetailList2 = CurrentTrackStatusList;
                    RadGrid1.DataSource = tempDetailList;
                    RadGrid2.DataSource = tempDetailList2;
                }
            }
        }
 
    public List<Status> CurrentTrackStatusList { get; set; }
 
 
    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            if (!(e.Item is GridEditFormInsertItem))
            {
                GridEditableItem item = e.Item as GridEditableItem;
                GridEditManager manager = item.EditManager;
                GridTextBoxColumnEditor editor = manager.GetColumnEditor("Description") as GridTextBoxColumnEditor;
                editor.TextBoxControl.Enabled = true;
            }
        }
    }
    protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
    {
        if (e.Exception != null)
        {
 
            e.ExceptionHandled = true;
            SetMessage("Customer cannot be inserted. Reason: " + e.Exception.Message);
 
        }
        else
        {
            SetMessage("New customer is inserted!");
        }
    }
    private void DisplayMessage(string text)
    {
        RadGrid1.Controls.Add(new LiteralControl(string.Format("<span style='color:red'>{0}</span>", text)));
    }
 
    private void SetMessage(string message)
    {
        gridMessage = message;
    }
 
    private string gridMessage = null;
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(gridMessage))
        {
            DisplayMessage(gridMessage);
            RadGrid1.DataBind();
            RadGrid2.DataBind();
        }
    }
 
    protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
    {
        if (e.Item is GridEditableItem)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            //here editedItem.SavedOldValues will be the dictionary which holds the
            //predefined values
 
            //Prepare new dictionary object
            Hashtable newValues = new Hashtable();
            e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
            //the newValues instance is the new collection of key -> value pairs
            //with the updated ny the user data
        }
    }
 
 
    protected void Radgrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        using (PtcDbModel localDb = new PtcDbModel())
        {
            var localTemp = (from tempList in localDb.Status
                             where tempList.StatusType == "S"
                             select tempList)
                            .ToList();
            
 
            var localTemp2 = (from tempList in localDb.Status
                              where tempList.StatusType == "T"
                              select tempList)
                                     .ToList();
            CurrentSubStatusList = localTemp;
            CurrentTrackStatusList = localTemp2;
 
            var tempDetailList = CurrentSubStatusList;
            var tempDetailList2 = CurrentTrackStatusList;
            RadGrid1.DataSource = tempDetailList;
            RadGrid2.DataSource = tempDetailList2;
 
        }
    }
}
Konstantin Dikov
Telerik team
 answered on 23 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?