Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
103 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
193 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
93 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
141 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
170 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
74 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
4 answers
725 views

I have a RadWindow with a content template containing 3 labels. The window is displayed on Button click, but the labels do not update in the RadWindow, instead they keep thier default value. Any help would be great!

Code is a as follows: -

ASPX Page

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    EnableShadow="True" KeepInScreenBounds="True" Behaviors="Close, Reload"
    Modal="True" ReloadOnShow="True" VisibleStatusbar="False">
<Windows>
            <telerik:RadWindow ID="winRegisterSum" runat="server">
            <ContentTemplate>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Submit register with the following:"></asp:Label>
            <br /><br />
            <asp:Label ID="lblPresents" runat="server" Text="Presents"></asp:Label>
            <br />
            <asp:Label ID="lblAbsents" runat="server" Text="Presents"></asp:Label>
            <br />
            <asp:Label ID="lblLates" runat="server" Text="Presents"></asp:Label>
            <br /><br />
            <asp:Button ID="btnConfirm" runat="server" Text="Confirm" CssClass="defaultButton" OnClick="btnConfirm_Click"/>
            </ContentTemplate>
            </telerik:RadWindow>
                </Windows>
</telerik:RadWindowManager>


Code Behind

Label lblPresents = winRegisterSum.ContentContainer.FindControl("lblPresents") as Label;
Label lblAbsents = winRegisterSum.ContentContainer.FindControl("lblAbsents") as Label;
Label lblLates = winRegisterSum.ContentContainer.FindControl("lblLates") as Label;
 
lblPresents.Text = "New Label";
lblAbsents.Text = "New Label";
lblLates.Text = "New Label"
 
string script = "function f(){$find(\"" + winRegisterSum.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
 
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
Marin Bratanov
Telerik team
 answered on 15 May 2013
1 answer
197 views
 I have a RadGrid, and there is a GridTemplateColumn 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 need to set the button's text which in Radwindow base on record's status in RadGrid, but now the button's text always keep the default value, cannot change it.
Any help would be great!



Marin Bratanov
Telerik team
 answered on 15 May 2013
6 answers
247 views
Hi!

I have a small problem. RadAjaxLoadingPanel does not seem to display itself on an ajax update. Events on the page are triggered as configured. It is just that loading panel never shows. I have also tried disabling CSS, but to no avail.

This is my aspx code:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxManagerProxy ID="mngrProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Search1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Search1" />
                    <telerik:AjaxUpdatedControl ControlID="ViewMain1" LoadingPanelID="lpnlNormal" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ViewMain1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ViewMain1" LoadingPanelID="lpnlNormal" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="lpnlNormal" runat="server"></telerik:RadAjaxLoadingPanel>
    <div id="divSearch" class="pane pane-left">
        <sid:Search ID="Search1" runat="server" OnSearchStarted="Search1_SearchStarted"></sid:Search>
    </div>
    <div id="divView" class="pane pane-right">
        <sid:ViewMain ID="ViewMain1" runat="server"></sid:ViewMain>
    </div>
    <div class="clear-both" />
</asp:Content>


When I click a button in Search1 control a SearchStarted event is triggered and ViewMain1 control (containing RadGrid) is updated. However, lpnlNormal, never ever shows. Search1 and ViewMain1 are custom controls.
Vlad
Top achievements
Rank 1
 answered on 15 May 2013
3 answers
107 views
Hi,

I got a requirement there is a radcombobox and the user need to check atleast three items from it. If the user does not check three show alert that he need to select three or more items and prevent closing the dropdown.

Please help soon
Shahi
Princy
Top achievements
Rank 2
 answered on 15 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?