Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
101 views
First bug:
If your request exceeds maxRequestLength, RadProgressArea does not show up at all..

Making this example code useless:
http://www.telerik.com/help/aspnet-ajax/upload-how-to-client-file-size.html

And since all requests are completed either way i'm not inclined to increase my httpRuntime maxRequestLength any further.

And i'm not sure i would want to let users "cancel" their uploads when they are not really being cancelled, but lingering and consuming bandwidth.

Second bug:
If you should decide to display the cancel button, you'll notice that any subsequent attempt at uploading leaves the ProgressArea at a fixed position of where it was last cancelled.
Peter Filipov
Telerik team
 answered on 02 Dec 2011
1 answer
162 views
Hi,

I am new to use RadDock and doing a page similar to the one that looks like iGoogle where we can add gadgets to the page dynamically and realign, edit, close added docks with in one main dashboard (I am calling with that name) page. Each gadget chosen from the list will get loaded into the RadDockZone which there after can be realigned, refreshed by changing drop down and clicking on a button. My requirement is when the ascx control loaded into the dock is submitted (postback) the remaining widgets should not be refreshed or reloaded.


The current page architecture is like, 
1. I have a master page within which some banner (header and few links like settings, signout) and footer (some information and few navigation links) will be present.
2. I have an .aspx page (inside master page) where sliding page with few buttons (called as Gadgets that are dynamically loaded like flickr, twitter, horoscope etc.,), RadDockLayout with 3 RadDockZone(s) inside layout is present.
3. I have a .ascx user controls for each gadget that will interact with the web service (hosted some where) and has its own layout that gets generated with the web service data.


Issue:
When I add the gadget to the page (Default.aspx present in Master.Master), the appropriate user control is getting loaded within the assigned RadDockZone by executing the Page_Load (with IsPostBack as true for the first time). 
After getting the RadDockZone loaded with gadget selected, the first time drag drop of control (widgets/.ascx page) will not work as the moved gadget will be automatically placed into the source RadDockZone (from where we moved the dock).
Another issue is, if you change the selected index to something else within the raddock (SelectedIndexChanged for dropdown with AutoPostBack=true), data is loaded again and selected index will mark to 0. This is because for user control Page_Load is happening with IsPostBack as true.


Please help!!!


Thanks,
J
Slav
Telerik team
 answered on 02 Dec 2011
1 answer
201 views
I'm trying to find the proper way to deal with Validation, either using RequiredFieldValidator, RegularExpressionValidator, or a CustomValidator. When one of these validators hooked up to a Telerik RadInput control fails, I'd like the control to switch to it's Invalid State, showing the warning, etc. I can't find anyway to do this. 

[EDIT]

I've managed to figure out how to use RadInputManager to validate some of my textboxes... except that it doesn't seem to be invoked during Page.Validate(group), even if I set a group on the TextSetting. It seems like the TextSetting isn't actually added to the Control hierarchy, and so is never located. It also only has a single ErrorMessage property, which makes it impossible to actually specify different message for different inputs, even if their behaviors are the same: First name is required, last name is required, foo is required, blah is required, etc.

So other than setting the Invalid state of the controls... I can't figure out how this makes things EASIER?
Jerome
Top achievements
Rank 1
 answered on 02 Dec 2011
