Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
154 views

I would like to know if the below scenerio is possible in RadGrid.
I am getting data from database and populating the RadGrid. One of the columns values in the RadGrid is a link(linkbutton). Clicking on the link will open a new window(webpage). I was able to move through the rows in the Radgrid using keyboard up and down arrows. I will click on the link for the firsttime and open the new window then when I move through the rows in the Radgrid using keyboard up and down arrows the content in the new window should also change. Does any one know how to achive this? Any help will be appreciated.

Thanks,
Raji
Raji
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
97 views
I imagine that that title has a couple of you almost automatically reaching for your keyboards to type a reply.

Read on.

I have a control that, under certain conditions, needs to open a window to collect additional info from the user. Lets call the control the "SettingsControl" and the window that it opens the "AdvancedWindow".

The SettingsControl will be deployed in any number of pages which, themselves are displayed in a RadWindow. Let's call these the "CallingPages" and the underlying aspx page that drives it all, the "TopLevelPage"

My CallingPages directly manipulate controls on (and handle events from) the AdvancedWindow which is defined inside the SettingsControl using a ContentTemplate.

My problem is that when I open the AdvancedWindow it is limited in dimensions to the window containing the SettingsControl.

Now, normally, my AdvancedWindow would be defined using a completely separate aspx page and the window would be opened by having it registered with the WindowManager on the TopLevelPage. Clearly, in this specific case I can't.

What I need to be able to do is something like this...

1. When the CallingPage opens it has a reference to the RadWindowManager that opened it.
2. The CallingPage notifies the SettingsControl and it, in turn, registers the AdvancedWindow with the RadWindowManager from the previous step so that, when called, it has the entire browser window to wander about in.

I can get a reference to the RadWindowManager that opens a RadWindow but only client-side. Because I can't 'see' the active window manager I can't add my AdvanceWindow to its 'Windows' collection and there is no method for doing this client-side.

