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

My application has stopped working since I upgraded to 2013.2.611.40

From my grid I have a checkbox, that if ticked fires the following server side code.

Protected Sub chkLocationArrival_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)

Dim chk As CheckBox = DirectCast(sender, CheckBox)

Dim item As GridDataItem = DirectCast(chk.NamingContainer, GridDataItem)

 

Dim DestinationLocationEvent_ID As Int32 = CInt(item("Call2LocationEvent_ID").Text)

Dim CurrentLocationEvent_ID As Int32 = CInt(item("CurrentLocationEvent_ID").Text)

The problem is that the items Call2LocationEvent_ID & CurrentLocationEvent_ID have visible=false in the grid, and on postback only return a &nbsp not any value.

Has anyone else found this?

Andy

Andy Green
Top achievements
Rank 2
 answered on 19 Jun 2013
1 answer
198 views
Hello Telerik Team,

I have searched all forums threads and didn't find relevant answer.

Please could you provide a sample, how to sort radgrid clicking on a non-grouped column that takes the entire dataset into consideration, yet maintains the integrity of the groups ? After click on some column, it should order groups based on column value, as well. 

Here is similar issue http://www.telerik.com/community/forums/aspnet/grid/sorting-a-grouped-grid.aspx without solution...

Consider this example:
GroupA
     Value5
     Value3
GroupB
     Value1

This happens when I click the sort of a column:

GroupA
     Value3
     Value5
GroupB
     Value1

What I'm wanting:

GroupB
     Value1
GroupA
     Value3
     Value5


Thank you

Best regards

Vasssek
Vasil
Telerik team
 answered on 19 Jun 2013
2 answers
562 views
Hello Everyone,

Here is scenario where i stuck with Rad-Window,

i have a page with too many long Height , now in bottom of page one link is there to open Rad-Window ,when i click on that link it opens Window properly on top but in backside page is reloaded so the window get position to that link and it goes down to bottom .

here is what i want is to make position of window on to top .


Can anyone do this?
Thanks,

 

Kiresh
Top achievements
Rank 1
 answered on 19 Jun 2013
1 answer
48 views
Hi..
I'm using 2013.1.417.45 - but I can't seem to locate the ExpressionItemCreated event... I have the following. 
What am I missing ?  
thanks

   <telerik:RadFilter runat="server"  ExpressionPreviewPosition="Bottom" OnApplyExpressions="RadFilter1_ApplyExpressions" OnPreRender="RadFilter1_PreRender" ID="RadFilter1"  ShowApplyButton="false" Style="margin: 10px 0 0 10px"></telerik:RadFilter>
               
Eyup
Telerik team
 answered on 19 Jun 2013
1 answer
79 views
Hi all,

So i was getting the text values from the rad grid witout a problem, when suddenly, after i put the url's, the values do not apear, anybody had this problem or know wha to do??

Best Regards
Eyup
Telerik team
 answered on 19 Jun 2013
7 answers
274 views
Hi,

I have created RadTollTip for RadScheduler appointment on RadScheduler's OnAppointmentCreated event as shown below.

protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
        {
LinkButton lnkButtonMore = new LinkButton();                 lnkButtonMore.ID = "lnkBtn" + e.Appointment.ID.ToString();                 lnkButtonMore.Attributes.Add("runat", "server");                    lnkButtonMore.Text = e.Appointment.Subject ;                    lnkButtonMore.ToolTip = "";                 lnkButtonMore.ForeColor = System.Drawing.Color.Black;                 lnkButtonMore.Enabled = false;                 lnkButtonMore.Font.Size = FontUnit.Point(8);                 lnkButtonMore.Height = new Unit(100, UnitType.Percentage);                 lnkButtonMore.Width = new Unit(100, UnitType.Percentage);                 lnkButtonMore.Font.Underline = false; 

RadToolTip radTooltip = new RadToolTip();
                radTooltip.ID = "radAppr"+ e.Appointment.ID.ToString();;
                radTooltip.Attributes.Add("runat", "server");
                radTooltip.Text = strbulToolTip.ToString();
                radTooltip.BorderStyle = BorderStyle.None;
                radTooltip.TargetControlID = e.Appointment.ClientID;
                radTooltip.IsClientID = true;
                radTooltip.AutoCloseDelay = 0;
                radTooltip.ShowDelay = 0;
                radTooltip.HideDelay = 0;
                radTooltip.Position = ToolTipPosition.MiddleLeft;
                radTooltip.RelativeTo = ToolTipRelativeDisplay.Element;
                radTooltip.HideEvent = ToolTipHideEvent.LeaveTargetAndToolTip;  

e.Container.Controls.Add(lnkButtonMore);             
                e.Container.Controls.Add(radTooltip);
            }

