Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
124 views
Hello,

I created a upload system for my site and I need to provide custome error handling on the client side.  I saw an old forum post that says the RadUpload controls do not have the ability to check for timeout or file size limitations.  I have the proper code in my web.config file but I need to be able to display a custom error message when one of those events happens.  Is that any update on this matter?  Is it now possible to create custom error handling for these issues?

Kyle
Kyle Jones
Top achievements
Rank 1
 asked on 23 Jul 2009
0 answers
65 views

I pasted the page below.  Any kinds of modifications to this page takes one or two minutes to save in Visual Studio 2008 (sp1).   Other types of controls do no take so long (for instance, i played around with panelbars and other types of controls).   I also have Ankh installed...a Subversion source control provider plugin for Visual Studio.  Could that be the culprit?  Any other reports of such slowness in saving pages?

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="MemberSearch.ascx.cs"

 

 

Inherits="FraudAdministration.Controls.MemberSearch" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="Search Criteria" Selected="True">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Results">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

</

 

telerik:RadTabStrip>

 

<

 

telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="1">

 

 

<telerik:RadPageView ID="RadPageView1" runat="server" Height="392px" Selected="True">

 

 

<div>

 

 

<!--TODO Set tab order-->

 

 

<table>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblEnrollmentStartDate" runat="server" Text="Enrollment Date Range"

 

 

AssociatedControlID="txtEnrollmentDateFrom"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadDateInput ID="txtEnrollmentDateFrom" runat="server" DateFormat="MM/dd/yyyy"

 

 

DisplayDateFormat="MM/dd/yyyy" ShowButton="True">

 

 

</telerik:RadDateInput>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblClient" runat="server" Text="Client" AssociatedControlID="txtClient"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<!--TODO need to make this a server control that caches the clients read from the data layer-->

 

 

<telerik:RadTextBox ID="txtClient" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

</td>

 

 

<td>

 

 

<telerik:RadDateInput ID="txtEnrollmentDateTo" runat="server" DateFormat="MM/dd/yyyy"

 

 

DisplayDateFormat="MM/dd/yyyy" ShowButton="True">

 

 

</telerik:RadDateInput>

 

 

</td>

 

 

<td style="text-align: right">

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblPackage" runat="server" Text="Package" AssociatedControlID="txtPackage"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<!--TODO need to make this a server control that caches the package codes read from the data layer for the selected client-->

 

 

<telerik:RadTextBox ID="txtPackage" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMembershipNumber" runat="server" Text="Membership Number" AssociatedControlID="txtMembershipNumber"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMembershipNumber" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblClientCode" runat="server" Text="Client Code" AssociatedControlID="txtClientCode"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtClientCode" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberFirstName" runat="server" Text="First Name" AssociatedControlID="txtMemberFirstName"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberFirstName" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberLastName" runat="server" Text="Last Name" AssociatedControlID="txtMemberLastName"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberLastName" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberEmailAddress" runat="server" Text="Email Address" AssociatedControlID="txtMemberEmailAddress"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberEmailAddress" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberSSN" runat="server" Text="SSN" AssociatedControlID="txtMemberSSN"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberSSN" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberPhone" runat="server" Text="Phone Number" AssociatedControlID="txtMemberPhone"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberPhone" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblMemberPostalCode" runat="server" Text="Postal Code" AssociatedControlID="txtMemberPostalCode"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMemberPostalCode" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblOrderID" runat="server" Text="Order ID" AssociatedControlID="txtOrderID"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtOrderID" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="text-align: right">

 

 

<asp:Label ID="lblActivityCode" runat="server" Text="Activity Code" AssociatedControlID="txtActivityCode"></asp:Label>

 

 

</td>

 

 

<td>

 

 

<!--TODO need to make this a server control that caches the activity codes read from the data layer -->

 

 

<telerik:RadTextBox ID="txtActivityCode" runat="server">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td style="text-align: right">

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

<div align="center">

 

 

<asp:Button ID="btnSearchMembers" runat="server" Text="Submit" />

 

 

</div>

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="RadPageView2" runat="server" Height="392px">

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None">

 

 

<MasterTableView>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="Member Status"

 

 

Reorderable="False" Resizable="True" SortExpression="MemberStatus" UniqueName="MemberStatusImageColumn">

 

 

<ItemTemplate>

 

 

<asp:Image ID="Image1" runat="server" Height="16" ImageUrl="~/images/Active.png"

 

 

ToolTip="Active" Width="16"></asp:Image>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="MembershipNumber"

 

 

FilterListOptions="VaryByDataType" ForceExtractValue="None" Groupable="False"

 

 

HeaderButtonType="TextButton" HeaderText="File Status" Reorderable="False" Resizable="True"

 

 

