Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
186 views
Hi Gurus,

  I am dynamically calling a usercontrol,

  my issue is,when i click the paging button,the control is not loading (i need to use custom paging not built in paging)

Here is the code:

Default.aspx

------------------

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="DynamicControls._Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:ScriptManager ID="Sc1" runat="server">
</asp:ScriptManager>
<table>
<tr>
<td>
<telerik:RadTabStrip runat="server" ID="rdTabMessages" Skin="MetroTouch" EnableEmbeddedSkins="False"
CssClass="Tabcontrols_left" MultiPageID="RadMultiPage1" Orientation="VerticalLeft"
SelectedIndex="0" OnTabClick="tabClick">
<Tabs>
<telerik:RadTab TabIndex="0" CssClass="appointments" Text="Control1">
</telerik:RadTab>
<telerik:RadTab TabIndex="1" CssClass="appointments" Text="Control2">
</telerik:RadTab>
<telerik:RadTab TabIndex="2" CssClass="appointments" Text="Control3">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
</td>
<td>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" CssClass="Tacontrols_right">
<telerik:RadPageView runat="server" ID="RadPageView1">
<asp:Panel ID="pnlConfiguration" runat="server">
This is Control1
</asp:Panel>
</telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadPageView2">
<asp:Panel ID="pnlWebPages" runat="server">
This is Control2
</asp:Panel>
</telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadPageView3">
<asp:Panel ID="pnlTestimonial" runat="server">
</asp:Panel>
</telerik:RadPageView>
</telerik:RadMultiPage>
</td>
</tr>
</table>
</asp:Content>



CodeBehind

----------------

protected void tabClick(object sender, RadTabStripEventArgs e)
{
if (e.Tab.TabIndex == 0)
{
//e.Tab.Selected = true;
}
if (e.Tab.TabIndex == 1)
{

}
if (e.Tab.TabIndex == 2)
{

pnlTestimonial.Controls.Clear();
string controlPath = "~/Controls/RadSchedulerCS.ascx";
RadSchedulerCS uc = (RadSchedulerCS)LoadControl(controlPath);
uc.ID = "RadScheduler";
uc.BindGrid(1);
pnlTestimonial.Controls.Add(uc);

//if (uc != null)
//{
// DataList dlPager = (DataList)uc.FindControl("dlPager");
// if (dlPager != null)
// {
// LinkButton lnkPageNo = (LinkButton)dlPager.FindControl("lnkPageNo");
// dlPager.ItemCommand += new DataListCommandEventHandler(dlPager_ItemCommand);

// }
//}

}


}

protected void dlPager_ItemCommand(object source, DataListCommandEventArgs e)
{

pnlTestimonial.Controls.Clear();
string controlPath = "~/Controls/RadSchedulerCS.ascx";
RadSchedulerCS uc = (RadSchedulerCS)LoadControl(controlPath);
uc.ID = "RadScheduler";
uc.BindGrid(1);
pnlTestimonial.Controls.Add(uc);

}



RadSchedulerCS.ascx

---------------------------

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RadSchedulerCS.ascx.cs" Inherits="DynamicControls.Controls.RadSchedulerCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>



<asp:GridView ID="Gv1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderText="ID">
<ItemTemplate>
<asp:Label ID="lblID" runat="server" Text='<%#Eval("ID") %>' Visible="true"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblName" runat="server" Text='<%# Eval("FName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="DOB">
<ItemTemplate>
<asp:Label ID="lblDOB" runat="server" Text='<%# Eval("DOB") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>