Where "strbulToolTip" contains the table which I show as ToolTip of appointment.

Issue occurs when I keep mouse pointer on appointment for 5 to 10 seconds and then remove mouse pointer from appointment, ToolTip does not hide.

If I remove mouse pointer from appointment in less then 5 seconds then it hides ToolTip.

Regards,
Nehal
Ivaylo
Telerik team
 answered on 19 Jun 2013
2 answers
90 views
Hello,
I have a RadGrid with an Edit/Insert popup form based on a template. The RadGrid is AJAX enabled programmatically in the Page_Load() method.

RadAjaxManager ram = RadAjaxManager.GetCurrent(Page);
ram.AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1, RadAjaxLoadingPanel1);
<telerik:RadScriptManager id="ScriptManager" runat="server"
  EnableScriptCombine="true" EnablePageMethods="false" EnablePartialRendering="true"
  EnableScriptGlobalization="false" EnableScriptLocalization="true">
  <Scripts>
    <asp:scriptreference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:scriptreference>
    <asp:scriptreference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:scriptreference>
    <asp:scriptreference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:scriptreference>
  </Scripts>
</telerik:RadScriptManager>
protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    // Add an RadAjaxManager to the page.
    SetUpAjaxManagerOnPage();
    // Create child controls (if necessary).
    EnsureChildControls();
}
protected void SetUpAjaxManagerOnPage()
{
    // Check if there is already an Ajax Manager somewhere on the page.
    RadAjaxManager currentAjaxManager = RadAjaxManager.GetCurrent(Page);
    if (currentAjaxManager == null)
    {
        Page.Form.Controls.AddAt(0, AjaxManager);
        Page.Items.Add(typeof(RadAjaxManager), AjaxManager);
    }
}
protected virtual RadAjaxManager AjaxManager
{
    get
    {
        if (_ajaxManager == null)
        {
            _ajaxManager = RadAjaxManager.GetCurrent(Page);
            if (_ajaxManager == null)
            {
                _ajaxManager = new RadAjaxManager() { ID = "RadAjaxManager1" };
            }
        }
        return _ajaxManager;
    }
}


In the template there is a RadListBox.

<telerik:RadListBox runat="server"
  ID="RadListBoxCharacteristicValues"
  DataValueField="CharacteristicValuedID"
  DataTextField="CharacteristicVal"
  AllowReorder="true"
  AllowDelete="true"
  EnableDragAndDrop="true"
  Height="150px" Width="240px" />

When I click on the Edit or Add buttons nothing happens but a Javascript exception is thrown:

Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type
  1. Error$create ScriptResource.axd:222
    Error$argumentUndefined ScriptResource.axd:346
    Function$_validateParameterType         ScriptResource.axd:130
    Function$_validateParameter ScriptResource.axd:99
    Function$_validateParams ScriptResource.axd:67
    Sys$Component$create ScriptResource.axd:2698
    (anonymous function) TechnicalData.aspx:7
    Sys$_Application$add_init ScriptResource.axd:3991
    (anonymous function) TechnicalData.aspx:1
    ...


I spent some time debugging the client code to find out what was causing such exception and it seemed that Javascript had no knowledge of the RadListBox (type undefined).

I found a temporary workaround by placing a dummy empty RadListBox in another place of the page.

This is not peculiar to RadListBox controls as it happens also with all other RadControls.

My conclusion is that if the edit form template contains RadControls which are nowhere else defined on the page, the associated client scripts and definitions are not properly loaded when using AJAX. Without enabling AJAX behavior everything works fine.

What am I doing wrong? Is there a solution?

Thanks in advance,

Mauro

Telerik version: 2013.1.220.35
Language: C#
Platform: Sharepoint Server 2010