SortExpression="MembershipNumber" UniqueName="MembershipNumberColumn" Visible="False">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDateTimeColumn CurrentFilterFunction="NoFilter" DataField="EnrollmentDate"

 

 

FilterListOptions="VaryByDataType" ForceExtractValue="None" Groupable="False"

 

 

HeaderButtonType="TextButton" HeaderText="Enrollment Date" PickerType="DateTimePicker"

 

 

Reorderable="False" Resizable="True" SortExpression="EnrollmentDate" UniqueName="EnrollmentDateColumn">

 

 

</telerik:GridDateTimeColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="LastName" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="Last Name"

 

 

Reorderable="False" Resizable="True" SortExpression="LastName" UniqueName="OriginalFileNameColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="FirstName" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="FirstName"

 

 

Reorderable="False" Resizable="True" SortExpression="FirstName" UniqueName="FirstNameColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="SSN" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="SSN"

 

 

Reorderable="False" Resizable="True" SortExpression="SSN" UniqueName="SSNColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Address1" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="Address1"

 

 

Reorderable="False" Resizable="True" SortExpression="Address1" UniqueName="Address1Column">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Address2" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="Address2"

 

 

Reorderable="False" Resizable="True" SortExpression="Address2" UniqueName="Address2Column">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="PostalCode"

 

 

FilterListOptions="VaryByDataType" ForceExtractValue="None" Groupable="False"

 

 

HeaderButtonType="TextButton" HeaderText="PostalCode" Reorderable="False" Resizable="True"

 

 

SortExpression="PostalCode" UniqueName="PostalCodeColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="HomePhone" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="HomePhone"

 

 

Reorderable="False" Resizable="True" SortExpression="HomePhone" UniqueName="HomePhoneColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="Record Pending"

 

 

Reorderable="False" Resizable="True" SortExpression="RecordPending" UniqueName="RecordPendingImageColumn">

 

 

<ItemTemplate>

 

 

<asp:Image ID="Image1" runat="server" Height="16" ImageUrl="~/images/Active.png"

 

 

ToolTip="Active" Width="16"></asp:Image>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="PackageLabel"

 

 

FilterListOptions="VaryByDataType" ForceExtractValue="None" Groupable="False"

 

 

HeaderButtonType="TextButton" HeaderText="PackageLabel" Reorderable="False" Resizable="True"

 

 

SortExpression="PackageLabel" UniqueName="PackageLabelColumn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

 

 

ForceExtractValue="None" Groupable="False" HeaderButtonType="TextButton" HeaderText="ITM"

 

 

Reorderable="False" Resizable="True" SortExpression="RecordPending" UniqueName="ITMImageColumn">

 

 

<ItemTemplate>

 

 

<asp:Image ID="Image1" runat="server" Height="16" ImageUrl="~/images/Active.png"

 

 

ToolTip="Active" Width="16"></asp:Image>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPageView>

 

</

 

telerik:RadMultiPage>

 

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

</

 

telerik:RadWindowManager>

 

<

 

telerik:RadWindow ID="RadWindow1" runat="server">

 

</

 

telerik:RadWindow>

 

Gene Mangrum
Top achievements
Rank 1
 asked on 23 Jul 2009
1 answer
90 views
Hi,

When i try to bind my grid setting the datasource to a datattable in a radgrid, I'm getting radgrid as null and getting the message "object reference not set"  I'm cuurently having some assembly problem . ( i already have posted in forums telerik[a] cannot be cast into telerik[b]). Is it because of that?

Usually i never get radgrid as null when i try to set datasource.
Any help would be really appreciated.

Thanks,
ZR
Daniel
Telerik team
 answered on 23 Jul 2009
6 answers
254 views
Hi,

I have a calendar with 4 columns and 3 rows to display a whole year.
Setting focused date to the 1st Jan of the current year brings what I need to show.
A year starting 1.1 - and ending 31st Dez.
My problem - if I use fastnavigation and choose (for an example) Today (or a month) I get a view which shows
12 months beginning with the selected one.
My approach - it should display the year (of the selected date) but again 1st Jan to 31st Dez,
I tried to handle DefaultViewChanged - but the code does nothing more then setting the fast navigation properties.
So what I get is a correct (showing jan to dec) fast navigation.
My calendar still displays 12 calendars starting with the selected month instead of Jan what I need.
Here my code
protected void rcYear_DefaultViewChanged(object sender, Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs e) {  
    DateTime dtSel= e.NewView.ViewStartDate;  
    e.NewView.ViewStartDate = new DateTime(dtSel.Year, 1, 1);  
    e.NewView.ViewEndDate = new DateTime(dtSel.Year, 12, 31);  
    e.NewView.ParentCalendar.CalendarView.ViewStartDate=new DateTime(dtSel.Year, 1, 1);  
    e.NewView.ParentCalendar.CalendarView.ViewEndDate = new DateTime(dtSel.Year, 12, 31);  
    e.NewView.ParentCalendar.FocusedDate = new DateTime(dtSel.Year, 1, 1);  
    rcYear.FocusedDate = new DateTime(dtSel.Year, 1, 1);  
}  
 
