Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
498 views
Guys,
Can you please let me know what is the best way to doing this.  I have a RadGrid
That uses <FormTemplate> for editing. Inside of that I have another RadGrid and "Save" Button. How can I get an access to a grid that in enbaded inside of the FormTemplate

in code behind, in  btnSaveBitData_Click how can I find gvBits. I can do something like
gvBits = (RadGrid)gvPolicyData.MasterTableView.Items[editIndex].EditFormItem.EditFormCell.FindControl("gvPolicyBits"); 
but it got to be a better way.
 
    <telerik:RadGrid ID="gvMaster" runat="server" AutoGenerateColumns="false">  
        <MasterTableView DataKeyNames="SomeId" EditMode="EditForms">  
            <Columns> 
                <telerik:GridTemplateColumn HeaderText="Actions" ItemStyle-Width="150px">  
                    <ItemTemplate> 
                        <div class="actions_menu" style="width: 150px">  
                            <asp:LinkButton ID="lnkSet" runat="server" CausesValidation="false" CommandName="edit" 
                                CssClass="float bits" Text="Set "></asp:LinkButton> 
                            <br style="clear: left" /> 
                        </div> 
                    </ItemTemplate> 
                    <ItemStyle Width="150px" /> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings EditFormType="Template">  
                <FormTemplate> 
                    <div style="padding: 10px; background-color: #F8F8FF">  
                        <telerik:RadGrid runat="server" ID="gvBits" AutoGenerateColumns="false" Skin="Office2007" 
                            OnNeedDataSource="gvBits_NeedDataSource">  
                            <MasterTableView> 
                                <Columns> 
                                    <telerik:GridBoundColumn> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
                        <br /> 
                        <asp:Button ID="btnSaveBitData" runat="server" Text="Save" CssClass="action_button" 
                            OnClick="btnSaveBitData_Click" />&nbsp;&nbsp;  
                    </div> 
                </FormTemplate> 
            </EditFormSettings> 
        </MasterTableView> 
    </telerik:RadGrid> 

 

 

Orest
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
148 views
Hello,

we are developing a client/server 3-tier application and need to filter and sort huge amount of data. Let me first explain the current situation.

WebSite <-> ApplicationServer <-> Database
WinApp <-> WebService <-> ApplicationServer <-> Database

The Website calls the methods in the applicationserver directly e.g. "Users.GetAllUsers()".
The WinApp calls the same method via webservice.

Our current grids show the data in the sort order returned by the method above. Now we need to implement sorting/filtering and paging on the grids and we'd like to use the standard funktionality of the grids. As we have a 3-Tier application i do not want to directly connect the grid to the database, merely i want to connect the grid to the ApplicationServer.

Does anybody know how we can achieve this in an elegant way? It should work over webservices, too.
I was thinking of getting a serialized expression tree from the radgrid that i can send to the webservice which itself manipulates it and sends it to the database. The data is then returned to the grid.

Any ideas?

Bodevain Svensson
Top achievements
Rank 1
 answered on 27 Jul 2009
9 answers
177 views
Hi please can some one help me with this problem.
I have a Rad calendar control next to a text box and when I select a date i will be added to the text box. I also would like when I click on the caledar conrol 'Today's date background color be different from the rest of the days so that the user see todays date. This is usually done by default on aspx.net calendar control but i can get it work on Rad calendar control.

Thanks
Rao
Pavlina
Telerik team
 answered on 27 Jul 2009
1 answer
157 views
Hi ,

I am uploading  files using Document Manager and inserting the uploaded file into the RadEditor content by clicking the Insert button.
Again if i click the insert button the document gets added in the same line next to the previous one. I want to add the next attachment in the next line with a line break. Is it Possible to insert a line break in the button click or please provide a solution so that i can add attachments in seperate lines.

Thanks in Advance
Veda.S 
Rumen
Telerik team
 answered on 27 Jul 2009
1 answer
114 views
Hi,

I have just found some kind of fault in the advancedFormTemplate system. Validators position themselves wrong, even in the official example:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

