Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
267 views
Hi Team,
I am trying to load user control from "telerik:AjaxUpdatedControl" but each and every time all the user control is loaded ,
I want to load one user control at a time for that i written code like this:

<telerik:RadAjaxManager ID="ajaxMgrJobDetails" runat="server" OnAjaxRequest="ajaxMgrJobDetails_AjaxRequest">
        <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="pnlDetailsCandidate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlDetailsCandidate" LoadingPanelID="radAjaxLoadingPanel1" />
                </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="PanelJobDocuments">
                 <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelJobDocuments" LoadingPanelID="radAjaxLoadingPanel1" />
                </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="PanelJobNotes">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelJobNotes" LoadingPanelID="radAjaxLoadingPanel1" />
                </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="PanelJobDetails">
                 <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelJobDetails" LoadingPanelID="radAjaxLoadingPanel1" />
                </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="PanelJobTasks">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelJobTasks" LoadingPanelID="radAjaxLoadingPanel1"   />
                </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="PaneJobHistory">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PaneJobHistory"  />
                </UpdatedControls>
                 </telerik:AjaxSetting>
              
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadWindowManager runat="Server" ID="RadWindowManager1" Modal="true" EnableViewState="false"
        Width="870px" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" Height="550px">
        <Windows>
            <telerik:RadWindow runat="server" ID="Edit" Width="870px" Title="Close Job" Height="550px"
                ReloadOnShow="true" ShowContentDuringLoad="false" Modal="True" Behaviors="Close,Move,Resize"
                VisibleStatusbar="false">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
   <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
 
and after that i am trying to load particular user control like below:
 
 <telerik:RadPane ID="RadPane2" Height="100%" BorderWidth="1px" BorderStyle="Solid"
                        runat="server" Scrolling="None">
                        <asp:Panel ID="pnlDetailsInnerContent" SkinID="DetailsInnerContent" runat="server"
                            ScrollBars="None">

                             
<telerik:RadPane ID="RadPane2" Height="100%" BorderWidth="1px" BorderStyle="Solid"
                       runat="server" Scrolling="None">
                       <asp:Panel ID="pnlDetailsInnerContent" SkinID="DetailsInnerContent" runat="server"
                           ScrollBars="None">
                             
                             
                            <asp:Panel ID="pnlDetailsCandidate" SkinID="DetailsInnerContent" runat="server">
                               <telerik:RadMultiPage ID="radPageDetails" runat="server" Width="100%" Height="100%">
                                   <telerik:RadPageView ID="radPageCandidates" runat="server" Height="100%" Selected="true">
                                       <uc6:JobCandidates ID="JobCandidates1" runat="server" />
                                    </telerik:RadPageView>
                              </telerik:RadMultiPage>
                             </asp:Panel>
                                
                              <asp:Panel ID="PanelJobDetails" SkinID="DetailsInnerContent" runat="server">
                                  <telerik:RadMultiPage ID="RadMultiPage2" runat="server" Width="100%" Height="100%">
                                       <telerik:RadPageView ID="radPageJobDetails" runat="server" Height="100%">
                                           <uc1:JobDetail ID="JobDetail1" runat="server" />
                                       </telerik:RadPageView>
                                   </telerik:RadMultiPage>
                               </asp:Panel>
                                 
                               <asp:Panel ID="PanelJobNotes" SkinID="DetailsInnerContent" runat="server">
                                   <telerik:RadMultiPage ID="RadMultiPage3" runat="server" Width="100%" Height="100%">
                                       <telerik:RadPageView ID="radPageNotes" runat="server" Height="100%">
                                           <uc2:JobNotes ID="JobNotes1" runat="server" />
                                       </telerik:RadPageView>
                                      </telerik:RadMultiPage>
                                </asp:Panel>
                               <asp:Panel ID="PanelJobDocuments" SkinID="DetailsInnerContent" runat="server">
                                   <telerik:RadMultiPage ID="RadMultiPage4" runat="server" Width="100%" Height="100%">
                                       <telerik:RadPageView ID="radPageDocs" runat="server" Height="100%" Width="100%">
                                           <uc3:JobDocuments ID="JobDocuments1" runat="server" />
                                        </telerik:RadPageView>
                                    </telerik:RadMultiPage>
                               </asp:Panel>
                                
                                <asp:Panel ID="PaneJobHistory" SkinID="DetailsInnerContent" runat="server">
                                   <telerik:RadMultiPage ID="RadMultiPage5" runat="server" Width="100%" Height="100%">
                                       <telerik:RadPageView ID="radPageHistory" runat="server" Height="100%">
                                           <uc4:JobHistory ID="JobHistory1" runat="server" />
                                       </telerik:RadPageView>
                                   </telerik:RadMultiPage>
                               </asp:Panel>
                                
                               <asp:Panel ID="PanelJobTasks" SkinID="DetailsInnerContent" runat="server">
                                   <telerik:RadMultiPage ID="RadMultiPage6" runat="server" Width="100%" Height="100%">
                                       <telerik:RadPageView ID="radPageTasks" runat="server" Height="100%">
                                           <uc5:JobTasks ID="JobTasks1" runat="server" />
                                       </telerik:RadPageView>
                                    </telerik:RadMultiPage>      
                               </asp:Panel>
                                
                            
                       </asp:Panel>
                   </telerik:RadPane>
                  
