Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
267 views
Hi,

   I have a RadPane that I need to resize depending on the situation. I found this pane method resize which can be set to resize forward or backward which is exactly what I need. However, it seems that it only works for forward everytime and not with backward orientation.

   Here's the code I used for it:

   function setPaneHeight(toExpand)
   { 
            var pane = $find('<% pnlMainPanel.ClientID %>');
            var isResized = document.getElementById('isMainPaneResized').value; //set to 1 or 0 if pane is resized already or not yet respectively
            if (toExpand = "true")
            {
                    if (isResized=="0") // not yet expanded or resized
                    {
                         pane.resize(25,2); //expand forward by 25 pixels
                         document.getElementById('isMainPaneResized').value = "1";
                    }
                    else //already expanded
                    {
                        //just do nothing
                    }
            }
            else // to contract pane
            {
                    if (isResized == "0") //not yet expanded or resized
                    {
                        // just don't do anything
                    }
                    else
                    {
                            pane.resize (25,1); resize backwards by 25 pixels;
                            document.getElementById('isMainPaneResized').value = "0";
                    }
            }
        
   }

   With this code above, I send a value of 1 (to expand) or 0 (to contract) and issue a pane resize correspondingly. And then I set the hidden field 'isMainPaneResized' so that I would know when to set it back to its original size. Basically when it is already expanded and I hit expand request again to this function, I would just not do anything. But if it is not yet expanded, I would then expand it and set the hidden value to expanded (1). And when it is already expanded (hidden value is already set to 1) and I send a "to contract" request, I would then "contract" it otherwise, I would just not do anything.

   Please let me know if you have any further clarifications on this matter.

Thanks,
Arthur
Hansik
Top achievements
Rank 1
 answered on 05 May 2010
1 answer
137 views
I have a MasterPage with a RadTreeView that I would like to use to navigate through a site by updating an ajaxed ContentPlaceHolder.  I have a regular asp:Panel wrapping a ContentPlaceHolder as is suggested but I'm still getting a full postback.  The ajax seems to kick off and Loading Panels show up, but they disappear well before the content is updated in a full postback.

I originally tried using the NavigateURL attribute of the RadTreeNode but it wouldn't initiate any Ajax at all, so instead I am tying into the OnNodeClick event and doing a RadAjaxManager.Redirect() call from there.  Any thoughts on why the Master is still posting back instead of just the content?

<?xml version="1.0" encoding="utf-8" ?> 
<Tree > 
 <Node PostBack="false" Text="Project Data" > 
    <Node Text="SingleProject Data" Expanded="False" PostBack="false" > 
      <Node Text="Home" NavigateURL="#" Value="Home.aspx"></Node> 
      <Node PostBack="false" Text="Project Management" > 
        <Node Text="Configuration" NavigateURL="#" Value="Configuration.aspx"></Node> 
      </Node> 
      <Node PostBack="false" Text="Project Detail"
        <Node Text="Shipping" NavigateURL="#" Value="Shipping.aspx" /> 
        <Node Text="Building" NavigateURL="#" Value="Building.aspx" /> 
       </Node> 
    </Node> 
  </Node> 
</Tree> 
 
 
 protected void NodeClick(object sender, RadTreeNodeEventArgs e) 
        { 
            if (e.Node.NavigateUrl == "#"
                RadAjaxManager1.Redirect(e.Node.Value); 
        } 
<form id="form1" runat="server"
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadTreeView1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pHeaderAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="pContentAjax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

Iana Tsolova
Telerik team
 answered on 05 May 2010
2 answers
71 views
Hi,
Can someone tell me how to change the background color of the RadGrid row when a user expands and the OnHierarchyExpanded Client event is fired?

Thanks.
Justin McMillen
Top achievements
Rank 1
 answered on 05 May 2010
8 answers
269 views
hello,

i have been using the trial of Prometheus in a few environments, most of the time deploying to my own webserver successfully. cool.

however, when i deploy my Web Application project to a commercial hosting company, www.WebHost4Life.com, i run into problems -- my RadControls dont work properly. i can see them, but none of the AJAX functionality seems to work.

for ex:

1) my RadGrids are wrapped in RadAjaxUpdatePanels, and locally that works. but on this hosting company's server the update panel does nothing -- the grid posts back on every operation.

2) RadComboBoxes dont render dropdown menus

3) GridNumericColumns dont validate input

...whats wrong? does it sound like the server doesnt have something installed, maybe the ASP.NET AJAX add-on? or something else maybe??


thanks!
matt
Fiko
Telerik team
 answered on 05 May 2010
4 answers
100 views

Hi,

I am writing a Telerik asp.net web site and having a problem I haven't seen before.

Start VS2008, open first aspx file. I can add Telerik controls. Switch to another aspx document attempt to add a Telerik control and a huge amount of mark up is inserted rather than the control (and does not function). Doesn't matter which aspx file I start with, when I switch to another one, I get the gibberish if I insert a control.

Could be unrelated: I recently "moved" my Documents folder to another drive.

This is a snippet of the load of text inserted rather than a valid control.

                    <soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                        <soap-env:body>
                            <a1:webcontroltoolboxitem id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/System.Web.UI.Design/System.Design%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a">
                                <locked>true</locked>
                                <filter href="#ref-5">
</filter>
                                <bitmap href="#ref-6">
