Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
I know that there is an option to set first day of the week,
but is there an option to set the workweek to be different from monday-friday?
For example saturday-wednesday workweek as in some arabic countries.
Plamen
Telerik team
 answered on 20 Dec 2012
1 answer
111 views
2012 Q3 controls

This sample code: <telerik:RadTextBox runat="server" Width="400px" Label="Test" /> results in the label and inputbox having equal widths.  I need to produce the more accepted behaviour of having the input box closer to the label and having it widen/narrow according to the Width property for all my textbox controls.  How can I accomplish this?

Eyup
Telerik team
 answered on 20 Dec 2012
8 answers
947 views
I'm getting this error:


RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.


I have given Network Service full control of App_Data folder.  What am I missing?
Peter Filipov
Telerik team
 answered on 20 Dec 2012
1 answer
76 views
I am trying to create a User Control to place into a Telerik MegaMenu (RadMenu). The User Control is named "clientfilter" which will pull a sub-set of data from a SharePoint 2010 list. I have placed the following code into the "Page_Load" event but am getting errors on render.

protected void Page_Load(object sender, EventArgs e)
        {
            SPSite site = new SPSite("http://abcdev");
            using (SPWeb web = site.OpenWeb())
            {
                try
                {
                    SPList clientlist = web.Lists.TryGetList("clientmatter");
                    if (clientlist != null)
                    {
                        SPListItemCollection clientitems = clientlist.Items;
                        DataGrid dg = new DataGrid();
                        dg.DataSource = clientlist.Items.GetDataTable();
 
                        foreach (SPListItem clientitem in clientitems)
                        {
                            string clientddlvalue = clientitem["clientid"].ToString();
                            //myselect.Items.Add(clientddlvalue);
                             
                        }
                         
                        if ( !IsPostBack )
                         {
                           GridBoundColumn boundColumn;
 
                           //Important: first Add column to the collection
                           boundColumn = new GridBoundColumn();
                           this.RadGrid1.MasterTableView.Columns.Add(boundColumn);
 
                           //Then set properties
                           boundColumn.DataField = "clientid";
                           boundColumn.HeaderText = "clientid";
                         }
                    }
                }
                catch
                {
 
                }
                {
                    web.Dispose();
                }
            }
               
        }

The error I can see is "failure loading assembly 'Telerik.Web.UI.Design' ...", however, not sure if this is the real error or a by-product of a different error. When I originally entered the assembly registrations I mis-typed the name, however, I have subsequently fixed the name, but the error still persists. I have added the following to the GAC already:

  • Telerik.Web.UI
  • Telerik.Web.Design
  • Telerik.Web.UI.Skins

In my custom master page I have the following registrations:
<%@ Register Tagprefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2012.3.1205.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
<%@ Register Tagprefix="telerik" Namespace="Telerik.Web.Design" Assembly="Telerik.Web.Design, Version=2012.3.1205.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

What am I missing? Why will the code not work?

Thank you in advance.
Marin
Telerik team
 answered on 20 Dec 2012
1 answer
110 views
Hi, I used RadUpload tool to upload image file and I want to show it when I select an image file on Dialog window. So I search on google and I found this page http://www.telerik.com/help/silverlight/radupload-events-overview.html with info of "FilesSelectedEventArgs"

  • FilesSelected - occurs when files have been selected from the browse dialog window. The event handler receives two arguments:
    • The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
    • A FilesSelectedEventArgs object.
But when I code, I can't find this. It's just have FileUploadedEventArgs . Please help me! Thanks