</Columns>
</asp:GridView>
<asp:DataList CellPadding="5" RepeatDirection="Horizontal" runat="server" ID="dlPager"
OnItemCommand="dlPager_ItemCommand" >
<ItemTemplate>
<asp:LinkButton Enabled='<%#Eval("Enabled") %>' runat="server" ID="lnkPageNo" Text='<%#Eval("Text") %>'
CommandArgument='<%#Eval("Value") %>' CommandName="PageNo" CausesValidation="false"></asp:LinkButton>
</ItemTemplate>
</asp:DataList>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DynamicControls.Controls
{
public partial class RadSchedulerCS : System.Web.UI.UserControl
{
#region DECLRATIONS
public delegate void MyCustomHandler(object sender, EventArgs e); //This is for button click
public event MyCustomHandler SomethingClicked;

#endregion


protected void Page_PreRender(object sender, EventArgs e)
{
// Workaround to prevent clicking twice on the pager to have results displayed properly
this.Gv1.DataBind();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindGrid(1);
}
}
public void BindGrid(int currentPage)
{
List<Employee> empList = new List<Employee>();
empList.Add(new Employee() { ID = 1, FName = "John", DOB = DateTime.Parse("12/11/1971") });
empList.Add(new Employee() { ID = 2, FName = "Mary", DOB = DateTime.Parse("01/17/1961") });
empList.Add(new Employee() { ID = 3, FName = "Amber", DOB = DateTime.Parse("12/23/1971") });
empList.Add(new Employee() { ID = 4, FName = "Kathy", DOB = DateTime.Parse("11/15/1976") });
empList.Add(new Employee() { ID = 5, FName = "Lena", DOB = DateTime.Parse("05/11/1978") });
empList.Add(new Employee() { ID = 6, FName = "John1", DOB = DateTime.Parse("12/11/1971") });
empList.Add(new Employee() { ID = 7, FName = "Mary1", DOB = DateTime.Parse("01/17/1961") });
empList.Add(new Employee() { ID = 8, FName = "Amber1", DOB = DateTime.Parse("12/23/1971") });
empList.Add(new Employee() { ID = 9, FName = "Kathy1", DOB = DateTime.Parse("11/15/1976") });
empList.Add(new Employee() { ID = 10, FName = "Lena1", DOB = DateTime.Parse("05/11/1978") });
empList.Add(new Employee() { ID = 11, FName = "John2", DOB = DateTime.Parse("12/11/1971") });

int TotalCount = empList.Count();

var pgNo = currentPage;
var pgRec = 10;
empList = empList.Skip((pgNo - 1) * pgRec).Take(pgRec).ToList();
Gv1.DataSource = empList;
Gv1.DataBind();
generatePager(TotalCount, pgRec, pgNo);
}



public void generatePager(int totalRowCount, int pageSize, int currentPage)
{
int totalLinkInPage = 3;
int totalPageCount = (int)Math.Ceiling((decimal)totalRowCount / pageSize);
int startPageLink = Math.Max(currentPage - (int)Math.Floor((decimal)totalLinkInPage / 2), 1);
int lastPageLink = Math.Min(startPageLink + totalLinkInPage - 1, totalPageCount);
if ((startPageLink + totalLinkInPage - 1) > totalPageCount)
{
lastPageLink = Math.Min(currentPage + (int)Math.Floor((decimal)totalLinkInPage / 2), totalPageCount);
startPageLink = Math.Max(lastPageLink - totalLinkInPage + 1, 1);
}
List<ListItem> pageLinkContainer = new List<ListItem>();

if (startPageLink != 1)
{
int prevcounts = currentPage - 1;
pageLinkContainer.Add(new ListItem("First", prevcounts.ToString(), currentPage != 1));
}
for (int i = startPageLink; i <= lastPageLink; i++)
{
pageLinkContainer.Add(new ListItem(i.ToString(), i.ToString(), currentPage != i));
}
if (lastPageLink != totalPageCount)
{
int Nextcounts = currentPage + 1;
pageLinkContainer.Add(new ListItem("Last", Nextcounts.ToString(), currentPage != totalPageCount));
}

dlPager.DataSource = pageLinkContainer;
dlPager.DataBind();
}
protected void dlPager_ItemCommand(object source, DataListCommandEventArgs e)
{

if (SomethingClicked != null)
{
SomethingClicked(source, e);
if (e.CommandName == "PageNo")
{
BindGrid(Convert.ToInt32(e.CommandArgument));
}
}

}
class Employee
{
public int ID { get; set; }
public string FName { get; set; }
public DateTime DOB { get; set; }
}

}
}





