Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 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
96 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
130 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
205 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
281 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
159 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
164 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
83 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
5 answers
340 views
Hi,
I'm new to Telerik controls, so please excuse me if this is a silly question. I am trying to set up the RadTreeView, but I cannot find a Node.Depth property.

I am populating the treeview on demand but the data comes from different tables in the DB depending on the node depth that is selected using switch. This works fine with the standard Microsoft issue TreeView but not with the Telerik one.

If this feature is not avaiable, is there an alternative way to capture the Node depth.

Thanks in advance

Jon
Atanas Korchev
Telerik team
 answered on 23 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?