Telerik Forums
UI for ASP.NET AJAX Forum
22 answers
239 views
Hi,

I have my scheduler binded through web service. This part was working ok in the Q2 but then I updated to the Q3 and it's not working properly anymore.

I add an Attribute to my resources, say "X" for example and in the get resources from the web service I do the following:

Resource.Attributes["X"] = 1

when I get this Resource in the scheduler all the attributes dissapear. I don't know if that's normal or not. I use attributes to send extra information on the appointments and it works fine.

any ideas? is it a bug? or a normal behaviour? As I told you it was working fine for the Q2. This attribute [NonSerializedInControlState] may be preventing it from serialize?

regards,

jose 
Boyan Dimitrov
Telerik team
 answered on 19 Apr 2013
12 answers
460 views
I have added LinkButton dynamically. Everything is coming properly like style and related attributes. But OnCommand For LinkButton not triggering and if click on link button which i have been added it disappears. From UI. And Event Listener not triggering properly.
Please Suggest me.
Here my code
protected void Aspx_RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
             if (e.Item is GridDataItem)
               {
                 GridDataItem zitem = (GridDataItem)e.Item;
                HtmlGenericControl zobjSpanLabel = (HtmlGenericControl)e.Item.FindControl("span_StoryLabels_IceBox");
                  LinkButton zobjLableLinkButton = new LinkButton();
                        zobjLableLinkButton.Text ="Test";
                        zobjLableLinkButton.Command += new CommandEventHandler(GetThingsRelatedToEntity);
                        zobjLableLinkButton.CommandArgument = "1234";
                        zobjLableLinkButton.CommandName = "";                        
                        zobjLableLinkButton.Attributes.Add("style", "text-decoration:none;color: #006633;cursor: pointer;font-family: arial,sans-serif;font-size: 12px;");
                        zobjLableLinkButton.CssClass = "stroylabels";
                        zobjSpanLabel .Controls.Add(zobjLableLinkButton);
}

protected void GetThingsRelatedToEntity(object sender, CommandEventArgs e)
{
//My Code Here
}

Thanks in advance.
Eyup
Telerik team
 answered on 19 Apr 2013
4 answers
135 views
Hi.

I have an web app that are using a datepicker and it has started to run really slow after the first postback.
I found that the "slowness" only occured in Chrome 26 (26.0.1410.43). The same code worked perfectly in Chrome 25 (verifed on another computer and slow after upgrade to 26). 

Any ideas what can cause this issue?

EDIT;
I having problems recreating the issue in a standalone project that I can post. (It is part of a large webapp). And it seems like its only a problem when the DOM is larger. I.e the example apps seems to run a little slower, but on my app it takes 3+ seconds plus to change the month in the calendar.

The thing I dont understand is that it works without any errors but its slow and only in Chrome 26+, the bottleneck seems to be located in the JS function Telerik.Web.UI.RadCalendar._navigatePrev/XXXX and its much slower after a postback.

EDIT 2:
The row that seems to take longer time is this.RenderViewDays(d, b, a, this.RadCalendar.get_orientation(), this.StartRowIndex, this.StartColumnIndex);

Any ideas why a postback could change the performace of the line above? I have stepped through the code and profiled it without finding any reason or bottleneck "hotspot".

When stepping through the code no errors or external (non-telerik-functions) gets invoked nor is any other client side functions attached.

The exact same code works perfect in other browsers (and earlier Chrome versions < 26).
 


Eyup
Telerik team
 answered on 19 Apr 2013
1 answer
87 views
I created a grid while debugging.

<

 

telerik:RadGrid ID="RadSearch" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="true" OnNeedDataSource="RadSearch_NeedDataSource">

I see that the autogenerated date fields returned have a date picker in the filter.

How do I get that in my grid where AutoGenerateColumns="false" and my date column is in the .aspx page?
<telerik:RadGrid ID="RadSearch" runat="server" AllowFilteringByColumn="True" AutoGenerateColumns="false" OnNeedDataSource="RadSearch_NeedDataSource">

 

 

...

...
<
Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Last_Update_Date" HeaderText="Modified" SortExpression="Last_Update_Date" AllowFiltering="true" UniqueName="Last_Update_Date" DataFormatString="{0:MM/dd/yyyy}" />
...

Thanks,
David

 

Princy
Top achievements
Rank 2
 answered on 19 Apr 2013
0 answers
42 views
Hi Team,