Mauro
Top achievements
Rank 1
 answered on 19 Jun 2013
5 answers
306 views
Hello,

OK, so I have a page that has a radgrid and a form.  When creating a new record via the form and rebinding the grid, it works fine.  When initially binding the grid, it works fine.  Only when clicking a delete button in the grid, handling the custom command, and rebinding, do I get this error.

On the form, there are radtextbox, radcombobox, radspell, and other controls.  I noticed the RadSpell.CreateChildCOntrols in the stacktrace... does that mean that's where the error is?  I also see a reference to ASP.views_shared_header_ascx.__Render__control1, which is a user control and has some controls/AJAX in it.

Also, I'm binding on PreRender - this is not an issue for the rest of the app that does the same thing; and in this page, it only happens on this one spot, not in the other two spots, which are bound on prerender...

Why would this error be happening?

Thanks.


at System.Web.UI.ScriptControlManager.RegisterScriptControl[TScriptControl](TScriptControl scriptControl)
at Telerik.Web.UI.RadWebControl.RegisterScriptControl()
at Telerik.Web.UI.RadWebControl.ControlPreRender()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Telerik.Web.UI.RadSpell.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root)
at Telerik.Web.UI.RadScriptBlock.GetAjaxSettingForCurrentInitiator(RadAjaxManager currentAjaxManager)
at Telerik.Web.UI.RadScriptBlock.IsForCurrrentInitiator(Control controlToCheck, RadAjaxManager currentAjaxManager)
at Telerik.Web.UI.RadScriptBlock.IsInUpdatedControls(Control controlToCheck, RadAjaxManager currentAjaxManager)
at Telerik.Web.UI.RadScriptBlock.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at ASP.views_shared_header_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\hbweb\538e2744\52ba1acc\App_Web_header.ascx.639c3968.q1sqgwkt.0.cs:line 0
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at Telerik.Web.UI.RadAjaxPanel.RenderChildren(HtmlTextWriter writer)
at Telerik.Web.UI.RadAjaxPanel.RenderContents(HtmlTextWriter writer)
at Telerik.Web.UI.RadAjaxPanel.Render(HtmlTextWriter writer)
at Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
at Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer)
at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)   
Radoslav
Telerik team
 answered on 19 Jun 2013
1 answer
149 views
Dear All,

How can I get radfilter selected expression as a string so that I can filter datasource and rebind the grid.

Thank you

Best Regards,

Kiran
Shinu
Top achievements
Rank 2
 answered on 19 Jun 2013
2 answers
118 views
Hi,
     We are using RadGrid like this: Using default skin


         <telerik:RadGrid ID="rgdAccts" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None"
            AllowSorting="True" AllowMultiRowEdit="True"
            OnItemDataBound="rgdAccts_ItemDataBound" OnBiffExporting="rgdAccts_BiffExporting" >
        <ClientSettings AllowExpandCollapse="false" AllowGroupExpandCollapse="false">
            <Selecting EnableDragToSelectRows="false" />
            <Scrolling AllowScroll="true" />
            <Resizing AllowColumnResize="true" AllowResizeToFit="true" ShowRowIndicatorColumn="false" />
        </ClientSettings>
        <MasterTableView DataKeyNames="AcctID">
           .........
              grid bound columns....
              <telerik:GridTemplateColumn DataField="PermissionID" UniqueName="PermissionID">
                    <EditItemTemplate>
                        <asp:RadioButtonList ID="rblPermission" runat="server" DataValueField="Custom"
                            DataTextField="ValueCustom" OnLoad="rblPermission_Load" RepeatDirection="Horizontal"
                            CssClass="grid-radiobuttonlist" />
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
 
          When the page is loaded and look into html, all the rows are getting displayed as 'rgEditRow'. No alternate row is Shown. So, alternate row colors are not displayed. Entire grid (all rows) are of same color. We need to apply alternate row color style to this grid. When I looked into default skin, I see styles only for rgRow, rgAltRow and rgEditRow. So, how can I apply different colors to alter rows. I prefer to do it in skin rather than doing in the grid locally. Because we have similar requirements on many asp.net pages.

Thanks,
Prathiba
Shinu
Top achievements
Rank 2
 answered on 19 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?