protected void UploadImage(object sender, FilesSelectedEventArgs e)
    {

        int counter = 1;
        UploadedFile file;
        file = e.File;
       
        string targetFolder = Server.MapPath(RadUpload1.TargetFolder);

        string targetFileName = Path.Combine(targetFolder,
            file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());

        while (System.IO.File.Exists(targetFileName))
        {
            counter++;
            targetFileName = Path.Combine(targetFolder,
                file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
        }
        Image1.ImageUrl = targetFileName;
        upload_image_handle(sender, e);// call FilesSelectedEventhandle
    }
Shinu
Top achievements
Rank 2
 answered on 20 Dec 2012
1 answer
163 views
Hi Telerik Team, I have this webpart:

protected override void CreateChildControls()
{
      ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
      if (scriptManager == null)
      {
        scriptManager = new RadScriptManager();
        this.Page.Form.Controls.AddAt(0, scriptManager);
      }
}

protected override void OnLoad(EventArgs e)
{
      base.OnLoad(e);

      Panel panel = new Panel();
      panel.ID = "Panel1";
      this.Controls.Add(panel);   

      RadButton button = new RadButton();
      button.Height = 20;
      button.Width = 100;
      button.Text = "Click to update";
      button.ID = "ConfigureButton";
      button.OnClientClicked = "configureGauge";
      button.AutoPostBack = false;
      panel.Controls.Add(button); 

      radNumTextBox = new RadNumericTextBox();
      radNumTextBox.Height = 20;
      radNumTextBox.Width = 100;
      radNumTextBox.ID = "NewValueNumericBox";
      radNumTextBox.AllowOutOfRangeAutoCorrect = true;
      panel.Controls.Add(radNumTextBox);

      script = new Literal();
      script.ID = "scriptLiteral";
      script.Text = "<script type=\"text/javascript\">";
      script.Text += "function configureGauge() {";
      script.Text += "var value = $find('<%=NewValueNumericBox.ClientID %>');";
      script.Text += "alert(value);  }";
      script.Text += "</script>";
      this.Controls.Add(script);
}

When the configureGauge() function is called it returns null.
Do you know why this is happening?

Thanks,
Gustavo
Iana Tsolova
Telerik team
 answered on 20 Dec 2012
2 answers
114 views
Hi,

Please give me sample code that how to show LoadingPanel when switching between multiple pages in Tabstrip ?

Thank you
Madhu Palakurthi
Top achievements
Rank 1
 answered on 20 Dec 2012
3 answers
119 views
Hi,
I would like to modify the edges of radtextbox that make them rounder, how can I do?
Fabio Cirillo
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
385 views
I have a search RadToolBar control:
<telerik:RadToolBar ID="RadToolBar2" runat="server" Width="100%" OnClientButtonClicking="OnClientButtonClicking">
   <Items>
       <telerik:RadToolBarButton runat="server" Text="Button 0">
           <ItemTemplate>
               <asp:Label ID="Label1" runat="server" Text="Name:"></asp:Label>
               <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="70" />
               <asp:Label ID="Label2" runat="server" Text="Surname:"></asp:Label>
               <telerik:RadTextBox ID="RadTextBox2" runat="server" Width="70" />
               <asp:Label ID="Label3" runat="server" Text="Age:"></asp:Label>
               <telerik:RadTextBox ID="RadTextBox3" runat="server" Width="70" />
           </ItemTemplate>
       </telerik:RadToolBarButton>
       <telerik:RadToolBarButton runat="server" CommandName="NewSearch">
       </telerik:RadToolBarButton>
       <telerik:RadToolBarButton runat="server" CommandName="SearchGrid">
       </telerik:RadToolBarButton>
   </Items>
</telerik:RadToolBar>

I want to get/set the value of any RadTextBox controls on the toolbar, using Javascript.

I have this function:

function OnClientButtonClicking(sender, args) {
   var button = args.get_item();
   if (button.get_commandName() == "NewSearch") {
       //Here is where I want to clear the content of all the RadTextBox controls on the toolbar
   }
   if (button.get_commandName() == "SearchGrid") {
       //Here is where I want to get the content of a RadTextBox control from the toolbar
   }
}

Thank you!
Emil
Top achievements
Rank 2
 answered on 20 Dec 2012
1 answer
99 views
HI,
When i add more than 6 records in the grid, i am getting the below error:

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ' Thank you for using'. "

I am not using the trial version and below is the aspx code for the radajax and radgrid added. This error is shown in the scriptresource.axd file.

<div class="Table">
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="radgrid1">
                        <UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radgrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="hdnRowsCount" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
                Width="75px" Transparency="25">
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                    style="border: 0;" /></telerik:RadAjaxLoadingPanel>
            <asp:HiddenField ID="hdnRowsCount" runat="server" Value="0" />
              
<telerik:RadGrid ID="radgrid1" runat="server" ShowStatusBar="True" ShowFooter="True"
                OnItemCommand="radgrid1_ItemCommand" OnDeleteCommand="radgrid1_DeleteCommand"
                OnInsertCommand="radgrid1_InsertCommand" OnUpdateCommand="radgrid1_UpdateCommand"
                OnNeedDataSource="radgrid1_NeedDataSource" OnItemDataBound="radgrid1_ItemDataBound"
                CellSpacing="0" GridLines="None">
                <MasterTableView DataKeyNames="ProductNumber" AutoGenerateColumns="false" EditMode="InPlace"
                    CommandItemDisplay="TopAndBottom" CommandItemSettings-AddNewRecordText="Add New Order">
                    <Columns>


How to fix this?

Thanks
Radoslav
Telerik team
 answered on 20 Dec 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?