I am using rad controls for printing. It was working very thing fine in laser printers with A4 sheets. But as per our requirement we need to sent print TVS (http://tinyurl.com/cvnch6a) printer for printing huge amount of data. Hear getting an issue the printer was taking print and getting out put with unreadable format.

So please suggest me to go further. 


Thanks & Regards

Rambabu
Ram
Top achievements
Rank 1
 asked on 19 Apr 2013
3 answers
167 views
I have a radgrid with a details table with a formtemplate for editing. so it's a grid with two levels, when I am editing at the child level the modal popup show up fine but When I click the update button, it does all the work intended but does not close. It all works fine for inserting a record or canceling. and in the first lever both the edit and insert work fine, but just the child level edit is causing this problem. I've read a couple things to try and that is adding AllowAutomaticUpdates="false" and also adding

grdVcntn.MasterTableView.IsItemInserted = False
grdVcntn.MasterTableView.Rebind() to the _ItemCommand for the e.CommandName I have and neither worked.

I am also binding both grids in the backend using _NeedDataSource and _DetailTableDataBind. Is there any other sudgestions for fixing this.

Pavlina
Telerik team
 answered on 18 Apr 2013
2 answers
253 views
I've upgraded the web site to dot.net framework 4 and Telerik ASP.NET Ajax Controls 2013 Q1 (also tried 2012 Q3) framework 4.0.
It's Windows Server 2008, IIS 7,
Application Pool is .NET fr. 4.0.30319, Integrated mode, Local System account

Telerik Controls do not respond on click events.
RadTabStrip, RadComboBox, RadMenu, RadToolbar

Can see JS error in Web developer tools:
Uncaught ReferenceError: Sys is not defined Uncaught ReferenceError: Telerik is not defined
and many of those:
Failed to load resource: the server responded with a status of 404 (Not Found) ....


web config sections:
<handlers>
  
<remove
name="Telerik_Web_UI_WebResource_axd"/>
   <add name="Telerik_Web_UI_WebResource_axd" preCondition="integratedMode"
       path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"
       verb="*" />
</handlers>
<modules
runAllManagedModulesForAllRequests="true">
  <remove name="RadCompression"/>
 
<add
name="RadCompression" type="Telerik.Web.UI.RadCompression" />
</modules>
<pages enableViewStateMac="false"
clientIDMode="AutoID">
  <controls>
    <add
assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik"/>
  </controls>
</pages>

ok, found it, i was using asp ScriptManager on the master which was not registered in web config 
the solution is or register it or use the Telerik Rad.ScriptManager
Andrew
Top achievements
Rank 1
 answered on 18 Apr 2013
1 answer
109 views
I have a RadToolTip on a Page.  The ShowEvent and HideEvents are both from code.

If a certain param is passed through the URL, the ToolTip is shown during the PageLoad.

There is also a button on the screen that is in an UpdatePanel that has code in its CodeBehind method to show the tooltip.  The Tooltip is NOT in the UpdatePanel (or any other UpdatePanel).

The Page_Load is working, but its not working on PostBacks.


Thanks for any help.

Steve

MasterChiefMasterChef
Top achievements
Rank 2
 answered on 18 Apr 2013
4 answers
105 views

Hi,

 

I am new to Telerik controls. I recently started using these controls.
I have a situation where user select a file and click on the button then I want to show ajax loading image on the panel below that button.
also i want to update panel content with filename.
I tried this example but no use
http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx

My telerik controls version is : 2012.2.607.40


This is my sample working code.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .module1
        {
            background-color: #dff3ff;
            border: 1px solid #c6e1f2;
        }
         /*Hide RadEditor toolbars*/
        .Default .reToolbarWrapper
        {
            display: none;
        }
    </style>
 
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1"/>
    
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
             
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <asp:FileUpload ID="fileUpload" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Click to see the loading image" OnClick="Button1_Click">
            </asp:Button>
            <asp:Label ID="lblTop" runat="server" />
    <br />
    <br />
    <fieldset class="module1">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Height="275px" Style="padding-top: 15px;
            padding-left: 15px">
          <telerik:RadEditor ID="importLogEditor" runat="server" EditModes="Design" Enabled="true"
                    Width="410px" Height="190px">
                    <Tools>
                        <telerik:EditorToolGroup>
                        </telerik:EditorToolGroup>
                    </Tools>
                    
                    <Content>
                    </Content>
                </telerik:RadEditor>
        </asp:Panel>
    </fieldset>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>

and this is my code behind file

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class _Default : System.Web.UI.Page
{
     
    /******* READ: What I want? *************/
     
    //When the user selects a file and clicks on the button then
    //I want to update only Panel content, not entire page.
    //How to do that?
    //Also I am unable to see Ajax loading image as appeared in the below link
 
    /*******************************************/
 
    protected void Button1_Click(object sender, EventArgs e)
    {
       //This lable is outside update panel. It should not update
        lblTop.Text = DateTime.Now.Ticks.ToString();
 
        //when button is clicked I want to update only this part
        System.Threading.Thread.Sleep(2000);
        importLogEditor.Content = fileUpload.FileName;
        importLogEditor.Content += "</br>" + DateTime.Now.Ticks.ToString();
 
    }
}

Thank you.

mark baer
Top achievements
Rank 1
 answered on 18 Apr 2013
1 answer
54 views
Hi all,

How do i set column width, in automatic created columns??

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?