Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
we are using Rad AsyncUpload control to upload files.we have limit on file size that is to be uploaded.when we try to upload a file whose size is more than the limit,we need to show alert message and stop uploading file progress on client side.We tried this using OnClientProgressUpdating event.Using this event we are able to show alert but could not stop uploading progress.how can we cancel the progress?
Plamen
Telerik team
 answered on 06 Apr 2012
3 answers
191 views
I think a demo about the RadListBox in RadGrid,included the add,delete,update function. front code have a control,and behind code have bound data and command.that's all.But I donot find the demo.who have a demo,please give me,Thanks a lot!!
Vasil
Telerik team
 answered on 06 Apr 2012
1 answer
127 views
Hello,
i have two ComboBoxes in my EditItemTemplate. The comboboxes are to be interdependent. The key to the first combobox should be the selection criterion for the second combobox.
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" Culture="de-DE"
DataSourceID="SqlDataSource1" GridLines="None">
 
 
<MasterTableView autogeneratecolumns="False" datasourceid="SqlDataSource1" CommandItemDisplay="TopAndBottom">
 
 
<Columns>
<telerik:GridBoundColumn DataField="LayoutID" DataType="System.Int64"
FilterControlAltText="Filter LayoutID column" HeaderText="LayoutID"
SortExpression="LayoutID" UniqueName="LayoutID">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="LayoutTypeID" DataType="System.Int32"
FilterControlAltText="Filter LayoutTypeID column" HeaderText="LayoutTypeID"
SortExpression="LayoutTypeID" UniqueName="LayoutTypeID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox1" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceTypes" DataTextField="TypeName"
    DataValueField="TypeID"  >
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="LayoutTypeIDLabel" runat="server"
    Text='<%# Eval("LayoutTypeID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="PlayerID" DataType="System.Int64"
FilterControlAltText="Filter PlayerID column" HeaderText="PlayerID"
SortExpression="PlayerID" UniqueName="PlayerID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox2" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceLayout" DataTextField="LayoutName"
    DataValueField="LayoutID">
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="PlayerIDLabel" runat="server" Text='<%# Eval("PlayerID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
 
SelectCommand="SELECT LayoutID, LayoutTypeID, PlayerID FROM cms_player_layout WHERE (PlayerID = @playerID)"
InsertCommand="INSERT INTO cms_player_layout(PlayerID, LayoutID, LayoutTypeID) VALUES (@playerID, @layoutID, @layoutTypeID)">
<InsertParameters>
<asp:Parameter Name="playerID" />
<asp:Parameter Name="layoutID" />
<asp:Parameter Name="layoutTypeID" />
</InsertParameters>
<SelectParameters>
<asp:Parameter Name="playerID" DefaultValue="1" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceTypes" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT TypeID, TypeName, TypeText, TypeObjectTypes, TypeMenu, TypePriority, ProjectID FROM cms_layouttypes ORDER BY TypeName">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceLayout" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT LayoutID, ParentID, LayoutName, LayoutArt, LayoutBgColor, LayoutBgImage, LayoutSize, LayoutWidth, LayoutHeight, LayoutType FROM cms_layouts WHERE (LayoutType = @layoutType)">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="layoutType" />
    </SelectParameters>
</asp:SqlDataSource>

How can I do that?

Best regards
Reiner


Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
1 answer
361 views
Hi,
Trying to find a way to hide the
 <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Notes"></telerik:GridEditCommandColumn>
if a person doe snot have admin privledges, I see lots of examples for other buttons and controls but so far not this way.

Protected Sub myRadGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            Dim EditFormcmdItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
  
            If checkAdmin() = False Then
                EditFormcmdItem.FindControl("EditCommandColumn").Visible = False
            End If
        End If
    End Sub
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
12 answers
356 views
Hi,

I am referring the below link,
http://www.telerik.com/help/aspnet-ajax/grid-binding-description-bind-method.html

two way binding at RadGrid, and I am currently migrating the GridView to RaidGrid, which GridView Application was using bind method to DataTable and save it DataBase, You may refer the below link,

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-binding-to-datatable.aspx

and My question is,

1. ItemUpdated event was not fired, does it support? if not, any alternative solutions?
2. which event can be traced when data has been updated to the DataSource by using the above Two-way Declarative Binding approach?
3. Do we need to explicit update the value from RadGrid to DataSource (e.g DataTable)? for GridView, there is a function call gridView.UpdateRow to upate to DataSource.
4. As I have plenty of logic monitoring the dataTable dataChaning event for data validation, conditional data retrieving,calculation and so, it is painful if bind to DataTable is not working for GadGrid, Any Suggest for me?  

Thanks.
w
Top achievements
Rank 1
 answered on 06 Apr 2012
0 answers
61 views
Hello ,

I am Using the Tabstrip in which I have parent Datalist which also contain the child Datalist,My problem  is it is not working properly after postback can any body give me the code for this sample

Amit
Top achievements
Rank 1
 asked on 06 Apr 2012
1 answer
98 views
I am Using two ascx files in one aspx file
a.ascx
    raddock1
    raddock2
b.ascx
    raddock3
    raddock4

main aspx
radzone 1
radzone2

i want to display raddock1 in radzone2 of aspx
but when i use findcontrol it will return me null

 

Zaheer
Top achievements
Rank 1
 answered on 06 Apr 2012
1 answer
98 views
I have a Multiview calendar which is set by default to show 1 year, in 4 columns and 3 rows.

I have 2 other DatePickers on the page that let the user pick a start and end date.

Based on the range selection in the 2 datepickers, I would like to hide unused months in the Multiview calendar.  For instance, I show 12 months by default in Multiview, but if you select a range of April to August, then I would like to show the first row of 4, but then only 1 month calendar in row 2 - effectively hiding the last 7 months.  All of this to be done dynamically on the server-side.


I can't seem to find a way to do this.  Any one?

Dan
Top achievements
Rank 1
 answered on 06 Apr 2012
4 answers
122 views
Please help. Thanks!
When I use <AdvancedEditTemplate> as below code, the  Recurrencerule in e.ModifiedAppointment.Recurrencerule always is old value in update block:

RadScheduler1_AppointmentUpdate(

 

object sender, AppointmentUpdateEventArgs e)
{

string Recurrencerule=e.ModifiedAppointment.RecurrenceRule

}


<AdvancedEditTemplate>

...... 

<telerik:RadSchedulerRecurrenceEditor ID="RecurrenceEditor1" runat="server">

 

</telerik:RadSchedulerRecurrenceEditor>
....

 

</AdvancedEditTemplate>

What should I modify?

Best regards!

Joyce
Top achievements
Rank 1
 answered on 06 Apr 2012
3 answers
84 views
Hi,

Today we had an interesting problem that I'm hoping you'll be able to help me fix.

One of our clients, using the Rad Editor (ASP.NET), clicked on the Document Manager and the listing displayed no files.

However the folder that was being accessed had 77 files.

Upon trying to find out why they weren't being displayed, I discovered that one of the file names had a non-printable character in it.

So, once I renamed the file the listing of files worked fine.

The question is:
How do I fix the filenames of files being uploaded so that files are not stored on our servers that may contain non-printable characters?
And
Even if they do contain non-printable characters, how do I get the Document Manager to display the folder of files anyway (with or without the offending file)?


Thanks,
Cameron
Cameron
Top achievements
Rank 1
 answered on 05 Apr 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?