If you open one of the appointments, delete the subject, submits the form and then clicks on the subjectfield the errormessage appears a weird place.

What can I do to correct this?
What can I do to get full control of the position of the errormessage?

Regards
Rune
Alex Gyoshev
Telerik team
 answered on 27 Jul 2009
4 answers
153 views
Hi,

I've got a very strange problem with RadCalendar.  I have had this problem for many versions of RadCalendar but am just now looking into it in a bit more details.

I have a master page with RadAjaxPanel around the ContentPanel.  I have a UserControl with a RadCalendar and this user control toggles between a List View (RadGrid) and an Edit view (where the RadCalendar lives).  So, in an ajax request I toggle the visibility of these panels.

However, sometimes when I toggle the Edit view on the RadCalendars have lost their skin.

I have tried to reproduce this issue on a smaple project but was not able to.  I have debugged the requests using Fiddler and there appears to be no bad requests also. So I'm at a bit of a loss on this one.

Any tips on how to narrow this issue down? 

Thanks Heaps

Guido
FlyFish
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
79 views
Hi,

 I have a invisible template column radtextbox in Radgrid How can I get the value of the particular column through clientside

thanks,
Nirmal
Princy
Top achievements
Rank 2
 answered on 27 Jul 2009
4 answers
127 views

On using the RadMenu, it appears that the text is out of alignment of where it should be.  Why is this?  Please see the code and picture.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="Layouts_MasterPage" %> 
<%@ Register TagPrefix="uc" TagName="HeaderNavigation" Src="~/Layouts/Controls/HeaderNavigation.ascx" %> 
<%@ 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">  
 
<style type="text/css">  
.menuclass{ height:25px; }  
.submenuclass { height:16px;}  
 
</style> 
 
    <title></title>  
    <link type="text/css" id="csslink" href="../App_Themes/Custom/Theme.css" /> 
    <asp:ContentPlaceHolder id="head" runat="server">      
    </asp:ContentPlaceHolder> 
</head> 
<body style="background-color:White;" runat="server">  
    <form id="form1" runat="server" style="background-color: #FFFFFF">                     
            <div id="maindiv" style="width: 1200px; height: 750px; margin-left:auto; margin-right:auto;" runat="server">  
                <telerik:RadMenu ID="RadMenu1" Height="25px"  Runat="server" Skin="Vista">  
                <Items> 
                    <telerik:RadMenuItem    runat="server" Text="St. Michael's">                          
                        <Items> 
                            <telerik:RadMenuItem runat="server"  NavigateUrl="http://www.cathedralhealth.org"  Text="St. Michael's Medical Center">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"  NavigateUrl="http://smmc-wssrv1/default.aspx"  Text="St. Michael's Intranet Site">  
                            </telerik:RadMenuItem>                              
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items>    
                <Items> 
                    <telerik:RadMenuItem runat="server"   Text="Personal Information">  
                        <Items> 
                            <telerik:RadMenuItem runat="server"    Text="Account Information">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"   Text="Family Information">  
                            </telerik:RadMenuItem>                                                          
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items>       
                <Items> 
                    <telerik:RadMenuItem runat="server"   Text="Mass Prophylaxis">  
                        <Items>                                                  
                            <telerik:RadMenuItem runat="server"    Text="Employee Screening">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"    Text="Family Profile">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"   Text="How to Tutorial">  
                            </telerik:RadMenuItem>    
                        </Items> 
                    </telerik:RadMenuItem>                                        
                </Items> 
                <Items> 
                    <telerik:RadMenuItem runat="server"   Text="Site Information">                          
                        <Items> 
                            <telerik:RadMenuItem runat="server"   Text="General Site Information">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"   Text="Tutorials">  
                                <Items> 
                                    <telerik:RadMenuItem runat="server"   Text="How To Fill Out Information">  
                                    </telerik:RadMenuItem> 
                                    <telerik:RadMenuItem runat="server"   Text="Administrative Tutorials">  
                                        <Items> 
                                            <telerik:RadMenuItem runat="server"   Text="How to View and Modify Users">  
                                            </telerik:RadMenuItem> 
                                            <telerik:RadMenuItem runat="server"   Text="Employee Family Information">  
                                            </telerik:RadMenuItem>   
                                            <telerik:RadMenuItem runat="server"   Text="How to Print Forms">  
                                            </telerik:RadMenuItem>                                              
                                        </Items> 
                                    </telerik:RadMenuItem> 
                                </Items>                              
                            </telerik:RadMenuItem>                              
                            <telerik:RadMenuItem runat="server"   Text="Tutorial About the Site">  
                            </telerik:RadMenuItem>                              
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items>    
                <Items> 
                    <telerik:RadMenuItem runat="server"  Text="Technical Support">                          
                        <Items> 
                            <telerik:RadMenuItem runat="server"  Text="Contact Site Administrator">                                                                  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"  Text="Suggestions or Comments">                                  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"  Text="Issues with Site">  
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items>            
                <Items> 
                    <telerik:RadMenuItem runat="server"  Text="Health and Awareness">  
                        <Items> 
                            <telerik:RadMenuItem runat="server"  NavigateUrl="http://www.cdc.gov" Text="CDC Site">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"  Text="Latest News">  
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server"  Text="Disaster Preparedness">  
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items>                              
            </telerik:RadMenu> 
                <br />                      
              
          
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
            </telerik:RadScriptManager>       
           </div>                 
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">                      
          
        </asp:ContentPlaceHolder> 
        <br /> 
        <br /> 
        <br /> 
      
    </form> 