So, questions:
  1. Is it p[ossible to do what I'm aiming for?
  2. If not, is there a reasonable alternative method?

It is important that my CallingPages can both get/set properties in the AdvancedWindow (which I could do with QueryString parameters and return arguments) and respond to events from controls in the AdvancedWindow. As an example,. the AdvancedWindow contains a RadListView and I need the CallingPages to handle the OnNeedDataSource event.

I'd be grateful for any help/suggestions.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 30 Aug 2012
6 answers
321 views
hello, i have some linkbuttons like manu items with onClick event, witch set css attributes and loading different usercontrols in placehoder control. 
here is code for one of my linkbuttons:

protected void homeBtn_Click(object sender, EventArgs e)
   {
 
       ControlPath = "Mainpage.ascx";
       LoadUserControl();
       homeBtnH4.Attributes.Add("class", "activem");
       eventBtnH4.Attributes.Remove("class");
 
       
   }

here is the way I'm loading usercontrols dynamicaly in placehodler:

private void LoadUserControl()
   {
       if (!string.IsNullOrEmpty(ControlPath))
       {
           placeHolder1.Controls.Clear();
           UserControl uc = (UserControl)LoadControl(ControlPath);
      
           placeHolder1.Controls.Add(uc);
       }
   }
 
 
   public string ControlPath
   {
       get
       {
           if (ViewState["controlPath"] != null)
               return Convert.ToString(ViewState["controlPath"]);
           else
               return null;
       }
 
       set
       {
           ViewState["controlPath"] = value;
       }
   }

now i want to use RadAjaxManager to update div element where is placed placeholder:

<div class="contentholder" id="updatepanel" runat="server" >
  <asp:PlaceHolder ID="placeHolder1" runat="server"></asp:PlaceHolder>
</div>

here is my ajax code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
               
           <telerik:AjaxSetting AjaxControlID="homeBtn">
               <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="updatepanel" LoadingPanelID="RadAjaxLoadingPanel1" >
                   </telerik:AjaxUpdatedControl>
                    
               </UpdatedControls>
           </telerik:AjaxSetting>
 
   </AjaxSettings>
   </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
   </telerik:RadAjaxLoadingPanel>

problem is that , homebtn click doesn't work properly , css class don't add and on second click it doesn't load usercontrol at all.
sorry for my bad English, not native language.. 
Pavlina
Telerik team
 answered on 30 Aug 2012
10 answers
256 views
Hi,

Is there any example code setup to show how to use an AppointmentComparer?

I've tried setting one up, but it never seems to get called.

I'm using a RadScheduler with WebService binding, would that have any impact in why it doesn't seem to be working?

In the Page_Init method I have the following code:

RadScheduler1.AppointmentComparer = new AppointmentComparer(); 

And I have an AppointmentComparer.cs file with the following code:

public class AppointmentComparer : IComparer<Appointment> 
    #region Constructors 
    public AppointmentComparer() 
    { 
    } 
    #endregion 
 
    int System.Collections.Generic.IComparer<Telerik.Web.UI.Appointment>.Compare(Appointment first, Appointment second)  
    { 

But the breakpoint in the Compare method never seems to be reached.

Thanks very much for all your help,
Greg


Rick
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
110 views
The behavior can be seen on the Telerik demo page:  http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

1. Enable 'Real-Time HTML View' module,
2. highlight a word in the Design window,
3. delete the highlighted word
4. wait a second or two...
...the deleted word reappears.


If after step 3 I quickly click elsewhere in the design window, the deleted word does not reappear.

Can you provide a solution to this problem?

Thanks.
Trevor
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
131 views
Hello,

How to get client id of all date picker control on a page using javascript like the way we can get array of rad comboboxes


teleric.web.ui.Radcombobox.comboboxes[i]...

so is there any way to get client id/array of date picker control


thanks,
Nilesh
Nilesh
Top achievements
Rank 1
 answered on 30 Aug 2012
1 answer
51 views
I WANT ELMAH exception handling framework to work with Telerik AJAX

SO THAT unhandeled (system) exceptions get automatically logged to ELMAH table and System Error page is displayed when an such exception occurs.

Can anybody give solution for this?

Genady Sergeev
Telerik team
 answered on 30 Aug 2012
2 answers
201 views
Hi All,

I want to transfer items from radcombox to radlistbox, I want to two radcomboxes and when the right arrows is clicked then items get added to the list box.

How can I achieve this.

any help will be apprecaited.
Thanks.
Anjali
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
85 views
Hello.  I am trying to have my "displaying 1 of 10" element of the RadDataPager float all the way to the right.  It doesn't seem proper to use hardcoded padding when the width of the page numbers can vary.  Is there a good solution to this?  Thanks!  :-)

Code:
<LayoutTemplate>
           <telerik:    ID="RadDataPagerTop"  runat="server" IsTotalItemCountFixed="True" Skin="Windows7" Width="752px"  CssClass="Custom">
                       <Fields>
                           <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                           <telerik:RadDataPagerButtonField FieldType="Numeric" />
                           <telerik:RadDataPagerButtonField FieldType="NextLast" />
                           <telerik:RadDataPagerTemplatePageField>
           <PagerTemplate>
               <div style="float: right">
                   Displaying items
                       <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex + 1 %>" />
                       to
                       <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# (Container.Owner.TotalRowCount < Container.Owner.StartRowIndex + Container.Owner.PageSize)?Container.Owner.TotalRowCount:Container.Owner.StartRowIndex + Container.Owner.PageSize  %>" />
                       of
                       <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount %>" />
                   
               </div>
           </PagerTemplate>
       </telerik:RadDataPagerTemplatePageField>
 
                   </Fields>        
                   </telerik:RadDataPager>

Angie
Top achievements
Rank 1
 answered on 30 Aug 2012
5 answers
151 views
I have dev version of RadEditorMoss_5_8_10. I am trying to make SpellChecker Available in List items of Sharepoint Foundation 2010. I installed the webpart, everything else is available except SpellChecker in Sharepoint List. Here is my web.config entry for Telerik

<SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Widgets" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditor_CSDialog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e9c701da6b1b65de" Namespace="RadEditor_CSDialog" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.8.10.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.8.10.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=2011.2.712.20, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />


I have activated

Use RadEditor to edit HTML fields

Use RadEditor to edit List Items            features

 

 

 I Can see Spell Checker when i add "
Rumen
Telerik team
 answered on 30 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?