I need it urgent,how to accomplish this,is any possibilities by using Delegates or any wayz,if so how to do that.

Help me with this.



Thanks in Advance





Boyan Dimitrov
Telerik team
 answered on 10 Mar 2014
2 answers
65 views
Hello, the bug is very easy to reproduce. This is the 4th bug I've found with decorator in one month after start using it with Lightmode rendermode, evidently it is flimsy and needs testing.

.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>Telerik Decorator Bug # 4</title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
     <Scripts>
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
      </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" RenderMode="Classic"
        DecoratedControls="Default, Select" />
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
         <asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server" Text="Button" />
     </div>
    </form>
</body>
</html>


.cs

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using System.Collections.Generic;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Dictionary<int, string> values = new Dictionary<int, string>();
        for (int i = 0; i < 50; i++)
        {
            values[i] = string.Format("4th Decortor/Select Bug : {0}", i);
        }
        DropDownList1.AppendDataBoundItems = true;
        DropDownList1.Items.Insert(0, new ListItem(""));
        DropDownList1.DataSource = values;
        DropDownList1.DataTextField = "Value";
        DropDownList1.DataValueField = "Key";
        DropDownList1.DataBind();
        DropDownList1.SelectedIndex = -1;
    }
}
Danail Vasilev
Telerik team
 answered on 10 Mar 2014
5 answers
126 views
I am begging for some kind soul to help me here.

I have tried everything I can think of, and I haven't been able to fix this problem.

For some reason, some appointments appear perfectly fine on my Scheduler, and others get cutoff. The code is exactly the same for both appointment creations.

Note: I am creating appointment manually and using the InsertAppointment() method to add them to the Scheduler.

I thought that maybe it was affecting only appointments scheduled in the future from the current date...but when I moved appointments around, I found (as you will see in the attached image) that I was able to see appointment perfectly from the 5th (current date) to the 9th. But starting the 10th, it gets cutoff. It's so BIZARRE...

PLEASE PLEASE Can anyone help me fix this?
Ben
Top achievements
Rank 1
 answered on 10 Mar 2014
3 answers
105 views
Attached file for your reference

<telerik:RadGrid ID="RadGrid1" Width="50%" runat="server" DataSourceID="SqlDataSource1" OnItemDataBound="RadGrid1_ItemDataBound">
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<GroupByExpressions>
<telerik:GridGroupByExpression>

<SelectFields>

<telerik:GridGroupByField FieldName="MetricGroup" HeaderValueSeparator=""/>


</SelectFields>

<GroupByFields>

<telerik:GridGroupByField FieldName="MetricGroup" SortOrder="Ascending" />

</GroupByFields>

</telerik:GridGroupByExpression>
</GroupByExpressions>

<Columns>

<telerik:GridTemplateColumn DataField="Name" DataType="System.Double" FilterControlAltText="Filter Name column" HeaderText="Name" SortExpression="Name" UniqueName="Name" >
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" align="center">
<b>John Doe #1</b></td>
</tr>
<tr>
<td style="width: 50%" align="center">

<b>Corrective Action</b>
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Name") %>
</ItemTemplate>

</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Jan" DataType="System.Double" FilterControlAltText="Filter Jan column" HeaderText="Jan" SortExpression="Jan" UniqueName="Jan">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2">
<b>Jan</b></td>
</tr>
<tr>
<td style="width: 50%">

<asp:CheckBox ID="CheckBox1" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Jan") %>
</ItemTemplate>

