Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views

I am using nested user controls and web controls in my PanelBar Items.  They are reused outside of my Panelbar in other parts of the app.  They already have style sheets and css classes assigned to them.  When I drop the controls into the panel bar they no longer use those but inherit from the PanelBars default stylesheet.  How to do I reference the other stylesheet? Is there a way to use a custom skin for the Panelbar but still have the nested controls use their own style sheet?

<div id="ICEmploymentRole" runat="server">  
       <telerik:RadPanelBar runat="server" ID="RadPanelBarICE" Width="1024px" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true">  
        <Items> 
        <telerik:RadPanelItem Text="My Internal Controls Criteria" runat="server" > 
        <Items> 
        <telerik:RadPanelItem runat="server" Value="templateHolder" > 
            <ItemTemplate>   
             <div class="notificationcontainer">       
             <asp:Label ID="lblICEConfirmationMsg" runat="server" Visible="False" CssClass="notification"></asp:Label> 
             <asp:Label ID="lblICEErrMsg" runat="server" CssClass="error" Visible="False"></asp:Label></div>  
             <asp:GridView ID="grdIceCriteriaList" runat="server"   
                OnRowDeleting="grdUserCriteriaList_RowDeleting"   
                OnRowEditing="grdUserCriteriaList_RowEditing"   
                OnRowDataBound="grdICECriteriaList_RowDataBound"   
                AutoGenerateColumns="False"   
                SkinID="gridviewContentSkin"   
                CssClass="contentTable">  
                    <Columns> 
                    <asp:BoundField DataField="CriteriaName" HeaderText="Name" /> 
                    <asp:BoundField DataField="VPAreaDesc" HeaderText="VP Area" SortExpression="VPAreaDesc" /> 
                    <asp:BoundField DataField="OrgGrpDesc" HeaderText="Sch/Coll/Dept Grp" /> 
                    <asp:BoundField DataField="DeptIDDesc" HeaderText="Dept" SortExpression="DeptIDDesc" /> 
                    <asp:TemplateField HeaderText="Default">  
                        <ItemTemplate> 
                            <asp:Literal ID="RadioButtonMarkup" runat="server" ></asp:Literal>&nbsp;  
                        </ItemTemplate> 
                    </asp:TemplateField> 
                        <asp:TemplateField> 
                            <EditItemTemplate> 
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" 
                                    Text="Update"></asp:LinkButton> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Edit" 
                                    Text="Edit"></asp:LinkButton> 
                            </ItemTemplate> 
                        </asp:TemplateField> 
                        <asp:TemplateField> 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lnkbtnDel" runat="server" CausesValidation="False" CommandName="Delete" 
                                    OnClientClick="return DeleteDataConfirmation(this)" Text="Delete"></asp:LinkButton> 
                            </ItemTemplate> 
                        </asp:TemplateField> 
                       </Columns> 
                    </asp:GridView> 
                    <div class="centered">  
                   <asp:LinkButton ID="lnkbtnAddICECriteria" runat="server" OnClick="lnkbtnAddICECriteria_Click" CssClass="contentlink">Click to add new criteria</asp:LinkButton></div>  
                <div class="mysettingsfloat">  
               <uc2:ParamBar ID="ParamBar1" runat="server" Visible="false" /> 
               </div> 
            </ItemTemplate> 
            </telerik:RadPanelItem> 
            </Items> 
            </telerik:RadPanelItem> 
            </Items> 
            </telerik:RadPanelBar> 
 </div> 

 

 

Yana
Telerik team
 answered on 18 Jan 2010
2 answers
120 views
i'm using dnn 5.2.1 and the telerik editor but the editor doesn't load the german resource files.

i put the language files to App_GlobalResources and at the webconfig i put the language:

<add name="RadEditorProvider" type="Telerik.DNN.Providers.RadEditorProvider" providerPath="~/DesktopModules/TelerikWebUI" SyncDBOnSubmit="True" AutoCreatePaths="False" ImagesPaths="*PortalRoot*" DocumentsPaths="*PortalRoot*" MediaPaths="*PortalRoot*" FlashPaths="*PortalRoot*" CssFiles="*PortalRoot*/editor.css" TemplatePaths="template" Language="de-DE" />

