Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
127 views

Hi

I have used the custom provider to upload to my amazon s3 bucket. I have set the SubfolderStructure to a path (lets sat abc/def ) but I want to be able to append to this at runtime based on the type of file I am uploading (or a parameter/setting I can set on the control or page), ie keep my images files in my abc/def/images folder and for docs use abc/def/docs so all I need do is store the value "images" or "docs" on the page and pass this to the provider at runtime and append to the SubfolderStructure. I guess a attribute called Path on the RadCloudUpload control would do the job but I couldn't see one?

So my question is,  what's the best way of getting a parameter from the page to the provider?

Thanks

Tim

 

Veselin Tsvetanov
Telerik team
 answered on 12 Sep 2016
1 answer
63 views

Hi,

.NET provides a standard mechanism to resolve any needed assembly via the AssemblyResolve event (https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve(v=vs.110).aspx).
Besides self-implementing this event there are tools (like SmartAssembly) which use this mechanism.
We use this mechanism to make application deployment (including ASP.NET applications) as painless and easy as possible.

With Telerik ASP.NET this does not work :-(

Please provide some way/sample/API to make it possible to embed Telerik ASP.NET assemblies.

Thanks in advance.

Best Regards
Yahia El-Qasem

Marin Bratanov
Telerik team
 answered on 12 Sep 2016
11 answers
551 views

Hello,

 

I have a Radnavigation usercontrol that is registered on a page (<%@ Register Src="../controls/NavPanelAdmin.ascx" TagName="NPA" TagPrefix="ucNPA" %>)

I need to select that radnav items based on the item click (serverside)

When i perform a search for the control in the page that has the UC registered i am able to find the RADNAV but i cannot access it due to the following error

Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.
 
Source Error:
 
Line 274: controlList.Add(c.ID) Line 275: If c.ID = "mymenu123" Then Line 276: Dim smenu As RadNavigation = c Line 277: smenu.ForeColor = Drawing.Color.Aquamarine Line 278: End If
Stack Trace:
 
[InvalidCastException: Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.]

Private Sub ListControlCollections()
    Dim controlList As New ArrayList()
    AddControls(Page.Controls, controlList)
 
    For Each str As String In controlList
        Response.Write(str & Convert.ToString("<br/>"))
    Next
    Response.Write("Total Controls:" + controlList.Count.ToString)
End Sub
 
Private Sub AddControls(page As ControlCollection, controlList As ArrayList)
    For Each c As Control In page
        If c.ID IsNot Nothing Then
            controlList.Add(c.ID)
            If c.ID = "mymenu123" Then
                Dim smenu As RadNavigation = c
                smenu.ForeColor = Drawing.Color.Aquamarine
            End If
        End If
 
        If c.HasControls() Then
            AddControls(c.Controls, controlList)
 
        End If
    Next
End Sub

 

Ivan Danchev
Telerik team
 answered on 12 Sep 2016
7 answers
167 views
Hello,

I have a gridBoundColumn with aggregate=sum and I get the total fine. I have a requirement that if the total is not equal to 100 on update and insert, that I cancel the command and display a message. I tried both onUpdateCommand and onItemDataBound, but I can't get the syntax correct. I'm using C#. I would like to use the onUpdateComand and onInsertCommand to check for the aggregate sum value.

Thanks.

Nizar
Konstantin Dikov
Telerik team
 answered on 12 Sep 2016
5 answers
290 views
How can I select an item clientside?

I want to use it as a callback from a RadWindow, so Id like to click an item and have my button become active...now I can do the second part myself... :)

Any ideas?
Kostadin
Telerik team
 answered on 12 Sep 2016
7 answers
297 views

Hi,

I am trying to use a jquery ajax call to get my data for an htmlchart and am fine with the data itself but when I come to add it to the chart I would like to dynamically create the series on the fly.  With that in mind please could someone supply me with an example of how to create a new (or several new) series on a chart?

Note that I don't want to declare the series in the tags - these need to be declared from the JS...

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 12 Sep 2016
1 answer
44 views

i am using raidGrid

void BindData()
    {
        grid_1.DataSource = Names.GetDeailesByGetall(con);
        grid_1.DataBind();

    }

here how to check the and removing duplicate Names
Konstantin Dikov
Telerik team
 answered on 12 Sep 2016
14 answers
653 views
Change the font pixels to point size.
And after selecting the point size it automatically change into the pixels.
Ianko
Telerik team
 answered on 12 Sep 2016
11 answers
155 views
Freeze column fetature of RadGrid is not working correctly in IE8.
1.    column size just become very large on scrolling
2.    Freeze column does not work properly
Please see my attached document which I captured from On-line resource you provided.
Bijender
Top achievements
Rank 1
 answered on 11 Sep 2016
1 answer
204 views

Hello I am having one issue on RadGrid. I have a simple Employee list which I am binding in Page_Load inside !IsPostBack check.

As soon as, a postback happens (whether it is due to a button click or due to allowsorting (automatic sort)); the grid disappears. This is because NeedDataSource is not executed on postback.

However, if I write RadGrid1.Rebind() then NeedDataSource is executed.

Does this means everytime when a postback happens, I have to call RadGrid1.Rebind() to bind the grid (whether it is due to a button click or due to allowsorting (automatic sort))?

I remember in earlier version we did not needed to call Rebind() method to make NeedDataSource execute.

Please help.

Kostadin
Telerik team
 answered on 10 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?