Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
88 views
Good Day to you.

I have been using telerik controls for some times now.  We had this site where telerik controls are implemented. 

Our site is composed of different controls.
We have 3 panels separated using RadSplitter. RadPanelbars in the left, grids in the center and docks with panel with grid in the side.

During the development we notice that our site loads slowly.......
It would take us 5 to 10 seconds to load the site.  The controls will load lastly.

We have observed that the CPU Usage of our site is 20%-30% in standby mode(doing nothing after loading with out mouse movements)

I have read Your Tutorials about Optimizition Tips
This is what i did so far.

RadScriptManager- I put it in my main page but did not use its reference property since my javascripts are in the same page of my code
RadStyleSheetManager -Put it in my mainpage but didnot use its reference property since i did not costumize my telerik control's skin. My Css is Attached using  <link href="
Debug - i already set it to false and I am using II7

So far from the above it does not give me a better CPU Usage of my site.
I think the control RadPanelBar is the one using most of the CPU since if i remove it in the code or hide it using the splitter my CPU Usage is 5%-10%. I also notice that when i press ESC after page load. the CPU Usage is going down.

I would appriciate if you could help me optimize my CPU Usage.

Thanks

Kamen Bundev
Telerik team
 answered on 19 Feb 2010
4 answers
219 views
Hi,

I have in a control a ComboBox where item are load on Demand.
When we whant to update the data i try to retreive the value with SelectedValue but off course the list is empty.
I alreay read many item on this forum but i cannot find any solution about this!!!!

What is the solution for this problem please?

The code is:

 <telerik:RadComboBox runat="server" ID="ddl_ParentCustomer" Width="410px" Height="300px" 
                                EnableLoadOnDemand="true" HighlightTemplatedItems="true" EnableVirtualScrolling="true" 
                                OnItemsRequested="RadComboBoxCustomerOnItemsRequested" OnItemDataBound="RadComboBoxCustomerOnItemDataBound" 
                                EmptyMessage="-Selecteer-">  
                                <HeaderTemplate> 
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">  
                                        <tr> 
                                            <td style="width: 220px;">  
                                                ComapanyName  
                                            </td> 
                                            <td style="width: 50px;">  
                                                ZipCode  
                                            </td> 
                                            <td> 
                                                City  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </HeaderTemplate> 
                                <ItemTemplate> 
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">  
                                        <tr> 
                                            <td style="width: 220px;">  
                                                <%# Eval("Name")%> 
                                            </td> 
                                            <td width="50px;">  
                                                <%# Eval("ZipCode")%> 
                                            </td> 
                                            <td> 
                                                <%# Eval("City")%> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </ItemTemplate> 
                            </telerik:RadComboBox> 


C# code is:
I suppose on my method SetValues, I need to load the parent customer. But all? if I try to load all customer in the comboBox, i have a error on the method OnItemDataBound!!!!!

 protected void RadComboBoxCustomerOnItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)  
        {  
            string sFilter = e.Text;  
 
            // safety check  
            if (sFilter.Length > 100 || sFilter.IndexOf(";") != -1) return;  
 
            ddl_ParentCustomer.Items.Clear();  
 
            var customers = (from c in Customer.GetAllParentCustomers()  
                             where c.Name.StartsWith(sFilter)  
                             select new  
                                        {  
                                            CustomerId = c.Id,  
                                            c.Name,  
                                            c.ZipCode,  
                                            c.City  
                                        }).Page((e.NumberOfItems / 20) + 1, 20).ToList();  
 
            ddl_ParentCustomer.DataSource = customers;  
            ddl_ParentCustomer.DataBind();  
        }  
 
        protected void RadComboBoxCustomerOnItemDataBound(object sender, RadComboBoxItemEventArgs e)  
        {  
            object o = e.Item.DataItem;  
            e.Item.Text = o.GetType().GetProperty("Name").GetValue(o, null).ToString();  
            e.Item.Value = o.GetType().GetProperty("CustomerId").GetValue(o, null).ToString();  
        }  
 
