Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
1.1K+ views
When using the Dynamic Linq datasource option NeedDataSource Event was not firing, then the grid will display all records.

Saravanaraja
Top achievements
Rank 1
 answered on 15 May 2013
1 answer
82 views
Hi,

I have a requirement to show the three scheduler in to a single page for three different user like from first drop-down i select a user and scheduler will display the appointment for that user and again in the same page second drop down will get a second scheduler. Is it possible with RadScheduler.

thanks
Niharika Singh
Boyan Dimitrov
Telerik team
 answered on 15 May 2013
1 answer
84 views
Is there a way to change the background color of a row only when it is being dragged?
Jayesh Goyani
Top achievements
Rank 2
 answered on 15 May 2013
11 answers
537 views
Hi,

I'm trying to load a UserControl in a RadWindow. It gets displayed but the button click events do not get fired.

When doing the exact same thing with a RadDock, the button click event in the UserControl gets call as expected. Here is the code used to load the UserControl (largely inspired from this thread).

Can you tell me what is wrong ? Why is the Button click event not callled with the RadWindow, but called with the RadDock ?

Thanks,

Dominic.

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
<%@ 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"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
   <title></title> 
</head> 
<body> 
   <form id="form1" runat="server"> 
   <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
   <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="true" VisibleStatusbar="false" runat="server" /> 
   <telerik:RadDockLayout runat="server" ID="RadDockLayout1"> 
      <telerik:RadDockZone runat="server" ID="RadDockZone1" Width="300" MinHeight="200" /> 
   </telerik:RadDockLayout> 
   </form> 
</body> 
</html> 

Default.aspx.cs
      void Page_Init(object sender, EventArgs e) 
      { 
         this.EnableViewState = false; 
 
         RadWindow RadWindow1 = new RadWindow(); 
         RadWindow1.ID = "RadWindow1";   
         RadWindow1.VisibleOnPageLoad = true; 
         RadWindow1.ContentTemplate = new TestTemplate(Page); 
          
         RadWindowManager1.Windows.Add(RadWindow1); 
 
         RadDock RadDock1 = new RadDock ();   
         RadDock1.Text = RadDock1.ID = "RadDock1";   
         RadDock1.ContentTemplate = new TestTemplate(this.Page); 
  
         RadDockZone1.Controls.Add(RadDock1); 
      } 
   } 
 
   internal class TestTemplate : ITemplate 
   { 
      private Page _page; 
 
      public TestTemplate(Page page) 
      { 
         _page = page; 
      } 
 
      public void InstantiateIn(Control container) 
      { 
         System.Web.UI.UserControl userControl; 
         userControl = (System.Web.UI.UserControl)_page.LoadControl("~/TestControl.ascx"); 
         container.Controls.Add(userControl); 
      } 
   } 

TestControl.ascx
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="TestControl.ascx.cs" Inherits="WebApplication1.TestControl" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
User control used as template with button events. 
<div> 
   <asp:Button ID="btn1" runat="server" Text="Button with tooltip" ToolTip="Hello World" /> 
   <asp:Button ID="btn2" runat="server" Text="Button" /> 
</div> 
<p><asp:Literal ID="ltrl" runat="server" /></p> 
<telerik:RadToolTipManager ID="rttm" runat="server" AutoTooltipify="true" /> 

TestControl.ascx.cs :
   public partial class TestControl : System.Web.UI.UserControl 
   { 
      override protected void OnInit(EventArgs e) 
      { 
         base.OnInit(e); 
         btn1.Click += new EventHandler(btn1_Click); 
         btn2.Click += new EventHandler(btn2_Click); 
      } 
 
      void btn1_Click(object sender, EventArgs e) 
      { 
         ltrl.Text = "Button 1 was clicked"; 
      } 
 
      protected void btn2_Click(object sender, EventArgs e) 
      { 
         ltrl.Text = "Button 2 was clicked"; 
      } 
   } 
Marin Bratanov
Telerik team
 answered on 15 May 2013
2 answers
112 views
I'm working with the demo found here: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx#qsf-demo-source

My question is why is the javascript commented out in the code on the demo page?

My problem is that when I try to implement my own inline edit, I get the following error at runtime:  CS0103: The name 'rGridInductions' does not exist in the current context.  I thought that maybe it had something to do with the fact that i'm using nested grids but i just don't know.  Here is the general layout that I have going for the grids.  I only need inline editing for rGridInductions:
<-- Javascript RadCodeBlock is up at the top -->