</body> 
</html> 
 
Yana
Telerik team
 answered on 27 Jul 2009
3 answers
153 views
Hi,

I am trying to create a custom skin for the Editor. I follow the instructions in http://www.telerik.com/help/aspnet-ajax/createcustomskin.html and http://www.telerik.com/help/aspnet-ajax/createnewskin.html. I set the EnableEmbeddedSkins property to false. As far as i see i manage to create it. The problem is when i try to open a dialog for example Flash Manager, it show an error "unable to find embedded skin with name 'Default2009'".  How can i set EnableEmbeddedSkins to false for the controls inside the dialogs? I think they inherit the Skin from the Editro. So i copy also the controls that are used in the dialogs acording to this: http://www.telerik.com/community/forums/aspnet-ajax/editor/different-skin-for-file-managers-windows-etc.aspx and set the DialogsCssFile property. But, the error stay, no change.
Here is a simple code which i use:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!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 id="Head1" runat="server"
    <title>Untitled Page</title> 
    <link href="Skins/Default2009/Window.Default2009.css" rel="stylesheet" type="text/css" /> 
    <link href="Skins/Default2009/Editor.Default2009.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadEditor ID="RadEditor1"  
        EnableEmbeddedSkins="false" 
        DialogsCssFile="Skins/Default2009/Widgets.Default2009.css" 
        Skin="Default2009" runat="server"
            <MediaManager DeletePaths="~/" UploadPaths="~/" ViewPaths="~/"  /> 
            <TemplateManager DeletePaths="~/" UploadPaths="~/" ViewPaths="~/" /> 
            <DocumentManager DeletePaths="~/" UploadPaths="~/" ViewPaths="~/" /> 
            <FlashManager DeletePaths="~/" UploadPaths="~/" ViewPaths="~/" /> 
            <Content> 
            </Content> 
            <ImageManager DeletePaths="~/" UploadPaths="~/" ViewPaths="~/" /> 
        </telerik:RadEditor> 
    </form> 
</body> 
</html> 

Can you tell me what i am missing, is there a way to set EnableEmbeddedSkins to false for the controls inside the dialogs?
Svetlina Anati
Telerik team
 answered on 27 Jul 2009
2 answers
105 views
Hi!
Is it possible to use the SkinManager upon classic asp.net controls like Gridview og DetailsView?
If so, then how?

Thanks!

sammy ymmas
Top achievements
Rank 1
 answered on 27 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?