3 answers
78 views
When using a WebService-populated menu, as items get added, or branches opened (I can't work out the exact trigger). I get new dynamic script entries being put into the page - the script is simply :

' ' ;

In case that doesnt come out - its two single quotes, and a semi colon.

Its not that much of a worry - but when the menu is cached fully - there could be hundreds of these entries...
Peter
Telerik team
 answered on 02 Dec 2011
2 answers
175 views
How do I refresh multiple radgrids on a radtabstrip from a radwindow close event?
SoniTek
Top achievements
Rank 1
 answered on 02 Dec 2011
4 answers
1.3K+ views

I'm setting the background colors of the nodes in my treeview by binding to a CSS field in my database.

In my actual application, the nodes on the tree represent tasks and the colors indicate the priority. The same webform includes some controls to update the task. At the end of this process, I need to update the selected node color. Can someone tell me the code that I need to do this?

Here's a simplified code sample. When I try setting the node colors in code, only the text portion of the node is set. In the screen shot shown that's attached to this thread, notice how only the Node 1-1 section is colored in red. The rest of the node remains green.

What code do I need to change the color of the entire node?

Many thanks,
Tim

<head runat="server">
    <title></title>
    <style type="text/css">
        .green
        {
            background-color: green;
        }
        .red
        {
            background-color: red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
                <telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="UniqueId" DataFieldParentID="parentid"
                    DataTextField="NodeText" DataValueField="UniqueId">
                    <ContextMenus>
                    </ContextMenus>
                    <DataBindings>
                        <telerik:RadTreeNodeBinding ContentCssClassField="CssClass" />
                    </DataBindings>
                </telerik:RadTreeView>
            </ContentTemplate>
        </asp:UpdatePanel>
 
        <asp:LinkButton Text="Change Color" runat="server"  ID="changeLink"/>
 
    </div>
 
    </form>
</body>
</html>


Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
    If Not Page.IsPostBack Then
 
        Dim values = {New With {.UniqueId = "0", .parentid = Nothing, .NodeText = "Node 1", .CssClass = "red"},
                      New With {.UniqueId = "1", .parentid = Nothing, .NodeText = "Node 1-1", .CssClass = "green"}
                     }
        RadTreeView1.DataSource = values
        RadTreeView1.DataBind()
    End If
 
End Sub
 
Protected Sub changeLink_Click(sender As Object, e As System.EventArgs) Handles changeLink.Click
 
    'None of these color the entire row. what's the correct syntax to use?
    RadTreeView1.FindNodeByValue("1").BackColor = Color.Red
    RadTreeView1.FindNodeByValue("1").CssClass = "red"
 
End Sub
Tim
Top achievements
Rank 1
 answered on 02 Dec 2011
3 answers
442 views
Since release of Q3 2011 (2011.3.1115) javascript error occurred after postback in aspx page with TagCloud component (no matter ajax request or not).

Error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_MessageBoard_Cloud_Cloud_0_8' can't be added to the application.

Where control id is actually id of RadTagCloudItem() added during Page_Load and not modified on postback.

In previous releases (Q2 2011) everything was Ok.
Pero
Telerik team
 answered on 02 Dec 2011
1 answer
116 views
Depending on a value in the expanded parent row, I want to display/hide the 'Add New' button in the DetailTable.  For instance, if 'Test A' in the MasterTableView is inactive, I don't want the 'Add New' button to appear if 'Test A' is expanded to show the DetailTable.  Any help would be appreciated.
Antonio Stoilkov
Telerik team
 answered on 02 Dec 2011
1 answer
103 views
I realized I probably did this the hard way but this is what I've done.  I placed this comment here because I think it's an overall telerik / vs issue

I've had an existing aspx website i've been working on and today i've installed the Telerik tools.  I created a new webpage using my template and CSS and I wanted to test out the ReportBookControl.   I went ahead and dropped the ReportBookControl in the section I wanted inside of the html table I wanted it placed.  I then went ahead and added a Telerik Report and then used the wizard to create the report.

I used the Wizard successfully and then went ahead and added that report to my report book.  When i debug the website and view the page I can't see the telerik control inside of the page source.

        <telerik:reportbookcontrol ID="ReportBookControl1" runat="server">
            <Reports>
                <telerik:reportinfo Report="Overview, App_Code.lxmpmeb9, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />
            </Reports>
        </telerik:reportbookcontrol>

When I go to preview the designed report in Preview mode it tells me the source of the report definition has not been specified.  I'm wondering why the report wizard would leave this out?

Thanks!
Elian
Telerik team
 answered on 02 Dec 2011
1 answer
105 views
Hello,
I initiate a postback with __doPostback function and pass some data which should help to set a VERY custom filter on dataset. But when page is reloaded, I can see that grid client object was not refreshed and all data and AJAX cell controls was the same as before. Grid is in ASP.NET panel which is under RadAjaxManager control. Is there a way to fully reload grid client object on postback?
Thank you.

UPD. Almost forgot - grid is created programmatically in Page_Init method.
Maria Ilieva
Telerik team
 answered on 02 Dec 2011
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?