Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
168 views
Hi,

we want to set the Height or Width of a RadPane by using CSS instead of the Height or Width Attribute of the control.
Is this possible without loosing the functionality of filling the full page ?

Regards,


Alex
Svetlina Anati
Telerik team
 answered on 04 Aug 2009
3 answers
175 views
Hi folks,

I am really stumped on this and really need some help please if possible. I have a default.aspx page that contains my telerik framework amde up of splitters and radpanes. I have one RadPane that on press off a button I pass its ContentUrl property a url of a page I have called 'Image.aspx'.

At some point within image.aspx I want to be able to press an icon within that page and find one of the RadPanes on default.aspx and collapse it. I am tearing my hair with this one. At first I tried this but it doesn't work:

RadPane searchPane = (RadPane)Page.FindControl("rpSearch"); 
searchPane.Collapsed = true

Can anyone please help me?

Cheers,
Ian


Svetlina Anati
Telerik team
 answered on 04 Aug 2009
5 answers
128 views
Hi, I have a problem with my right pane after upgrade to "Latest Version: 2009.2 701 (Jul 1, 2009)"

Here is the page:
http://www.ximnet.com.my/aspnet35/menu_test.aspx

The right-pane is set to 300px but it is not 300px when the page is loaded.
When collapsed, the splitter bar is no longer there to be expanded as well.

Did I miss something during the upgrade?
Below is my aspx code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="menu_test.aspx.vb" Inherits="menu_test" 
    EnableViewState="false" Trace="true" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head> 
    <link href="css/icube_proto.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css"
        html, body, form 
        { 
            overflow: hidden; 
            height: 100%; 
            width: 100%; 
        } 
    </style> 
</head> 
<body> 
    <form id="Form1" runat="server"
    <telerik:radscriptmanager id="rsm" runat="server" /> 
     
    <telerik:radsplitter runat="Server" id="mainSplitter" width="100%" height="100%" 
        orientation="Horizontal" liveresize="true" BorderSize="10"  
        FullScreenMode="True"
         
        <telerik:RadPane ID="topPane" runat="server" height="68px"  
             MaxHeight="68" > 
            [logo]    
              
        s 
         
         
        </telerik:RadPane> 
                        
        <telerik:RadPane runat="server" ID="contentPaneMain" Scrolling="none" skin="Black"
            <telerik:RadSplitter runat="server" ID="RadSplitter2" BorderStyle="None"  
            PanesBorderSize="0" skin="Outlook"
                <telerik:RadPane runat="Server" ID="leftPane" Width="300px" MinWidth="250" MaxWidth="350" 
                    Scrolling="None"
                     
                     
         
                         
                     
                    </telerik:RadPane> 
                <telerik:RadSplitBar skin="Black" runat="server" ID="RadSplitBar1" CollapseMode="Forward" /> 
                <telerik:RadPane runat="Server" ID="contentPane"  
            CssClass="right-pane" > 
     
     
     
                </telerik:RadPane> 
                 <telerik:RadSplitBar runat="server" ID="RadSplitBarRight" CollapseMode="Backward" /> 
                 <telerik:RadPane runat="Server" ID="RightPane"  
            CssClass="right-pane" Width="300px" MinWidth="250" MaxWidth="500"  > 
             
             Right 
             
            </telerik:RadPane> 
                                 
            </telerik:RadSplitter> 
             
        </telerik:RadPane> 
         <telerik:RadPane ID="bottomPane" runat="server" height="20px"  
             MaxHeight="20" > 
            Copyright 2009 
        </telerik:RadPane> 
    </telerik:radsplitter> 
     
     
     
    </form> 
</body> 
</html> 




Svetlina Anati
Telerik team
 answered on 04 Aug 2009
1 answer
108 views
I have a page(page1.aspx) with a grid and a button on it.
When I click the button,I open a radwindow(page2.aspx).
My question is how to refresh page1 when page2 is closed?
There is a close button on page2.

Thanks very much!
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2009
2 answers
142 views
Hi @all!

If I set the TargetControlID of the AutoCompleteExtender to the Textbox which is positioned in a Toolbar I get the Error that the control cannot be found. Does anyone know a solution to this?

Thank you very much!


<

 

telerik:RadToolBar ID="rdtbSearchQualifications" runat="server" Width="100%"

 

 

meta:resourcekey="rdtSelectionResource1"

 

 

OnButtonClick="rdtbSearchQualifications_ButtonClick"

 

 

Style="display: block; float: none">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

<Items>

 

 

<telerik:RadToolBarButton runat="server"  

 

 

CommandName="SearchString" Width="150px">

 

 

<ItemTemplate>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td>

 

 

<asp:TextBox ID="tbSearchString" runat="server"

 

 

meta:resourcekey="tbSearchStringResource1" Width="200px">

 

 

</telerik:TextBox>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server"

 

 

ImageUrl="~/_controltemplates/UserControls/SkillManagement/Resources/Images/Portfolio Add.png"

 

 

meta:resourcekey="RadToolBarButtonResource10" Text="Search qualification" CommandName="searchQualification"

 

 

Value="searchQualification" Width="150">

 

 

 

</telerik:RadToolBarButton>

 

 

</Items>

 

 

</telerik:RadToolBar>

 

<ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtenderQualificationSearch"
    runat="server" 
    MinimumPrefixLength="1"
    CompletionSetCount="15"
    ServicePath="~/UserControls/SkillManagement/QualificationCatalog/Webservices/QualificationCatalog.asmx"
    ServiceMethod="SearchQualifications"
    TargetControlID="tbSearchString"
    CompletionListItemCssClass="DefaultText"
    CompletionListHighlightedItemCssClass="HeaderText"
    OnClientItemSelected="ClientStartQualificationSearch">
</ajaxToolkit:AutoCompleteExtender>

<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="tbSearchString" WatermarkText="Bitte Suchtext eingeben...">
</ajaxToolkit:TextBoxWatermarkExtender>

Ralf Markus
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
51 views
Here is my problem. I have a page that layout like follows:

<combobox>
</combobox>
<RadAjaxPanel>
<usercontrol>
<updatePanel>
<asp:Literal>
</asp:Literal>
</updatepanel>
</usercontrol>
</RadAjaxPanel>

the literal control will show some text when selection in combobox changed. But everytime when I change a selection in combobox, the user control just dissapeared. Can someone help me out here?  Thanks a lot
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2009
1 answer
127 views
I have a grid that I am databinding to an in memory object. When i add a record I enter the new record details and press insert, the backend event seems to be getting fired but all the values of the columns are null.

 <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server"
             AllowAutomaticUpdates="True" AllowPaging="True"
            AutoGenerateColumns="False" OnItemCommand="RadGrid1_ItemInsert" OnInsertCommand="RadGrid1_ItemInsert" OnItemUpdated="RadGrid1_Itemupdate" OnEditCommand="RadGrid1_ItemUpdated"
            OnDeleteCommand="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted" OnDataBound="RadGrid1_DataBound" AutoGenerateEditColumn="True">
                <MasterTableView CommandItemDisplay="Bottom" AllowAutomaticInserts="True" DataKeyNames="ID">                    
                    <Columns>       
                        <telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"
                            UniqueName="ID">
                        </telerik:GridBoundColumn>                       
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                            UniqueName="Name">
                        </telerik:GridBoundColumn>                       
                        <telerik:GridBoundColumn DataField="DisplayName" HeaderText="DisplayName" SortExpression="DisplayName"
                            UniqueName="DisplayName">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName= "DeleteColumn" />
                    </Columns>                     
                </MasterTableView>
            </telerik:RadGrid>            

Code behind:
protected void RadGrid1_ItemInsert(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked
            {
                RadGrid1.DataSource = SessionHelper.XMLLayoutKey.layoutField;
                RadGrid1.DataBind();
            }
            else if (e.CommandName == RadGrid.PerformInsertCommandName)  
            {
                GridEditFormInsertItem editedItem = (GridEditFormInsertItem)e.Item;
                string strCategoryName = editedItem["Name"].Text;  
            }
        }

The column named "Name" is found yet it's value is always empty even though it has a value.

Any ideas?
masterK
Top achievements
Rank 1
 answered on 04 Aug 2009
1 answer
110 views
Hello,
I am trying to create a textbox that has a discrete set of possible values.  I've kind of got it working with a textbox/treeview combo where the treeview is updated via AJAX callback when the text is changed.  However, the AJAX callback is just not going to be happening fast enough in our production environment for this to be practical.

Is there a control that Tekerik has that can do this type of functionality?  Alternatively, is there a way I can show/hide nodes in a radTreeView via javascript so I don't have to postback to the server at all?  I can't just delete the node from the treeview because I may have to show it again later if the user changes what's in the textbox.

thanks!
Sebastian
Telerik team
 answered on 04 Aug 2009
1 answer
165 views
Hi ,

In my application, I am using two user controls. both are in a separate Ajax Panel. When I click on a tree node of a treeview in usercontrol1(Left). It should display a report in a right side user control. But report viewer is not showing any report. Here I am using RadAjaxManager also which will update right panel control if any change happen in left control.
If I remove Ajax Panel from both control, Its working fine...
Report viewer processmode is Server.

I want to implement AJAX over there. but facing a problem.

Please help us to resolve it...................
Sebastian
Telerik team
 answered on 04 Aug 2009
8 answers
376 views
Hi,

Iam trying to build a Hierachy Grid with multiple levels in it.
The DetailsTable levels will not be fixed.

Assume like the first row might have 2 levels
Second row might have 3 levels .

For that we just created the mastertableview declaratively and created the child levels by getting the MAX levels for a given product.. Assume like we have a product table where the maximum level is 5 we created 5 level detail table dynamically.

We use the NeedDatasource and the DetailTableBind.

The only problem we have is wehn we go throught he levels by expanding the last level which doesn't have data is aslo having the PLUS sign to be expanded..Only when we expand that we come to know like it has no data..


Is there a way like we can dynamically read the the number of levels of detail tables and remove it .

Assume we have a query that would give us the number of kevels for each mastertable data product..so when i click on the product to expand i would connect to databse and get the no of levels for that product and based on that i need to remove the extra detial tables which we created.

Assume we created 5 levels initially .I click to expnad a product and at that time i identify the level by connecting to database and assume its 3.
Now I should be able to remove those additonal 2 levels so that the last level doesn't have a plus sign..

Thanks
Bala
Sebastian
Telerik team
 answered on 04 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?