Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
284 views
I need a little help here. I created a set of cascading RadComboBoxes that worked great.

Then I decided to change the way my page worked and wrapped everything in a asp:FormView control so I could easily bind the entire form.

The problem is that now the cascading RadComboBoxes don't work using the example in the demo. Originally, there was a call to a function that loaded the first dropdown in the Page_Load event. I can't do this anymore though because the FormView hasn't been created yet and the control to load doesn't exist.

I've tried moving the call to the function that loads the first drop-down to the FormView1_ItemCreated event which loads the first dropdown, but only after the RadComboBox is created and therefore it throws an error with the SelectedValue='<%# Bind("councils") %>' property since the datasource hasn't been created yet.

I can't seem to figure out the proper sequence of events to get this working. Do you guys have an example of cascading RadComboBoxes in a FormView or can you suggest a way to do it? Thanks!
Simon
Telerik team
 answered on 23 Jul 2008
1 answer
98 views
I am using RadGrid in my application , I have GridButtonColumn as one of my columns, On basis of my business logic i set the text to either Edit or View after I bind data to the grid, This works perfectly when the grid is rendered for the first time, but when i traverse to some other page although my business logic is being called and in debug i can see the text of the column being set according to my logic, but when the grid is rendered the text in the column becomes what i have defined declaratively in aspx/ascx file.

Am i missing something or this is an issue in the system?
irfan rizvi
Top achievements
Rank 1
 answered on 23 Jul 2008
3 answers
92 views
Hi,

    I have successfully installed RadTabStrip and I have also sucessfully aded it in my page. I created four tabs and four views. Please see screenshot1. Everything ooks well until I deploy the package and access the page. I am getting a "File Not Found" error in the page. Please see screenshot2.

    I tried installing AJAX but I still get the error. I am not sure where the problem really is and I can't get much from my research about this. Your help is greatly needed.

Thanks,
Francis
Paul
Telerik team
 answered on 23 Jul 2008
2 answers
124 views
Hi Telerik Team,

I am stuck with one issue. I have a RadComboBox populated with some items stored on the DB. At a particular time on the screen when the user does a search. I need to set my RadComboBox back to their initial state (i.e.) Showing the first Item which is empty. This is being dont via code. C#

RadComboBox.SelectedIndex = 0;

But to my surprise the ComboBox still shows the last item selected on the screen even thought that the values it currently holds says that it is back to its initial state (When the page loads first time)
RadComboBox.SelectedValue  = "-1"
RadComboBox.SelectedItem.Text = "";

So technically there is not issue as it behaves as per the specs. But the end user will see a selected item on the RadComboBox which is not what needs to be seen.

Can you please help me on this one?
Ashvin
Top achievements
Rank 1
 answered on 23 Jul 2008
3 answers
199 views
Basically I just want to set a tab on a RadTabStrip to be selected but I seem to be falling at the first fence.

According to the documentation 
http://www.telerik.com/help/aspnet-ajax/tab_clientsideradtab.html
you can use this syntax...

var tabStrip = $find("<%=RadTabStrip1.ClientID%>");

Unfortunately no matter where I put this bit of code it always returns null.

I've been trying to do this for about 3 hours now and it's driving me nuts.

I've also tried 

var tabStrip = <%=RadTabStrip1.ClientID%>;

Which only returns a value if placed after the definition of the RadTabStrip, as you might expect.  However it doesn't have any of the published client-side methods associated with it.

Baffled.

------------------------------

Created a very simple page with virtual nothing in it - still doesn't work....

<body>
    <form id="form1" runat="server">
      
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">
            <Tabs>
                <telerik:RadTab runat="server" Text="Tab1">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Tab2">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
    <div>
   
    </div>
    </form>
   
    <script type="text/javascript" >
               
        var tabStrip = $find("<%= RadTabStrip1.ClientID %>");     
        if(tabStrip == null)
            alert("bad");
       
        </script>
</body>

Paul
Telerik team
 answered on 23 Jul 2008
11 answers
274 views
Hi I am new to using these Rad Controls and I wanted to create a simple context menu in a webpart which I have. This is the code which I have written for the menu but when I try to right click on the button the menu does not come up. Can anybody please help me?
Thank You in advance.

Alex

 

 //testButton is the button that needs to be right clicked for the menu to pop up

testButton = new LinkButton();

testButton.ID = "test_menu";

testButton.Text = "Test";

            

menu = new RadContextMenu();

menu.ID = "RadContextMenu1";

menu.Skin = "Vista";

 

RadMenuItem item1 = new RadMenuItem();

item1.Text = "Hello";

item1.Value = "1";

menu.Items.Add(item1);

 

ContextMenuControlTarget aaa=new ContextMenuControlTarget();

aaa.ControlID = "test_menu";

 menu.Targets.Add(aaa);

Controls.Add(menu);

Controls.Add(testButton);


I also have a script manager and RadAjaxPanel in the method OnInit()



I then render the testButton in the RenderContents() method.
I can see the button but it does not do anything.

Atanas Korchev
Telerik team
 answered on 23 Jul 2008
1 answer
117 views
When I deploy the Telerik Rad Editor for MOSS to a Publishing Site, I am getting an error that System.Web.Masterpage is not registered as a safe control when I attempt to browse the site.  Sure enough when I go to the web.config the following line is missing:

<SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TypeName="*" Safe="True" AllowRemoteDesigner="True" />

This happens immediately after I deploy the RadEditorMoss.wsp.

Is anyone else experiencing the same issue? 

Thanks,
Dave

George
Telerik team
 answered on 23 Jul 2008
1 answer
154 views
When the page first loads (in day view) the Scheduler sets the DayStartTime, DayEndTime, WorkDayStartTime and WorkDayEndTime to whaterver the values are set to declaritively even though I set them programmatically (in Scheduler_PreRender).

After the page initially loads and I do something to refresh the scheduler like changing the date, then the correct start and end times are displayed.

Is this a bug and if so is there a workaround?

Al
T. Tsonev
Telerik team
 answered on 23 Jul 2008
4 answers
163 views
Hello!

Is this possible to databind from codebehind various nodes with different datasources which have id_parent collumn and keep this structure in RadTreeView?

Thanks
Atanas Korchev
Telerik team
 answered on 23 Jul 2008
1 answer
81 views
I am trying to set the checked state to true on the children of a tree node when the parent is checked. Following is the treeview and javascript function i tried. Can someone review to make sure the syntax is correct and provide input on whether it whould work?

 <telerik:RadTreeView ID="treeProducts" runat="server" CheckBoxes="true" 
 DataFieldID="ProductID" DataFieldParentID="ParentProductID" DataSourceID="odsProducts" 
 DataTextField="ProductName" DataValueField="ProductID" 
 OnClientNodeChecking="ProductChecking">  
</telerik:RadTreeView> 

function ProductChecking(sender, eventArgs)  
{  
     var node = eventArgs.get_node()  
     if(node.get_nodes().get_count() > 0)    
     {    
          for (var i=0; i<node.get_nodes().get_count();i++)    
          {          
               var childnode = node.get_nodes().getNode(i);          
               childnode.set_checked(true);    
          }  
     }  
} 

Veselin Vasilev
Telerik team
 answered on 23 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?