<
telerik:RadGrid ID="rGrid_Project" runat="server" ...>
    .
    .
    .
    <telerik:RadMultiPage ID="rMulti_Schedule" Runat="server">
            <telerik:RadPageView ID="rPage_Notes" runat="server" Selected="True">
                    <telerik:RadGrid ID="rGrid_Notes" runat="server" CellSpacing="0" ...>
            .
            .
            .                       
                        </telerik:RadGrid>                   
                </telerik:RadPageView>
                 
        <telerik:RadPageView ID = "rPage_Remarks" runat = "server">                                   
                    <telerik:RadGrid ID="rGrid_Remarks" runat="server" CellSpacing="0" ...>                       
            .
            .
            .  
                    </telerik:RadGrid>               
                </telerik:RadPageView>
 
                <telerik:RadPageView ID = "rPage_Inductions" runat = "server">               
                    <telerik:RadGrid ID="rGrid_Inductions_Detail" runat="server" ...>
            .
            .
            .     
                    </telerik:RadGrid>               
                </telerik:RadPageView>
 
                <telerik:RadPageView ID = "rPage_Completions" runat = "server">               
                    <telerik:RadGrid ID="rGrid_Completion_Details" runat="server" ...>
            .
            .
                    .
                    </telerik:RadGrid>               
                </telerik:RadPageView>                               
    </telerik:RadMultiPage>      
    
        <Columns>
        <asp:Panel ID ="pivotchart" runat ="server">   
                <telerik:RadGrid ID="rGrid_Inductions" runat="server"...>           
            .
            .
            .
                </telerik:RadGrid>  
            </asp:Panel>
 
    </Columns>
</telerik:RadGrid>

  Thanks for the help!
Eyup
Telerik team
 answered on 15 May 2013
1 answer
214 views
We have a situation requiring multiple managers because we have user controls with multiple windows. There is a window manager in the user control to group these windows. When these user controls are added to the same page, the page ends up with multiple window managers, one from each user control.

Are there any best practices around creating multiple RAD Window Mangers on a page? Does having multiple managers impose any penalties in performance / scale?
Marin Bratanov
Telerik team
 answered on 15 May 2013
1 answer
109 views
Hi All,

I am unable to bind treelist  , i am using DataKeyNames and ParentDataKeyName are in different columns. could you please help me on this.

Regards,
Sandeep Kumar
Princy
Top achievements
Rank 2
 answered on 15 May 2013
3 answers
176 views
I had the need to connect an instance of my RadEditor and RadFileManager to a file source on  an FTP, and I used the sample provided on - http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/how-to-use-the-ftp-connection.aspx

The RadFileManager works flawlessly, however the RadEditor shows the folders and sub folders, but does not show the files. Note that the editor still manages to upload a file, however still doesn't show it.      

My behind code:
protected void Page_Load(object sender, EventArgs e)
{
  string[] paths = new string[] { "/Files" };
  txtContentEN.DocumentManager.ContentProviderTypeName = typeof(FtpContentProvider).AssemblyQualifiedName;
  txtContentEN.DocumentManager.ViewPaths = paths;
  txtContentEN.DocumentManager.DeletePaths = paths;
  txtContentEN.DocumentManager.UploadPaths = paths;
}

I tried adding the line below, but still no luck.

txtContentEN.DocumentManager.SearchPatterns = new string[] { "*.docx", "*.doc", "*.rtf", "*.txt", "*.pdf", "*.xls", "*.xslx", "*.ppt", "*.pptx", "*.pps" };

Ryan C
Top achievements
Rank 1
 answered on 15 May 2013
1 answer
176 views
Hello,

I am using Telerik Asp.Net Ajax Controls on my SharePoint 2010 Visual Webpart. I want to use the RadWindow as a modal popup.
In my development environment the Radwindow works as expected. But if I deploy the solution to another SharePoint Server und click the Button which shows the RadWindow normally nothing happens and the Popup doesn't appear.

I havn't got any entries in my web-config for using the telerik controls. Furthermore i'm using a RadAjaxManager.

Do you have any ideas why it does not work on the server? Do i need some entries in web.config or do i have to make some settings to enable Postbacks?
I havn't got any ideas anymore. The strange thing is that it works in my dev environment - without any special settings - but not in the test environment.

I hope you can help me.
Thank you very much.

(Sorry - this is a wrong subject but i don't know how to move it to another ;) )
Stanimir
Telerik team
 answered on 15 May 2013
1 answer
89 views
Hi,
I have tried every way to solve this problem.but  I failed.
I have a radgrid as below
<telerik:GridTemplateColumn HeaderText="Approve">
                  <ItemTemplate>
                      <asp:LinkButton ID="LinkButtonIsLinkPublish" CommandName="ShowIsPublish" Text="<span style="font-size: 14px;">Approve</span>"
                       runat="server"></asp:LinkButton>
            </ItemTemplate>
 </telerik:GridTemplateColumn>
and i have a RadWindow which has a button as below:
<telerik:RadWindow ID="RadWindowIsPublish" runat="server" Title="Approve" Width="250px"
        Height="150px" VisibleOnPageLoad="false" Behaviors="Close,Resize,Move" Left="610px">
       <ContentTemplate>
                 <table width="100%">
                    <tr>                     
      <td align="center">
             <telerik:RadButton ID="RadWindowIsPublisRadButton" runat="server" OnClick="RadWindowButton_Onclick"
                     CommandArgument="radwindowIsPublish">
                   </telerik:RadButton>
                      </td>
                        </tr>
                  </table>
      </ContentTemplate>
  </telerik:RadWindow>
 i set the button's text by this way
this.RadWindowIsPublisRadButton.Text="NewText"
but now the text always keep the default value,
Any help would be great!




Marin Bratanov
Telerik team
 answered on 15 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?