Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 views
How can I change the background color of selected item of a rad combobox according to the value. If the selected value is red, then the background color should be red.

Thanks
Princy
Top achievements
Rank 2
 answered on 20 Jun 2012
7 answers
544 views
2010.2.722.35  VS2008 IE8

When I select 2 files for multiple upload and the transfer is completed, if a postback happens it seems FileUploaded are being called once per file, over and over again for each ajaxified postback.  

Shouldn't FileUploaded only be fired once per file?    Otherwise if e.file.saveas is called, subsequent call would have failed.



Peter Filipov
Telerik team
 answered on 20 Jun 2012
1 answer
334 views
Hi All,


I need to appear the rad window on my page load event. that time the other controls need to disable.

Regards,

Prassin
Princy
Top achievements
Rank 2
 answered on 20 Jun 2012
4 answers
335 views
Hi,

I am facing issue with rad editor Link Manger Dialoag Handler on my  local system having windows 7 64 bit Ultimate Edition. Please find below web.config and exception detail and help to resolve this.

Deployment Environment

IIS 7.5 on 2008 R2

Details Exception

System.Web.HttpException
The controller for path '/trunk/ConfigurationFormWI/Telerik.Web.UI.DialogHandler.aspx' was not found or does not implement IController.
at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.


<System.WebServer>
<handlers>
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="*.vbhtml_*" path="*.vbhtml" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="*.vbhtm_*" path="*.vbhtm" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="*.cshtml_*" path="*.cshtml" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="*.cshtm_*" path="*.cshtm" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="*.aspq_*" path="*.aspq" verb="*" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="*.xamlx_*" path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="*.xoml_*" path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="*.svc_*" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="*.soap_*" path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
      <add name="*.rem_*" path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
      <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
      <add name="eurl.axd_*" path="eurl.axd" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" />
      <add name="CrystalImageHandler.aspx_GET" path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <add name="AssetHandler" preCondition="integratedMode" verb="GET,HEAD" path="asset.axd" type="Telerik.Web.Mvc.WebAssetHttpHandler, Telerik.Web.Mvc" />
    </handlers>

<System.Web>

<httpHandlers>
      <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
    </httpHandlers>
Rumen
Telerik team
 answered on 20 Jun 2012
2 answers
135 views
I am currently trying to make a popup editor work clientside with a backend WS, my problem is that when i add repaint the grid to show up the new items, the ids do not match up.

So i thought that i could set the ids on the rowcreated client event like so..

Code
...
           <ItemTemplate>
                <asp:label ID="ltrl_edit" runat="server"></asp:label>
           </ItemTemplate>
....
   function RowCreated(sender, eventArgs) {
                var cid = eventArgs.get_gridDataItem().getDataKeyValue("contactID");
                var imgstr = "<img src='../smtImages/ico_Editsm.png' style='cursor:pointer' class='hightlighttracklist' onclick='initialiseEdit(" + cid + ")' />"

                var item = eventArgs.get_gridDataItem();
                var button1 = $telerik.findElement(item.get_element(), "ltrl_edit");
                $(button1).html(imgstr);
            }

  1. My problem is that when I add an item and call the repaint method (with the new data), the RowCreated event is not fired
       
       function updateGrid(result) {
                   var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                tableView.set_dataSource(result);
                tableView.dataBind();
                var grid = $find("<%= RadGrid1.ClientID %>");
                grid.repaint();
            }

Any workarounds to this would be a gratefully recieved.

Thanks

Dave

David
Top achievements
Rank 2
 answered on 20 Jun 2012
1 answer
100 views
Will the handler that the RadStyleSheetmanger uses to generate the css files execute any .NET code the css file. Example: Dynamic Colors .TestCSSClass{
    color: <%=MyStyleClass.DefaultColor()%>;
}
Ivan Zhekov
Telerik team
 answered on 20 Jun 2012
1 answer
104 views
Is there a way to drap and drop without using the RadListViewItemDragHandle ? I want to be able to drag from anywhere in the item (like how you can drag a row in the radgrid), and since the handle is rendered as an input element, I can't even use CSS to stretch it the whole width and height of my item.
Tsvetina
Telerik team
 answered on 20 Jun 2012
