Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
239 views

I'm working on a custom usercontrol that nests 2 RadPanelBars - one RadPanelBar inside each of its parent's RadPanelItem - in Sitefinity 3.7.2057.2. The parent RadPanelBar expands/collapses as it should, however the child RadPanelBar doesn't expand or collapse. Can you tell me how to fix it?


This is all that exists in my ascx.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RadPa...
  
<telerik:RadPanelBar ID="RadPanelBarParent" runat="server" Skin="Default">
</telerik:RadPanelBar>


Codebehind Snippet that builds the RadPanelBar:
foreach (Guid id in ListsIds)
            {
                //Create new bar
                RadPanelItem NewItem = new RadPanelItem(manager.GetList(id).Name);
                RadPanelItem InternalParentItem = new RadPanelItem();
                // Create new PanelBar
                RadPanelBar ChildPanelBar = new RadPanelBar();
                  
                //Add to the child
                NewItem.Items.Add(InternalParentItem);
                  
                // Add the panelbar to the new item
                InternalParentItem.Controls.Add(ChildPanelBar);
                  
                //Add the parent
                RadPanelBarParent.Items.Add(NewItem);
  
                     
                foreach(IListItem listItem in manager.GetListItems(id)){
                      
                    //Create new bar
                    RadPanelItem ChildItem = new RadPanelItem(listItem.Headline);
                    RadPanelItem InternalChildItem = new RadPanelItem();
  
                    // Bind the template
                    InternalChildItem.ItemTemplate = new TextBoxTemplate();
                      
                    //Add to the child
                    ChildItem.Items.Add(InternalChildItem);
                      
                    // Set the content
                    InternalChildItem.Value = listItem.Content.ToString();
                      
                    //Add to the parent
                    ChildPanelBar.Items.Add(ChildItem);
                  }
            }
Shivers999
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
103 views
I am trying to do a calcuation in a child grid using javascript but can not seem to figure out how to reference either a field in the nestedviewtemplate or the parent row.

My grids are as follows:
grid1 (with TaxRate bound column)
  nestedviewtemplate
    panel
      multipage
         pageviewPayment
            hiddenfield taxrate
            gridPayment
               PaymentAmount (bound column)
               TaxAmount (bound column)

I have a load client event for TaxAmount to see if it is already populated.  I have a blur event on PaymentAmount to calculate the TaxAmount if not already there.  The TaxAmount should be the PaymentAmount * the TaxRate from the parent grid.  I also have a hidden field in the page view with the tax rate and a label so I know it is picking up the right tax rate.  I can not figure out how to get to any of the TaxRate fields from my blur event.  How do I traverse up through my PaymentAmount field to either the label, the hidden field or the TaxRate from the parent grid?

thanks!
Koren
Top achievements
Rank 1
 answered on 23 Mar 2011
4 answers
166 views
I am sorry if this has been asked before, but I couldn't seem to find anything on it and don't have enough development background to figure it out. I have docks being dynamically created based on some of the Telerik sample code. When the user adds the dock the contents are populated with a user control that is pulled from a database. The user control contains some javascript that needs to run immediately after the dock is loaded, but only seems to intiate after a postback. Anytime that dock is loaded afterwards the contents are displayed fine. Is there something I can do to make that load during the initial creation. Thank you!
Imran
Top achievements
Rank 1
 answered on 23 Mar 2011
2 answers
91 views
I just downloaded and installed the latest upgrade in the last 2 or 3 days and am having a problem with the Editor now that I did not have prior to the new upgrade.  Basically, no matter what skin I choose, the actual text editing portion of the editor displays the page background.

The source code for the .aspx page is immediately below.

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="ZTest_RadEditor.aspx.vb" Inherits="ZTest_RadEditor" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <link href="THDiStyles/Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <br /><br />
        <telerik:RadEditor ID="RadEditor1" runat="server" EnableEmbeddedSkins="true" Skin="Simple" ToolsFile="BasicTools.xml" >
        </telerik:RadEditor>
        <br /><br />
    </div>
    </form>
</body>
</html>

I have uploaded screen captures of:
(a) The displayed page; and,
(b) The Developer Tools window capture.