I know this a bit too much - but I tried to set everything I could find :)

Regards

Manfred
Dimo
Telerik team
 answered on 23 Jul 2009
1 answer
128 views
I have a RADGrid that is databound upon page load. I have a button that initiates the Export to ExcelML.

The problem I have is this. When I rebind the RADGrid so that it contains new data, when I click the Export to ExcelML button, the data that is exported is the data that was originally bound when the page first loaded. In essence, the RADGrid is displaying new information but the export is still exporting the old information.

I am using a sqldatasource to bind the RADGrid.

Any ideas?
Daniel
Telerik team
 answered on 23 Jul 2009
1 answer
110 views
How would someone put all items in a DetailTableView into edit mode when the parent is expanded?

I have already viewed the documentation outlining how to put everything into edit mode by default using the PreRender event.  Not only does this put the DetailTableView items in edit mode, but also the MasterTableView (unwanted).  In addition, this causes the paging mechanism to become useless as the first page is always displayed.

In another article, a method of adding the indexes to the EditIndexes collection is covered.  I do not see how you can add the indexes of the DetailTableView items to this collection.

Any help would be greatly appreciated.  The current mechanism which requires users to click an Edit button next to each row and then update is "cumbersome" according to my users.  Providing the ability to edit in batch (updating in batch is covered in one of your articles) would be priceless.

Regards,
Jake
Daniel
Telerik team
 answered on 23 Jul 2009
1 answer
150 views
Is it possible to use the tooltip (or any other method) to enlarge a thumbnail when you hover over the BinaryImage? I amusing a repeater to dislpay the thumbnail.
Rosen
Telerik team
 answered on 23 Jul 2009
2 answers
213 views
Is it possible to put the upload progress bars into a telerik modal window control, for the duration of the upload and the window disappears when the upload has finished?
Kyle Jones
Top achievements
Rank 1
 answered on 23 Jul 2009
2 answers
111 views
Hi,

I am trying to achieve the functionality shown in
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

I am able to make my tab and multipage work as shown in the above example. I also want to have the export option for the grids which load from the usercontrol. Can you please suggest what can I do in this scenario. For Ajaxified grid, we have to cancel the AJAX as suggested in the examples I got from the following link:
http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx

How can I refer to the button control defined in the usercontrol page which starts the export process to cancel the AJAX for that process? AJAX Manager is ajaxifying the whole tab in this load on demand example, so can I refer to the button in usercontrol ?

<

 

telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadTabStrip1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

</

 

telerik:RadAjaxManager>

 



Can you please suggest what can I do in this scenario?


Thanks.
kachy
Top achievements
Rank 1
 answered on 23 Jul 2009
1 answer
60 views
Hi there

I have a usercontrol called ReportContainer.

This is the markup. 

<telerik:RadScriptManager ID="scriptManager" runat="server" /> 
<telerik:RadTabStrip ID="tsReport" runat="server"  
    ontabcreated="tsReport_TabCreated" >    
</telerik:RadTabStrip> 
 

And this is the codebehind.

 protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!Page.IsPostBack) 
            { 
                LoadTabs(); 
            } 
        } 
 
 
        private void LoadTabs() 
        { 
            RadTab radTabGeneral = new RadTab("General");            
            tsReport.Tabs.Add(radTabGeneral); 
            
 
        } 
 
        protected void tsReport_TabCreated(object sender, RadTabStripEventArgs e) 
        { 
             TabGeneral tabGeneral = (TabGeneral)LoadControl(@"~\Report\Controls\Tabs\TabGeneral.ascx"); 
             e.Tab.Controls.Add(tabGeneral); 
        } 

The markup from the UserControl I try to add is this.

khjhfsqfdsqfqsddfqsfsqfsqfsqfsq 
<asp:FormView runat="server" ID="fvTabGeneral" DefaultMode="ReadOnly"
    <ItemTemplate> 
        ItemTemplate 
    </ItemTemplate> 
    <EditItemTemplate> 
        EditItemtemplate 
    </EditItemTemplate> 
</asp:FormView> 

The result looks like this.
It should use the Text property for the Tab title and the content of the Tab should show '
khjhfsqfdsqfqsddfqsfsqfsqfsqfsq ' 

What am I doing wrong?
 
Jef Claes
Top achievements
Rank 1
 answered on 23 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?