Here when i try to load user control <uc6:JobCandidates ID="JobCandidates1" runat="server" /> 
each time all the user control is loaded. How could I load one user control at a time with the help of telerik Ajax.
Iana Tsolova
Telerik team
 answered on 25 May 2012
1 answer
185 views

Hello there

Can anybody resolve a confusion for me? I'm trying to run some Range manipulation, using a cross-browser compatible Javascript library (it is called 'rangy').

I know that the radEditor has its own client-side getSelection() function etc. The problem is that the 'rangy' library can only work with Selection objects that it creates itself, and that means it needs to be passed a reference to the Iframe object of the radEditor. Specifically though, it expects that the Iframe object in question should be in possession of a 'contentWindow' property. Is this usually just standard for Iframes that fill a window, as it seems to me from investigating the radEditor document DOM that the IFrame object returned by the radEditor's get_document() function does not have a value set for 'contentWindow'.

Am I missing something obvious here? Should the radEditor's Iframe document have a 'contentWindow' set? If this property can be set  manually, how should I get a reference to the correct Window object?

Thanks if you can sort this confusion out for me!

Regards

Rumen
Telerik team
 answered on 25 May 2012
1 answer
79 views
As per the attached screenshot, does anyone know how to go from the Before to After?  I know I could do ColumnHeaderDateFormat="M/d - H" to get the date in the row with the hours, but I really need the dates above.