public void SetValues(Customer customer)  
{  
 if(customer.ParentCustomerId > 0)  
{  
  ddl_ParentCustomer.SelectedValue = customer.ParentCustomerId.ToString();  
}  
 


Any idee about a solution?

Thanks,

Edwin.

Yana
Telerik team
 answered on 19 Feb 2010
3 answers
181 views
Hi,

I have a treeview that I'm using to provide a set of controls on each node.  There is the normal node text, a textbox and a checkbox.  I've got it all working except for reading the data back.  My routine can't use Node.FindControl to find any of the controls that I've created.  Some relevant snippets of code are shown below. 

I've read that I need to reallocate the template to the nodes on the ajax callback.  How do I go about this? (current update code at the bottom).

Regards,

Jon

'CODE FOR GENERATING THE TREE  
 
            uxRadTreeView.DataTextField = "LocationCombo" 
            uxRadTreeView.DataFieldID = "AuditEntryID" 
            uxRadTreeView.DataValueField = "AuditEntryID" 
            uxRadTreeView.DataSource = groups  
            uxRadTreeView.DataBind()  
            Dim template As NodeTemplate = New NodeTemplate()  
            template._InEditMode = _InEditMode  
            For Each node As RadTreeNode In uxRadTreeView.GetAllNodes()  
                template.InstantiateIn(node)  
                node.Expanded = True 
                node.DataBind()  
            Next 
 
' TEMPLATE CODE  
        Class NodeTemplate  
            Implements ITemplate  
            Public _InEditMode As Boolean 
 
            Public Sub New()  
            End Sub 
 
            Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn  
                Dim uxLocationCombo As Label = New Label()  
                uxLocationCombo.ID = "uxLocationCombo" 
                uxLocationCombo.Width = 300  
                AddHandler uxLocationCombo.DataBinding, AddressOf nodeText_DataBinding  
                container.Controls.Add(uxLocationCombo)  
 
                If _InEditMode Then 
                    Dim uxScore As RadNumericTextBox = New RadNumericTextBox()  
                    uxScore.ID = "uxScore" 
                    uxScore.Enabled = True 
                    uxScore.Width = 60  
                    uxScore.MinValue = 1  
                    uxScore.MaxValue = 5  
                    uxScore.ShowSpinButtons = True 
                    uxScore.NumberFormat.DecimalDigits = 0  
                    AddHandler uxScore.DataBinding, AddressOf uxScore_DataBinding  
                    container.Controls.Add(uxScore)  
                Else 
                    Dim uxScore As Label = New Label()  
                    uxScore.ID = "uxScore" 
                    uxScore.Enabled = True 
                    uxScore.Width = 60  
                    AddHandler uxScore.DataBinding, AddressOf uxScoreLabel_DataBinding  
                    container.Controls.Add(uxScore)  
                End If 
 
 
                Dim uxNotScored As CheckBox = New CheckBox()  
                uxNotScored.ID = "uxNotScored" 
                uxNotScored.Enabled = _InEditMode  
                uxNotScored.Width = 60  
                AddHandler uxNotScored.DataBinding, AddressOf uxNotScoredCheckbox_DataBinding  
                container.Controls.Add(uxNotScored)  
            End Sub 
 
            Private Sub uxScoreLabel_DataBinding(ByVal sender As ObjectByVal e As EventArgs)  
                Try 
                    Dim target As Label = DirectCast(sender, Label)  
                    Dim node As RadTreeNode = DirectCast(target.BindingContainer, RadTreeNode)  
                    target.Text = node.Attributes("Score").ToString()  
                    'target.Attributes("onClick") = "onNodeClick(" & node.Attributes("DocumentTypeID").ToString() & ");"  
                Catch ex As Exception  
                End Try 
            End Sub 
 
            Private Sub uxScore_DataBinding(ByVal sender As ObjectByVal e As EventArgs)  
                Try 
                    Dim target As RadNumericTextBox = DirectCast(sender, RadNumericTextBox)  
                    Dim node As RadTreeNode = DirectCast(target.BindingContainer, RadTreeNode)  
                    target.Text = node.Attributes("Score").ToString()  
                    'target.Attributes("onClick") = "onNodeClick(" & node.Attributes("DocumentTypeID").ToString() & ");"  
                Catch ex As Exception  
                End Try 
            End Sub 
 
            Private Sub uxNotScoredCheckbox_DataBinding(ByVal sender As ObjectByVal e As EventArgs)  
                Try 
                    Dim target As CheckBox = DirectCast(sender, CheckBox)  
                    Dim node As RadTreeNode = DirectCast(target.BindingContainer, RadTreeNode)  
                    target.Checked = CBool(node.Attributes("NotScored").ToString())  
                    'target.Attributes("onClick") = "onNodeClick(" & node.Attributes("AuditEntryID").ToString() & ");"  
                Catch ex As Exception  
                End Try 
            End Sub 
 
            Private Sub nodeText_DataBinding(ByVal sender As ObjectByVal e As EventArgs)  
                Try 
                    Dim target As Label = DirectCast(sender, Label)  
                    Dim node As RadTreeNode = DirectCast(target.BindingContainer, RadTreeNode)  
                    target.Text = node.Attributes("LocationCombo").ToString()  
                    'target.Attributes("onClick") = "onNodeClick(" & node.Attributes("DocumentTypeID").ToString() & ");"  
                Catch ex As Exception  
                End Try 
            End Sub 
        End Class 
 
 
 
' CODE IN THE UPDATE BUTTON CALLBACK  
 
                For Each node As RadTreeNode In uxRadTreeView.Nodes  
 
                    i += 1  
                    idArray(i) = node.Value  
                    scoreArray(i) = DirectCast(node.TemplateControl.FindControl("uxScore"), RadNumericTextBox).Value.ToString()  
                    If DirectCast(node.TemplateControl.FindControl("uxNotScored"), CheckBox).Checked Then 
                        noScoreArray(i) = "1" 
                    Else 
                        noScoreArray(i) = "0" 
                    End If 
 
                Next 
Yana
Telerik team
 answered on 19 Feb 2010
3 answers
187 views
I am having some trouble getting a scale break to display on my chart.

I only want to have 10 labels on the Y axis so in the BeforeLayout event I do the following

            double max = Math.Floor(chart.PlotArea.YAxis.MaxValue); 
            double step = Math.Round( max / 10); 
 
            chart.PlotArea.YAxis.Clear(); 
            chart.PlotArea.YAxis.AutoScale = false
            chart.PlotArea.YAxis.AddRange(0, max, step); 
 
            AxisSegment seg = new AxisSegment(); 
            seg.Name = "asdfasdfasdf"
            seg.MaxValue = 3000; 
            seg.MinValue = 100; 
            seg.Step = 1000; 
 
            chart.PlotArea.YAxis.ScaleBreaks.Segments.Add(seg); 
            chart.PlotArea.YAxis.ScaleBreaks.MaxCount = 1; 
            chart.PlotArea.YAxis.ScaleBreaks.Enabled = true
 

The range is displays correctly. But when I turn ScaleBreaks.Enabled = true nothing displays on the Y axis. The range does not appear and neither does the ScaleBreak.

Seems like it should be fairly straight forward... anyone have any ideas on why this does not work.

Thanks!


Bartholomeo Rocca
Top achievements
Rank 1
 answered on 19 Feb 2010
1 answer
55 views
 
WMPagina is a Rad window manager 

var wlogin = WMPagina.Windows.Find(delegate(RadWindow w) { return w.ID == "LoginWindow"; });  
                wlogin.AutoSize = true;  
                wlogin.VisibleOnPageLoad = true;  
                

I in Q2 version of telerik ajax control i'll be able to find a radwindow by id, now the collection does not expose the find method.

How can i correct this?

obviously i can iterate wit a for each but it is possible to have a quick way the same result??

Thanks
Andrea Del brocco
Svetlina Anati
Telerik team
 answered on 19 Feb 2010
5 answers
153 views
Hi,

We have a toolbar button which is set up like this:  

 

<telerik:RadToolBarButton runat='server' ImageUrl='~/Images/monitor.png' Value='Monitored' 
    CommandName='Monitored' Text='Monitored' Enabled='false' CheckOnClick='true'>  
</telerik:RadToolBarButton> 

 

In the code behind, during Page_Load, we set button.Checked = true;

In the described state, its style flicks from Checked to Unchecked whenever the cursor hovers over the button. It also seems to do some sort of ajax call when this happens. I tried catching the OnMouseOver event of the toolbar in order to cancel the event but it won't fire when the button is disabled. Is there a way to ensure that the button can be set to checked and disabled in the Code Behind and will not respond to any user action?




 

 

 

 

Kamen Bundev
Telerik team
 answered on 19 Feb 2010
3 answers
298 views
Two questions, one hopefully very simple so will start with that.

My dataset contains values like (14.8206902137731, 15.4773593366931, 14.6153823359167,13.9488355186086 etc). When I view them on my bar chart the first three values are rounded to 15 and the 4th to 14 and thus look identical. How do I show at least some difference between them (rounding to 2 decimal points is sufficient)?

Second question - based on user input, I need to dynamically add a horizontal line on across the graph (y-axis), reading something like "your value". I'm thinking I'd do this by creating a marked zone, set ValueStartY and ValueEndY to the user input value (once calculated).
Seems to work but not quite sure where the label is (or isn't) and I'm concerned that the label is displayed inside the marked zone but as I need to have the zone set so it displays as a line, then I can't see the label?
I have Label TextBlock-Visible = true and have tried various settings for TextBlock-Position to no avail - no text appears. I just want a label to appear to the right of the Marked Zone. 

thanks in advance
--M
Ves
Telerik team
 answered on 19 Feb 2010
1 answer
105 views
Hi,

I have the code bellow.
It seems that when I press save the controls: RadEditor and RadTextEditor with multiline cannot be updated after async postback.
They will loose the values (there is empty).
Also the RadEditor loose its features.

I want to have a RadAjaxMnaager into MasterPage (which is) and on other controls and pages to have proxy. But I have the problem with these controls

Thank you.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomSectionEditForm.ascx.cs" Inherits="ModulesAdministration.Articles.__Components.CustomSectionEditForm" %> 
 
<%@ Register src="../../__Components/EditForm/CustomSectionBoxEditFormTemplate.ascx" tagname="CustomSectionBoxEditFormTemplate" tagprefix="SciDev" %> 
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormCancel.ascx" tagname="CustomSectionEditFormCancel" tagprefix="SciDev" %> 
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormSave.ascx" tagname="CustomSectionEditFormSave" tagprefix="SciDev" %> 
<%@ Register src="CustomSectionComboBoxTreeView.ascx" tagname="CustomSectionComboBoxTreeView" tagprefix="SciDev" %> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" > 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="PanelEditForm"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="PanelEditForm" LoadingPanelID="RadAjaxLoadingPanel" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
 
<asp:Panel ID="PanelEditForm" runat="server">   
    <SciDev:CustomSectionBoxEditFormTemplate ID="CustomSectionBoxEditFormTemplate" runat="server" 
        HeaderText="Please edit the record bellow:" > 
        <ContentTemplate> 
            <asp:FormView ID="FormViewEdit" runat="server" DefaultMode="Edit" DataKeyNames="Id"  
                DataSourceID="CustomObjectDataSourceEditDataSourceID" 
                Width="100%"
                <EditItemTemplate> 
 
                    <!-- <edit fields section> --> 
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                        <asp:Label ID="LabelId" runat="server" Text='<%# Bind("Id") %>' visible="false" /> 
                        <asp:Label ID="LabelCultureCode" runat="server" Text='<%# Bind("CultureCode") %>' visible="false" /> 
 
                        <table cellpadding="0" cellspacing="0" width="100%"
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <Note> --> 
                                    <div style="margin-top: 2px; margin-bottom: 24px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <SciDev:CustomLabel ID="CustomLabelNote" runat="server"  
                                                        Localizable="true" 
                                                        CssClass="WebsiteSkeleton_Font_TextNote" 
                                                        Text="Note: The fields marked with (*) are mandatory and the those marked with (@) are multilanguage !"/> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Note> --> 
                                </td> 
                            </tr> 
                           <tr> 
                                <td style="width: 100%"
                                    <!-- <Parent category> --> 
                                    <div style="margin-top: 2px; margin-bottom: 8px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <%= Translator.Translate("Parent category")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <SciDev:CustomSectionComboBoxTreeView ID="CustomSectionComboBoxTreeView" runat="server" 
                                                       SelectedValue='<%# Bind("IdParent") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Parent category> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <Author> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedAuthor" runat="server"  
                                                        Localizable="true" 
                                                        Mandatory="true" 
                                                        Multilanguage="true" 
                                                        Text="Author"/> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <SciDev:CustomRadTextBox ID="CustomRadTextBoxAuthor" runat="server" 
                                                        Width="256px" 
                                                        Mandatory="true" 
                                                        Text='<%# Bind("Author") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Author> --> 
                                </td> 
                            </tr> 
                             <tr> 
                                <td style="width: 100%"
                                    <!-- <Subject> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSubject" runat="server"  
                                                        Localizable="true" 
                                                        Mandatory="true" 
                                                        Multilanguage="true" 
                                                        Text="Subject"/> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <SciDev:CustomRadTextBox ID="CustomRadTextBoxSubject" runat="server" 
                                                        Width="512px" 
                                                        Height="32px" 
                                                        TextMode="MultiLine" 
                                                        Mandatory="true" 
                                                        Text='<%# Bind("Subject") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Subject> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <Summary, Content, Description, Comments> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td> 
                                                    <telerik:RadTabStrip ID="RadTabStrip" runat="server" SelectedIndex="0" Skin="Default"  
                                                        Width="100%" 
                                                        MultiPageID="RadMultiPageEdit"
                                                        <Tabs> 
                                                            <telerik:RadTab runat="server"
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSummary" runat="server"  
                                                                        Localizable="true" 
                                                                        Mandatory="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Summary"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedContent" runat="server"  
                                                                        Localizable="true" 
                                                                        Mandatory="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Content"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedDescription" runat="server"  
                                                                        Localizable="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Description"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedComments" runat="server"  
                                                                        Localizable="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Comments"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                        </Tabs> 
                                                    </telerik:RadTabStrip> 
                                                    <telerik:RadMultiPage ID="RadMultiPageEdit" runat="server" Width="100%"  
                                                        SelectedIndex="0"
                                                        <telerik:RadPageView ID="RadPageViewSummary" runat="server"
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorSummary" runat="server" 
                                                                Content='<%# Bind("Summary") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewContent" runat="server"
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorContent" runat="server"  
                                                                Content='<%# Bind("Content") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewDescription" runat="server"
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorDescription" runat="server"  
                                                                Content='<%# Bind("Description") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewComments" runat="server"
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorComments" runat="server"  
                                                                Content='<%# Bind("Comments") %>' /> 
                                                        </telerik:RadPageView> 
                                                    </telerik:RadMultiPage> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Summary, Content, Description, Comments> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <ActivationDateTime> --> 
                                    <div style="margin-top: 8px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <%= Translator.Translate("ActivationDateTime")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <SciDev:CustomRadDateTimePicker ID="CustomRadDateTimePicker" runat="server" 
                                                        Localizable="true" 
                                                        DbSelectedDate='<%# Bind("ActivationDateTime") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </ActivationDateTime> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <IsLocked> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <%= Translator.Translate("IsLocked")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <asp:CheckBox ID="CheckBoxIsLocked" runat="server" Checked='<%# Bind("IsLocked") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </IsLocked> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"
                                    <!-- <IsDeleted> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"
                                        <table cellpadding="0" cellspacing="0" width="100%"
                                            <tr> 
                                                <td align="left" valign="middle"
                                                    <%= Translator.Translate("IsDeleted")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"
                                                    <asp:CheckBox ID="CheckBoxIsDeleted" runat="server" Checked='<%# Bind("IsDeleted") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </IsDeleted> --> 
                                </td> 
                            </tr> 
                        </table> 
                    </div> 
                    <!-- </edit fields section> -->              
 
                    <!-- <save cancel section> -->  
                    <div style="margin-top: 8px; margin-bottom: 8px;">                            
                        <table cellpadding="0" cellspacing="5"
                            <tr> 
                                <td> 
                                    <div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "
                                        <SciDev:CustomSectionEditFormSave ID="CustomSectionEditFormSave" runat="server" 
                                            OnSaveClick="CustomButtonSave_Click" /> 
                                    </div> 
                                </td> 
                                <td> 
                                    <div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "
                                        <SciDev:CustomSectionEditFormCancel ID="CustomSectionEditFormCancel" runat="server"/> 
                                    </div> 
                                </td> 
                            </tr> 
                        </table>      
                    </div> 
                    <!-- </save cancel section> --> 
 
                </EditItemTemplate> 
            </asp:FormView> 
 
            <SciDev:CustomObjectDataSourceEdit ID="CustomObjectDataSourceEdit" runat="server"  
                DataSourceID="CustomObjectDataSourceEditDataSourceID" 
                DataObjectTypeName="Project.PresentersTier.Presenters.InteractiveWorld.ArticlePresenter" 
                TypeName="Project.PresentersTier.PresenterControllers.InteractiveWorld.ArticlePresenterCtrl"   
                SelectMethodOnCreateMode="CreateDefault"  
                InsertMethodOnCreateMode="MakePersistent" 
                SelectMethodOnUpdateMode="GetByIdAndCultureCode" 
                UpdateMethodOnUpdateMode="MakePersistent" 
                OnValidation="CustomObjectDataSourceEdit_Validation" 
                OnInserted="CustomObjectDataSourceEdit_Inserted" 
                OnUpdated="CustomObjectDataSourceEdit_Updated" > 
            </SciDev:CustomObjectDataSourceEdit> 
        </ContentTemplate> 
    </SciDev:CustomSectionBoxEditFormTemplate> 
</asp:Panel> 
 
 
 
 

Pavel
Telerik team
 answered on 19 Feb 2010
1 answer
102 views
Hello,

I'm using ASP.NET AJAX RadGrid control with ASP.NET MVC and I'm wondering what solution would be best for saving per customer "ClientSettings" from RadGrid without using doPostBack?

My RagGrid Client settings:
<ClientSettings Resizing-AllowColumnResize="True" ReorderColumnsOnClient="True" Resizing-EnableRealTimeResize="True" AllowRowHide="True" AllowKeyboardNavigation="True" AllowColumnsReorder="True" AllowColumnHide="True" EnableAlternatingItems="False" /> 

Is there, a way to get all this settings on some client event and save them to a cookie or make ajax post?

Thanks
Georgi Krustev
Telerik team
 answered on 19 Feb 2010
1 answer
89 views
My Panel Bar item has weird color like tile on IE. No problem on FireFox or Chrome. Any idea?
Yana
Telerik team
 answered on 19 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?