Can anyone tell me what is happening?  I have not changed anything I am doing and this did not happen before installing the last upgrade.

Thanks in advance for the assistance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 23 Mar 2011
6 answers
218 views
Hi,

According to some requirement in my project , I want to track column name and type of operation performed on that column through header context menu options. For Example :-  In my grid, I have three columns named 'ProductID','ProductName' & 'CategoryID'. When I opened context menu by clicking right click on 'CategoryID' column in  header of grid, and select 'Sort Ascending' or 'Group By'. Then Gird get sorted with 'CategoryID' in ascending order or Grid get grouped by column 'CategoryID'. Then finally I want to track the Column 'CtaegoryID' and operation 'Sort Ascending' or 'Group By' and want to save these two information in some string type global variables on completion of these operations.

Please provide me solution for this. Thanks a lot in advance for this solution.


Regards,
Ankesh Bharti
K
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
368 views
Hi,

I'd like to change the backround of the listbox (the actual inside of the listbox) to a Hex value: I tried:

.RadListBox div.rlbGroup
{
  background-color:#E6E2D7 !important;
}

Based on the forum search results, but it's not workking. Help please.
fred williams
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
95 views
Hi
I want to check with a RecurrenceRule whether a given point in time covered by this rule or not.


How can I do that?

Greetings
markus
Markus
Top achievements
Rank 2
 answered on 23 Mar 2011
1 answer
122 views
I have a RADWindow that I activate from my codebehind like this

this.ucContactEdit1.PopulateControls();
            this.RadWindowManager1.Windows[3].VisibleTitlebar = false;
            this.RadWindowManager1.Windows[3].VisibleStatusbar = false;
            this.RadWindowManager1.Windows[3].Width = Unit.Pixel(430);
            this.RadWindowManager1.Windows[3].Height = Unit.Pixel(310);
            this.RadWindowManager1.Windows[3].OnClientClose = "closeRadWindow";
            this.RadWindowManager1.Windows[3].VisibleOnPageLoad = true;

this is the definition

<telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True" Modal="True" Animation="Fade" ID="RadWindowManager1"
                        EnableShadow="false" ShowOnTopWhenMaximized="false" Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None" OnClientClose="OnClientClose">
                        <Windows>
                             
                             
                            <telerik:RadWindow ID="RadWindowEditor" runat="server"  Width="430" Height="310" VisibleStatusbar="False" Modal="True" KeepInScreenBounds="True" Animation="Fade" >
                            <ContentTemplate>
                            <uc7:ucContactEdit ID="ucContactEdit1" runat="server" />
                            </ContentTemplate>
                            </telerik:RadWindow>
                        </Windows>
    </telerik:RadWindowManager>

When I close the RADWindow the RADCombo boxes on  the parent window all freeze ! they can no longer receive focus (so the dont activate the drop down)

Im using Firefox 3.6.15 and Telerik Q1 2010

can anyone help ?
Rumen
Telerik team
 answered on 23 Mar 2011
20 answers
395 views
HI,
How can I call 2 different functions in the OnClientLoad event based on an If condition? Here is my requirement: In the View mode, I want to disable typing/pasting etc , but in the edit mode, I need to limit them  to typing a particular no. of characters. -say 2000.
I figured out that OnclientLoad will be the place to call the function for that, but I am not sure how to call different functions in runtime.  Or, is there some propety that I can set in the aspx page that I can capture in the RAD user control and use in the if condition ??
Using of the property RADEditor1.enabled=false just gives the text without the RAD control and we cannot use that. Please help.

Thanks a lot.
Anandi
Rumen
Telerik team
 answered on 23 Mar 2011
20 answers
254 views

Hello,

Telerik version : 2010.2.826.35

I use a RadFilter with RadGrid and I see just the first column and the last 29 columns of the grid.

I tried with no RadGrid and 32 RadFilterTextFieldEditor. I had the same result.

Just a little remark, there is a problem with css when I use design time. : CssClass="RadFilter RadFilter_Default "

 

 

 
An other question :
How can add RadFilterTextFieldEditor to a RadFilter with a FilterContainerID ?

Anne

 

 

 

 

 

 

 

Michael
Top achievements
Rank 1
 answered on 23 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?