I would like to add the lines in yellow and the dates.  (The lines won't be yellow, I just did that for emphasis.)

All help is appreciated.

Steven

--------------------------------------------------------------------------------------------------------------------------------------------
Edit: Title should say "on the Left"
Ivana
Telerik team
 answered on 25 May 2012
2 answers
162 views
Hello

I have a RadGrid of Telerik 2012. I have a RadFilter associated with the Grid with the property FilterContainerID. My grid is dynamically created.
 
When I click the Add Expression button, it works fine and expression is seen. If the column is of type GridDateTimeColumn, then the calendar and time control is seen in expression but on clicking on it , no popups are there to select the filter value.

Also another problem is that on clicking the add expression button, the expression comes but it shows only the first column name in the list. If happens only when the first column of grid is that of an Integer type.

Any help will be highly appreciated.

Regards
Jiju.
Jiju
Top achievements
Rank 1
 answered on 25 May 2012
1 answer
95 views
Hi,

When expanding a tree using for example two level:
- treenode 1
  - treenode 1_1
    - treenode 1_1_1
  - treenode 1_2

When I collapse treenode 1 en expand again treenode 1, all childnodes will be opened exactly how they are opened. Is it possible to only open the first level of childnodes.
- treenode 1
  - treenode 1_1
  - treenode 1_2 

Thanks for all reply.

Wouter
Princy
Top achievements
Rank 2
 answered on 25 May 2012
3 answers
61 views
I'm trying implement something like this:
1. User clicks button that is placed somewhere on the page
2. RadTreeView expands some nodes (ServerSideCallback is used for nodes) to show some node
3. RadTreeView is scrolled to show this node (there are many nodes in the tree)

The problem is that OnClientNodePopulated is called before nodes are showed, so scrollIntoView method doesn't scroll to this node.
Is there any event that occurs after nodes are showed?

Browser: IE 8
Plamen
Telerik team
 answered on 25 May 2012
2 answers
309 views
Hi,

I trying to use "SpellCheckValidator" rad control in of my UserControl.
I have included
1.  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> - in UserControl
2. Added reference to Teleric.web.UI to my project (V2010.1.415.35)
3. Manually copied teleric.web.ui dll to my site "bin" folder
4.  <%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.Extensions" TagPrefix="webExtensions" %> - in UserControl
5. Added reference to web.extensions to my project
6. And I am using teleric dll from BIN35
7. I am good with ajaxifying

 


This is how I am trying to use teleric control

<
telerik:SpellCheckValidator ID="SpellCheckValidator1" runat="server" ControlToValidate="RadSpell1" ErrorMessage="Please Check Spell"></telerik:SpellCheckValidator>

 

 

<telerik:RadSpell ID="RadSpell1" runat="server" ButtonType="PushButton" ControlToCheck="txtMessage" />

I still get below error

 

"Could not load file or assembly 'System.Web.Extensions' or one of its dependencies. The system cannot find the file specified."

Please help me out !!

Thnx
N

Rumen
Telerik team
 answered on 25 May 2012
8 answers
769 views

Hi all

I have a radEditor which has suddenly for some reason developed the habit of displaying handles on the content area when the user clicks on the content area to start typing. Specifically, it appears that these are selection handles, for moving and /or resizing, which appear on the BODY element inside the Iframe of the content area. I'm not exactly sure what change could have been made to the radEditor code to cause the BODY element to begin behaving like this, but I'm assuming that I need to use Javascript on the radEditor elements to explicitly disable this behaviour.

I have so far been working on the basis that I need to use addExternalHandler on the Iframe element, to disable drag and drop behaviour of the BODY element within that IFrame, but I can't get this to work in the way I was expecting, using a client-side OnClientLoad event handler for the radEditor in question - and no amount of research has revealed a relevant answer. This is what I have so far, which I have found from piecing together other info on the forum etc, and which runs OK and gives no error ... but also seems to have no effect on the problem: the OnClientLoad function is as follows, with input parameters 'editor' and 'eventArgs' from the event:

var contentelement = editor.get_contentArea;  //gets reference to content area BODY element 

var myeditoriframe = contentelement.parentNode.parentNode;   //navigates up to the iFrame object

var myevent = myeditoriframe.all ? "drop" : "dragstart";  // *** I think this is the problem line!! ****


$telerik.addExternalHandler(myeditoriframe, myevent, function(e) {

      $telerik.cancelRawEvent(e);

      return false;

});

But the 'addExternalHandler' function never appears to run when the content area is clicked, so it looks like I am either not constructing the external handler parameter object 'myevent' correctly, or that this is simply the wrong approach to addressing this issue! 

Would it be possible for somebody to point me in the right direction with this problem. If you could help me out I would be enormously grateful!

Many regards

Rumen
Telerik team
 answered on 25 May 2012
1 answer
138 views
Hi
We are able to download files with RadAjaxManager.ResponseScripts.Add("window.location.href=.....

However when we want to download an HTML file, then the browser window opens and displays the HTML file instead of presenting a download dialog which let's us choose the download folder.

Do you have any suggestions how to download an HTML file ?

Daniel
Telerik team
 answered on 25 May 2012
4 answers
262 views
How can i get the ComboBox to display items with HTML tags properly? right now is just displays the tag rather then understanding it's HTML.
Ivana
Telerik team
 answered on 25 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?