my portal is set to german as default language, my account an my browser too.

or should i write the language settings into the ConfigFile.xml file?

thanks

regards

michael
dnn
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
146 views
hi
I have created one custom.aspx page without any cs file .i am using radfileexplorer  in my aspx page but when I run asp.net  it is working fine and it displays the file but as soon as i integrate with the sharepoint it doesnot display the file in the  control and is shown without any files in that.The code which i used it as follow
<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="520px" OnClientItemSelected="select"
      ><Configuration ViewPaths="~sitecollection/_layouts/"  />   
                </telerik:RadFileExplorer>
i don't understand the error.I have the copied this aspx page in layouts folder and directly invoking the page.Can you please suggest any approach  or what mistake I am doing in this?


Lini
Telerik team
 answered on 18 Jan 2010
1 answer
159 views
I am looking to use Docking for the first time in a new project.

Is it possible to create a 'Maximize' button that will set the size of the window?

How easy would it be implement a system to drag & drop items between dock objects?  For example, one dock object contains files which can be dragged over to another dock object which is a Folder view.
Pero
Telerik team
 answered on 18 Jan 2010
1 answer
198 views

I'm trying to swap 2 columns within the RadGrid ColumnCreated event (see code below).  When I step through the code with the debugger, it appears to be working, but when the page renders, the columns are not swapped.  I have 2 columns in the markup (update & delete links) and a number of other columns that are auto-generated.  I'm trying to swap the 2nd column in the markup with the last auto-generated column.  Why are the columns not swapping?  TIA, Gary.

        protected void rgContacts_ColumnCreated(object sender, Telerik.Web.UI.GridColumnCreatedEventArgs e)  
        {  
            switch (e.Column.UniqueName)  
            {  
                case "PartyId":  
                case "GUID":  
                case "Code":  
                case "Type":  
                    e.Column.Visible = false;  
                    break;  
                case "LastColumn":  
                    GridColumn gcDelete = rgContacts.MasterTableView.Columns.FindByUniqueName("DeleteCommand");  
                    if (gcDelete != null)  
                        e.OwnerTableView.SwapColumns(e.Column, gcDelete);  
                    e.Column.Visible = false;  
                    break;  
            }  
 

 

Princy
Top achievements
Rank 2
 answered on 18 Jan 2010
1 answer
106 views
I have a web application that allows different resource types depending on which site it is serving up.  Therefore I need to dynamically generate the context menus for the scheduler.  I have created a method to add these dynamically, but it does not appear to work.  I've searched everywhere and I can't find any examples of anyone building context menus dynamically.  I can't imagine that this wouldn't be supported, so I must be doing something wrong.  Can anyone help me achieve this?

      
       private void buildContextMenu() 
        { 
            rscSchedule.AppointmentContextMenus.Clear(); 
            RadSchedulerContextMenu context = new RadSchedulerContextMenu(); 
            context.ID = "apptContext"; 
            RadMenuItem edit = new RadMenuItem("Open"); 
            edit.Value = "CommandEdit"; 
            context.Items.Add(edit); 
            RadMenuItem sep1 = new RadMenuItem(); 
            sep1.IsSeparator = true; 
            context.Items.Add(sep1); 
            IQueryable<AppointmentResourceType> resourceTypes = Appointments.AppointmentResourceTypesGet(MultiSite.SiteIDGet()); 
            foreach (AppointmentResourceType resourceType in resourceTypes) 
            { 
                RadMenuItem menuRType = new RadMenuItem(resourceType.ResourceTypeDesc); 
                IQueryable<AppointmentResourceTypeItem> statusItems = Appointments.AppointmentResourceTypeItemsGet(resourceType.ResourceTypeID); 
                foreach (AppointmentResourceTypeItem statusItem in statusItems) 
                { 
                    RadMenuItem menuStatus = new RadMenuItem(statusItem.ResourceTypeItemDesc); 
                    menuStatus.Value = statusItem.ResourceTypeItemID.ToString(); 
                    menuRType.Items.Add(menuStatus); 
                } 
                context.Items.Add(menuRType); 
            } 
            RadMenuItem sep2 = new RadMenuItem(); 
            sep2.IsSeparator = true; 
            context.Items.Add(sep2); 
            RadMenuItem del = new RadMenuItem("Delete"); 
            del.Value = "CommandDelete"; 
            del.ImageUrl = "~/Presentation/Images/radDelete.gif"; 
            context.Items.Add(del); 
            rscSchedule.AppointmentContextMenus.Add(context); 
        } 

Dimitar Milushev
Telerik team
 answered on 18 Jan 2010
1 answer
159 views

I keep having problems with disappearing line breaks.

For instance, in a empty project with the latest RadEditor in IE8:

In html mode write this:

<p>first line</p>    
<p>second line </p>   

In design you'll get

first line     
    
second line   

Place your cursor on the third line before the word "second" and press enter 3 times for instance.
This will result in this code in html view:

<p>first line</p> 
<p ><br /> 
<br /> 
second line </p> 

If you then switch between design and html view over and over, every time one <br /> will dissapear!

Why is this?!
Rumen
Telerik team
 answered on 18 Jan 2010
1 answer
69 views
Hello,
I have RAD editor webpart in a Sharepoint page. When i tried Spell checker and add the work to dictionary then its giving follwoing error.

"Spell check handler Server error :403 Forbidden"

PLease let me know the issues.
Stanimir
Telerik team
 answered on 18 Jan 2010
1 answer
244 views
Hi There!

            I have binded radcomboBox with some static data (Yellow, Blue, Pink, Green).
So when ever I select some value it should show in the radcomboBox as "Selected Yellow" like that.
The "selected" should not show in the list of Item.

Please help me with this. It is very urgent. Please respond me ASAP.

Thank You,
--Shilpa
Shinu
Top achievements
Rank 2
 answered on 18 Jan 2010
1 answer
154 views
I have a page that is handled entirely by AJAX, and there's an action that I need to perform on the client everytime before hitting the server.  The RadAjaxManager's client-side OnRequestStart event seemed like the perfect place to do this, but what I'm doing is writing to a hidden field and trying to read that hidden field back on the server.  When I take this approach, my value doesn't seem to be available server side.  I put together a quick example that shows this:

<asp:ScriptManager runat="server"> 
</asp:ScriptManager> 
 
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btn"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="hField" /> 
                <telerik:AjaxUpdatedControl ControlID="textbox" /> 
                <telerik:AjaxUpdatedControl ControlID="btn" /> 
                <telerik:AjaxUpdatedControl ControlID="label" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
    <ClientEvents OnRequestStart="requestStart" /> 
</telerik:RadAjaxManager> 
 
<asp:HiddenField ID="hField" runat="server" /> 
<asp:TextBox ID="textbox" runat="server" /> 
<asp:Button ID="btn" runat="server" OnClick="btn_Cick" OnClientClick="btn_ClientClick()" /><br /> 
<asp:Label ID="label" runat="server" /> 
 
<script type="text/javascript"> 
 
    function requestStart(sender, args) { 
        $get('hField').value = $get('textbox').value; 
    } 
 
    function btn_ClientClick() { 
        //$get('hField').value = $get('textbox').value; 
    } 
 
</script> 

And in the codebehind:
protected void btn_Cick(object sender, EventArgs e) 
{ 
    label.Text = hField.Value; 
} 


As this code stands, hField.Value is empty.  If I comment out the contents of requestStart and uncomment btn_ClientClick, I get the results I expect.  Is there something I'm missing, or am I using OnRequestStart in a way that wasn't intended.  Is there another place I can put this (besides calling it from every client event that would cause a postback)?

Thanks,
Jared


Nikolay Rusev
Telerik team
 answered on 18 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?