Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
What are the events that are called when the tab is clicked? I am trying to load a grid that is in Tab2. But it does not populate because Tab2 events are being called.
Bozhidar
Telerik team
 answered on 02 Dec 2011
1 answer
121 views
Hi,

I am using treeview and in my tree there are few nodes that are visible and few that are not visible depending upon their type. I am trying to find the invisible nodes from client side code using findNodeByText/findNodeByValue functions but it always returns null. is it possible to get hidden nodes? if not then what is the workaround?
Bozhidar
Telerik team
 answered on 02 Dec 2011
3 answers
220 views
Hello,

it seems that the ComboBox isn't working with IE9 if HTTPS is used. With FireFox or Chrome everything works fine. 
Create an selfsigend certificate in IIS (https://localhost/TelerikAjaxTest/) and enter a value in the combobox. nothing is happen.
Is there any solution for this issue?

aspx:
<body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <div>
               <telerik:RadComboBox ID="testCombo" runat="server" ShowToggleImage="false" EnableLoadOnDemand="true" Width="200px" AllowCustomText="false" AppendDataBoundItems="true">
                <Items>
                    <telerik:RadComboBoxItem Text="Eingabe zur Suche..." Selected="true" Font-Italic="true" ForeColor="Silver" />
                </Items>
                <WebServiceSettings Path="~/Services/AgentService.svc" Method="GetAgents" />
            </telerik:RadComboBox>
            </div>
        </form>
    </body>

AgentService:
[ServiceContract( Namespace = "http://TelerikAjaxTest/AgentService" )]
    [AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed )]
    public class AgentService
    {      
        [OperationContract]
        public RadComboBoxData GetAgents( RadComboBoxContext context )
        {
            List<RadComboBoxItemData> list = new List<RadComboBoxItemData>()
            {
                new RadComboBoxItemData { Text = "Value1", Value = "Value1" },
                new RadComboBoxItemData { Text = "Value2", Value = "Value2" },
                new RadComboBoxItemData { Text = "Value3", Value = "Value3" },
                new RadComboBoxItemData { Text = "Value4", Value = "Value4" },
                new RadComboBoxItemData { Text = "Value5", Value = "Value5" }
            };
             
            RadComboBoxData result = new RadComboBoxData();
            result.Items = list.ToArray();
            result.EndOfItems = true;
            return result;
        }  
    }

web.config
<system.serviceModel>
    <behaviors>
        <endpointBehaviors>
            <behavior name="aspNetAjaxBehavior">
                <enableWebScript/>
            </behavior>
        </endpointBehaviors>
    </behaviors>
    <services>
        <service name="TelerikAjaxTest.Services.AgentService">
            <endpoint address="" behaviorConfiguration="aspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="TelerikAjaxTest.Services.AgentService"/>
        </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
    <bindings>
        <webHttpBinding>
            <binding name="webBinding">
                <security mode="Transport">
                </security>
            </binding>
        </webHttpBinding>
    </bindings>
</system.serviceModel>

Regards,
Timo
Simon
Telerik team
 answered on 02 Dec 2011
3 answers
91 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
137 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
189 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
71 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
156 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
418 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?