</bitmap>
                                <assemblyname href="#ref-7">
</assemblyname>
                                <displayname id="ref-8">RadTextBox</displayname>
                                <dependentassemblies href="#ref-9">
</dependentassemblies>
                                <description id="ref-10">Telerik RadInput</description>
                                <typename id="ref-11">Telerik.Web.UI.RadTextBox</typename>
                                <company id="ref-12">Telerik</company>
                                <propertynames href="#ref-13">
</propertynames>
 
Kamen Bundev
Telerik team
 answered on 05 May 2010
2 answers
162 views
Ok, here's my problem (and I'm hoping that some of you grid guru's out there can help). I have a grid that performs some semi intensive calculations in the RowSelected event. This is fine for user clicked events & doesn't cause a performance issue. Where I run into trouble is when the user uses a shift click operation to select many rows (which is also valid). In this case I really only want to perform the action on the last row selected (the shift click target).

BUT... the RowSelected event fires once for every single row that becomes selected (which I suppose makes sense). Is there anyway to detect that the shift key was down on this / turn off / detect this type of row selection? It seems to cause a lot of unnecessary spinning of the wheels for me...

Thanks in advance!
-Brian
Brian Azzi
Top achievements
Rank 2
 answered on 05 May 2010
1 answer
153 views
Hi,
    I am using rad grid Export to PDF. No i have the scenario that my pdf should be passowrd protected. Is there any way to acheive this?


With Regards,
Surendar. S
Daniel
Telerik team
 answered on 05 May 2010
3 answers
164 views

I have radPanel bar on a page to which I am adding panel items dynamically with user controls.  I want to Ajaxify the radpanel item. When user clicks on Save button on the user control I just want to post that current PanelItem. I am trying to do this by following code. I get Error   Assertion failed length of elements and json must be the same.

This is the code to Add item dynamically:

            With radPanelNew

                  .Text = account.Name.ToString

                  .Value = account.Id.ToString

                  .Font.Italic = True

                  .Font.Underline = True

                  .Font.Size = 10

                  '.ID = account.Id.ToString

            End With

           

            Select Case account.Type.Text

                  Case Entities.Account.AccountType.Bank.ToString

                        If account.SubType.Text = Entities.Account.SubAccountType.Savings.ToString Then

                              Dim ucSavings As SubscriberSetupPages_UserControls_SavingsAccount = CType(LoadControl("~/SubscriberSetupPages/UserControls/SavingsAccount.ascx"), SubscriberSetupPages_UserControls_SavingsAccount)

                              ucSavings.AccountID = account.Id

                              ucSavings.ID = "SA" & account.Id.ToString

                              acct = DirectCast(ucSavings.FindControl("acct1"), SubscriberSetupPages_UserControls_Account)

                              radPanelNewChild.Controls.Add(ucSavings)

radPanelNew.Items.Add(radPanelNewChild)

            With radParentItem

                  .Items.Add(radPanelNew)

                  .DataBind()

                  .Expanded = True

            End With

This is the code to Ajaxify radpanelitem:

 

      Private Sub pnlBarAccounts_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles pnlBarAccounts.ItemCreated

            ' Following code is to Ajaxify RadPanelItem

            Dim acct As UserControl

            If e.Item.Controls.Count > 0 Then

                  If Not IsNothing(e.Item.Controls(0)) Then

                        If Not IsNothing(e.Item.Controls(0).ID) Then

                              Select Case (e.Item.Controls(0).ID.ToString).Substring(0, 2)

                                    Case "SA"

                                          acct = DirectCast(e.Item.Controls(0), SubscriberSetupPages_UserControls_SavingsAccount)

                              End Select

                        End If

                  End If

            End If

            If Not IsNothing(acct) Then

                  Dim btnSave As ImageButton = DirectCast(acct.FindControl("btnSave"), ImageButton)

                  If Not IsNothing(btnSave) Then

                        RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(btnSave, e.Item)

                  End If

            End If

 

      End Sub

Maria Ilieva
Telerik team
 answered on 05 May 2010
2 answers
255 views
I've specified a DefaultLoadingPanelID in my master page's RadAjaxManager, but there are some instances where I do not want a loading panel to appear.  Is there a way to override that default setting and specify (e.g. within a page's RadAjaxManagerProxy?) that an AjaxUpdatedControl element should not have any associated LoadingPanel?  I tried setting the AjaxUpdatedControl's LoadingPanelID="" but the default loading panel was still displayed.

Thank you,
Tom Huleatt
robertw102
Top achievements
Rank 1
 answered on 05 May 2010
1 answer
85 views
Hello,
         I am using the RadEditor in my application.
         I have seen the demo to covert the RadEditor content to PDF on Telerik Site

           PDF Export
            Now, I tried to used the code which is shown in the example,but it gives me the error of ContentFilters.
            I think the error is due to version,
           I am using the old version of telerik components : ASPNET AJAX Q3 2008.
        
            Should i need to change my version..
  •               If yes, then which version i required to have the above functionality ?.
  •            Also, how should i upgrade the new version in my application ?.
  •           will it affect any of the other pages functionality or application ?

          I  need the above feature in my application as soon as possible,
          Please reply.


Thanks,
Kunal Patel

 

      
Rumen
Telerik team
 answered on 05 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?