</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Feb" DataType="System.Double" FilterControlAltText="Filter Feb column" HeaderText="Feb" SortExpression="Feb" UniqueName="Feb">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Feb</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox2" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Feb") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Mar" DataType="System.Double" FilterControlAltText="Filter Mar column" HeaderText="Mar" SortExpression="Mar" UniqueName="Mar">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Mar</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox3" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Mar") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Apr" DataType="System.Double" FilterControlAltText="Filter Apr column" HeaderText="Apr" SortExpression="Apr" UniqueName="Apr">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Apr</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox4" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Apr") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="May" DataType="System.Double" FilterControlAltText="Filter May column" HeaderText="May" SortExpression="May" UniqueName="May">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>May</b></td>
</tr>
<tr>
<td style="width: 50%">

<asp:CheckBox ID="CheckBox5" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"May") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Jun" DataType="System.Double" FilterControlAltText="Filter Jun column" HeaderText="Jun" SortExpression="Jun" UniqueName="Jun">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Jun</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox6" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Jun") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Jul" DataType="System.Double" FilterControlAltText="Filter Jul column" HeaderText="Jul" SortExpression="Jul" UniqueName="Jul">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Jul</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox7" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Jul") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Aug" DataType="System.Double" FilterControlAltText="Filter Aug column" HeaderText="Aug" SortExpression="Aug" UniqueName="Aug">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Aug</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox8" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Aug") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Sep" DataType="System.Double" FilterControlAltText="Filter Sep column" HeaderText="Sep" SortExpression="Sep" UniqueName="Sep">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2">
<b>Sep</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox9" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Sep") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Oct" DataType="System.Double" FilterControlAltText="Filter Oct column" HeaderText="Oct" SortExpression="Oct" UniqueName="Oct">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Oct</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox10" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Oct") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Nov" DataType="System.Double" FilterControlAltText="Filter Nov column" HeaderText="Nov" SortExpression="Nov" UniqueName="Nov">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Nov</b></td>
</tr>
<tr>
<td style="width: 50%" >

<asp:CheckBox ID="CheckBox11" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Nov") %>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Dec" DataType="System.Double" FilterControlAltText="Filter Dec column" HeaderText="Dec" SortExpression="Dec" UniqueName="Dec">
<HeaderTemplate>
<table id="Table1" cellspacing="0" cellpadding="0" width="50" >
<tr>
<td colspan="2" >
<b>Dec</b></td>
</tr>
<tr>
<td style="width: 50%">

<asp:CheckBox ID="CheckBox12" runat="server" />
</td>

</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Dec") %>
</ItemTemplate>
</telerik:GridTemplateColumn>




</Columns>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>


<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OperationsConnectionString %>" SelectCommand="SELECT Name, MetricGroup, JanGoal AS Jan, FebGoal AS Feb, MarGoal AS Mar, AprGoal AS Apr, MayGoal AS May, JunGoal AS Jun, JulGoal AS Jul, AugGoal AS Aug, SepGoal AS Sep, OctGoal AS Oct, NovGoal AS Nov, DecGoal AS Dec FROM oss.SalespersonMetricGoals"></asp:SqlDataSource>


Pavlina
Telerik team
 answered on 10 Mar 2014
0 answers
58 views
radwindow background not transparent in IE8 i have use also
div.TelerikModalOverlay,
div.radwindow.inactivewindow td.corner,
 div.radwindow.inactivewindow td.titlebar,
 div.radwindow.inactivewindow td.footercenter
 {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100) !important;
opacity: 1 !important; -moz-opacity: 1 !important;
backcolor: #aaaaaa;
}
this css but not work in IE8
Ganesh
Top achievements
Rank 1
 asked on 10 Mar 2014
0 answers
96 views
radwindow background not transparent in IE8 i have use also
div.TelerikModalOverlay,
div.radwindow.inactivewindow td.corner,
 div.radwindow.inactivewindow td.titlebar,
 div.radwindow.inactivewindow td.footercenter
 {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100) !important;
opacity: 1 !important; -moz-opacity: 1 !important;
backcolor: #aaaaaa;
}
this css but not work in IE8
Ganesh
Top achievements
Rank 1
 asked on 10 Mar 2014
1 answer
99 views
VisualStudio Version is 2012 & Telerik Version=2013.3.1324.40.