1 answer
140 views
Hey Guys,
Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_cpPageBody_ctl00_cpPageBody_reImageResources_Uploader_4_imgMainImagePanel'. If it is being updated dynamically then it must be inside another UpdatePanel.' when calling method: [nsIDOMEventListener::handleEvent]

I know this one is well talked about, but I can't find a lead that fits our exact usage.

The scenario is this: I have a form which holds a resources control.  This control loads in dynamically a variable number of another control for uploading images.  It does this according to a set of resources defined on the object being edited in the parent form.
When the resources are already populated on this object being edited, the initial call (in page_init) to RenderEditor() works just fine.  However, RenderEditor() is also called by an AJAX event on yet another control in the form - the one which actually changes which resources exists on the object being edited in the main form.  When this control is updated, an event fires which tells the resources control to RenderEditor() - and get the new config, and get the new imageupload controls to add in.  The update triggers just fine.

However, when the ResourceEditor control tries to do its dynamic load - I get the above error.  it is strange because the very panel it is looking for is one of the dynamically loaded ones - i.e how can it not find something that it had to find in the first place to get its ID ?

I realise this sounds a little vague, so I will summarise and then attach the code from my Resources control:

Control in form dynamically loads in sub-controls according to a config.  On load version works fine.
Second control in form changes that config and notifies first control it needs to update.
AJAX update fires OK, update is attempted but error is then thrown.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ResourceEditor.ascx.cs" Inherits="ArtsHub.Controls.ResourceEditor" %>
<%@ Reference Control="~/shared/controls/images/ImageUploader.ascx" %>
<asp:PlaceHolder ID="phDynamicUploads" runat="server" />
<asp:Literal ID="litTest" runat="server" Text="initialised" />
 And the code behind:
public partial class ResourceEditor : System.Web.UI.UserControl
{
    public Globals.SectionIds Section { get; set; }
    public ResourceTypes ResourceType { get; set; }
 
    public void RefreshResources(TemplateChangedEventArgs e)
    {           
        //BLL.Emailing.Emailing.EmailBug("Got to Refresh Resources from viewstate" , e.Resources.Count.ToString());
        RenderEditor(e.Resources);
    }
 
    /// <summary>
    /// Main dynamic control load method - takes the list of resources as param
    /// </summary>
    public void RenderEditor(List<Resource> theseResources)
    {
        litTest.Text = string.Format("<h2>There were {0} Resources to load", theseResources.Count);
 
        foreach (Resource r in theseResources)
        {
            // Only process the filtered type from the control
            if (r.ResourceType == ResourceType)
            {
                ImageUploader thisUploader = (ImageUploader)Page.LoadControl("/shared/controls/images/ImageUploader.ascx");
                thisUploader.ID = "Uploader_" + r.ResourceId.ToString();
                thisUploader.SectionId = Section;
                thisUploader.Width = r.Width;
                thisUploader.Height = r.Height;
                thisUploader.ImageType = r.ImageType.Value;
                thisUploader.ImageURL = ImageFactory.GetListingImageURL((int)Section, Utilities.GetListingId, r.ImageType.Value); // Get Original Image for preview
 
                Label thisLabel = new Label();
                thisLabel.Text = r.Description;
 
                //BLL.Emailing.Emailing.EmailBug("Loading res " + r.ResourceId, "");
 
                phDynamicUploads.Controls.Add(thisLabel);
                phDynamicUploads.Controls.Add(thisUploader);
            }
        }
    }
}
 If anyone could shed some light on this I'd be most grateful.

Thanks
Maria Ilieva
Telerik team
 answered on 20 Jun 2012
3 answers
237 views
Do any of the file managers know how to handle Azure blob storage?
If yes, where can I find a document on how to configure them?

Thanks,
Adrian.
Jonathan
Top achievements
Rank 1
 answered on 20 Jun 2012
4 answers
142 views
Is het possible, and if it is, then how, to place the last ribbonBarTab at the most right of the screen. E.g. the last tab could be including the "Help" features, and that is usually at the most right of the ribbon.
In that way we get a closer resemblence with the usual windows applications.
Regards,
Frank
Ivan Zhekov
Telerik team
 answered on 20 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?