Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
181 views
Hello,
   I have 2 radgrids, each one inside a .ascx control.  Each control is inside a RadPageView on the same .aspx page.  When I delete a record from one radgrid, I need the other one to refresh with the correct information.  (basically parent child relation between the two grids)  How can I update the datasource on the child radgrid?

Thanks

Zed
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
98 views
I have one RadMenu and RadWindows that can be opened by a user.  The RadWindows are all the same so this would be like and MDI example.  The RadMenu controls navigation in each of the windows.  The use of the windows is controled by a TabStrip that hide or shows the tabs based off the users selection much like the following example.

http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx

My problem is that when I click on one of the RadMenuItems it always controls the last RadWindow that was opened.  I want the RadMenu to control the RadWindow that is showing and leave the other RadWindows alone.  Do you have any suggestions?
Chris
Top achievements
Rank 1
 answered on 20 Aug 2009
2 answers
133 views
I have  a page that uses RadWindows much like the following demo.

http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx

The RadWindows are always maximized and have no behaviors given.  I have added a RadMenu to the top of the page which should control the RadWindow's contents.  I set the z-index of the RadWindowManager to 3000 and the z-index of the RadMenu to 7000.  The RadMenu still shows behind the RadWindow.  Is there something I am missing or are there any other suggestions.
Chris
Top achievements
Rank 1
 answered on 20 Aug 2009
3 answers
243 views
OK, I am sure this is easier than I am making this out to be, but how do you bind the elements in the Item Template during the  ItemDataBound event? Here is my aspx code:
<telerik:RadPanelBar ID="RadPanelBar1" Width="100%" runat="server"   
    onitemdatabound="RadPanelBar1_ItemDataBound">                  
        <Items> 
            <telerik:RadPanelItem Text="Help" ImageUrl="/Images/question.png" Expanded="True">  
                <ItemTemplate> 
                    <uc1:ctrlQuestion ID="ctrlQuestion" runat="server" />
 
                </ItemTemplate> 
            </telerik:RadPanelItem> 
        </Items> 
</telerik:RadPanelBar> 

I want to access my control, but am not sure how to get at it:

...
RadPanelBar1.DataSource = objCollection;

RadPanelBar1.DataBind();

...

protected void RadPanelBar1_ItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)  
{  
     //?????
     ctrlQuestion.CallSomeMethod();           

I tried e.Item.FindControl("ctrlQuestion"), but it always returns null.

Any help would be greatly appreciated!
Charles Meyer
Top achievements
Rank 1
 answered on 20 Aug 2009
2 answers
133 views
Hi,
I'm trying to use this (hoverIntent) jquery plug in in my code and doesn't seem to work. How can I add a jquery plugin?

I have included the followings to my page.
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" >
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Path="~/js/jquery.hoverIntent.minified.js" />
       
    </Scripts>
</telerik:RadScriptManager>

thanks
M Givi
Top achievements
Rank 1
 answered on 20 Aug 2009
2 answers
157 views
I have a scenario where I want to select a "State" from listbox A and have it dynamically update listbox B with related "Counties".  My datasource would be SQL Server tables.  What would be the most efficient way to program this using Ajax?
Stephen
Top achievements
Rank 1
 answered on 20 Aug 2009
5 answers
735 views
Is there something like a full-screen mode for the grid?

the editor has a fullscreen-mode!

Or is there a way to achieve this?
Dimo
Telerik team
 answered on 20 Aug 2009
3 answers
164 views
I have a RadGrid and one of my columns is Resource, which is a GridTemplateColumn which holds a RadComboBox utilizing LoadOnDemand.  I can get it to partially work.  If I insert a new record, the LoadOnDemand works fine and it saves the value of the ComboBox in my DB.  However, if I then Edit that line, I always get 'Selection out of Range.'  I'm guessing that this is because the ComboBox has no values in it yet.  So, in my ItemDataBound event, I add a new ComboBoxItem containing the Text and Values of the selected Resource.  My problem is that I get the error before it hits this event.  What am I missing?

Here's my ComboBox code:

<

 

telerik:GridTemplateColumn UniqueName="Resource" HeaderText="Resource" DataField="Name">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblResourceName" runat="server" Text='<%# Eval("ResourceName")%>' ></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="Resource" AllowCustomText="true" runat="server" Text='<%# Bind("Resource") %>'

 

 

Height="100px" EmptyMessage="Search..." SelectedValue='<%# Bind("Resource") %>'

 

 

EnableVirtualScrolling="true" DataTextField="Name" DataValueField="Resource"

 

 

EnableLoadOnDemand="true" OnItemsRequested="Resource_ItemsRequested" AppendDataBoundItems="true"

 

 

>

 

 

</telerik:RadComboBox>

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

And here's my ItemDataBound event:

 

If

 

(TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then

 

 

'Populates the Resource DDL with the selected Resource

 

 

 

 

 

Dim ResourceDDL As RadComboBox = CType(GridItem("Resource").FindControl("Resource"), RadComboBox)

 

 

Dim objBNF As New PBBRL.EntityClass.xBudgetNodeFees

 

objBNF.FetchUsingPK(BudgetNodeFeesID)

 

Dim ResourceID As String = objBNF.Resource

 

 

Dim ResourceItem As New RadComboBoxItem

 

ResourceItem.Text = ResourceID

ResourceItem.Value = ResourceID

ResourceItem.Selected =

True

 

 

 

 

ResourceDDL.Items.Add(ResourceItem)
End If

TPerry
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
87 views
I have noticed a bug or atleast an extended need on the cklient side script
          
 function toggleSelectedNode()  
        {  
           var treeView = $find("<%=RadTreeView1.ClientID%>")  
           var selectedNode = treeView.get_selectedNode();  
           selectedNode.toggle();  
             
        } 

If you try the page http://localhost:8301/radcontrols_aspnetajax/treeview/examples/programming/clientsideapi/defaultcs.aspx
and click on the Search Folders icon to open that item. select the large mail and then click on the icon to close the Searchfolder item.
Then click on the button "Toggle selected node" the Search folder don't get toggled...

It would be great with an extended version like toogleSelectedodeWithParents or something.
Anybody that knows a script that does the trick? ;)
Schlurk
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
73 views
Hi,

I am using NextPrevNumericAndAdvanceed pager mode and when pagesize is set equal to total number of records then Paging gets disabled. How can i keep this visible always?

Regards
Devanand Jha
Daniel
Telerik team
 answered on 20 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?