And my code is given below.
<telerik:RadAsyncUpload ID="RAUFeatures" runat="server" Style="float: left;" EmptyMessage="Select File..."  >
   </telerik:RadAsyncUpload>
  
 Thanks
 Manish

Hristo Valyavicharski
Telerik team
 answered on 10 Mar 2014
1 answer
74 views
I have setup the RadAjaxPanel.RequestQueueSize property so that if the user clicks multiple widgets on the screen the actions will be queued. Previously I had the value set to 0 and we would get intermittent viewstate errors as cancelling the previous request somehow mangles the viewstate on the next request. With the RequestQueueSize property set > 0 I am seeing some very strange behavior where the last queued action seems to fire twice. I have no idea why this is happening or how to prevent it. And advice/information on the subject would be much appreciated. Thanks.
Maria Ilieva
Telerik team
 answered on 10 Mar 2014
1 answer
168 views
Hi,

I want to set an empty message in asyncupload as we shows in radtextbox.

My code is

  <telerik:RadAsyncUpload ID="RAUFeatures" runat="server" Style="float: left;" EmptyMessage="Select a File..."
                        Localization-Select="Browse" MaxFileInputsCount="1" Width="400px" TargetFolder="~/App_Data"
                        AllowedFileExtensions="csv" MaxFileSize="614400" OnFileUploaded="RAUFeatures_FileUploaded"
                        OnClientValidationFailed="GridvalidationFailed" OnClientFileUploadRemoved="ToGridDeleteFile"
                        OnClientFilesUploaded="OnClientFilesUploaded">
                    </telerik:RadAsyncUpload>

I have already gave empty message property but not working i am using VS2012 and Telerik Version=2013.3.1324.40

Thanks
Manish.
Hristo Valyavicharski
Telerik team
 answered on 10 Mar 2014
1 answer
135 views
I am using radlistbox to change a display order field.  SqlDataSource fires updated event for appropriate items but the displayorder integer does not get changed.  I'm at a loss as to how to troubleshoot this issue.   code below.

<telerik:RadListBox runat="server" ID="rlbxFields" DataSourceID="sqlFields" AllowDelete="True" AllowReorder="True" DataKeyField="ID" DataSortField="DisplayOrder" DataTextField="LabelText" DataValueField="ID" AllowAutomaticUpdates="true" AutoPostBackOnReorder="true" AutoPostBackOnDelete="true" EnableDragAndDrop="true"></telerik:RadListBox>
<asp:SqlDataSource ID="sqlFields" runat="server" ConnectionString="<%$ ConnectionStrings:zPortalConnectionString %>" DeleteCommand="DeleteFormField" DeleteCommandType="StoredProcedure" InsertCommand="UpsertFormField" InsertCommandType="StoredProcedure" SelectCommand="GetFormFields" SelectCommandType="StoredProcedure" UpdateCommand="UpsertFormField" UpdateCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="ID" DbType="Guid" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="FormID" DbType="Guid" />
<asp:Parameter Name="ID" DbType="Guid" />
<asp:Parameter Name="LabelText" Type="String" />
<asp:Parameter Name="Type" Type="String" />
<asp:Parameter Name="DisplayOrder" Type="Int32" />
<asp:Parameter Name="Required" Type="Boolean" />
<asp:Parameter Direction="InputOutput" Name="ID_OUT" DbType="Guid" />
</InsertParameters>
<SelectParameters>
<asp:Parameter Name="FormID" DbType="Guid" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="FormID" DbType="Guid" />
<asp:Parameter Name="ID" DbType="Guid" />
<asp:Parameter Name="LabelText" Type="String" />
<asp:Parameter Name="Type" Type="String" />
<asp:Parameter Name="DisplayOrder" Type="Int32" />
<asp:Parameter Name="Required" Type="Boolean" />
<asp:Parameter Direction="InputOutput" Name="ID_OUT" DbType="Guid" />
</UpdateParameters>
</asp:SqlDataSource>
Hristo Valyavicharski
Telerik team
 answered on 10 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?