Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
108 views
Hi,

Please  find an attachment of "NavonaThemeSolutionExplorer.png".

I have created Two CSS for RadMenu inside "Navona" Theme named as "ViewMenu" & "FavoriteMenu". and also created one Navona Skin File named as "NavonaSKIN" .

Navona Skin Code Block:
<telerik:RadMenu SkinID="FavoriteMenu" runat="server" Skin="Navona" EnableEmbeddedSkins="false" EnableAutoScroll="true" EnableRootItemScroll="true">
</telerik:RadMenu>
 
<telerik:RadMenu SkinID="ViewMenu" runat="server" Skin="Navona" EnableEmbeddedSkins="false">
</telerik:RadMenu>

HTML Code Block :

  View Menu HTML Code:
 
   <div id="pnlview" runat="server" style="float: left; display: none; margin-left: 15px;
            margin-top: 5px;">
            <telerik:RadMenu ID="_542A5540_223E_491C_8EA9_507CF025693A" Style="z-index: 10000"
                SkinID="ViewMenu" Height="20" runat="server" OnItemClick="rmViews_ItemClick">
                <Items>
                    <telerik:RadMenuItem Text="Views" ImageUrl="../../ProjectResources/Images/View.png"
                     PostBack="False">
                        <Items>
                            <telerik:RadMenuItem Text="System View">
                                <Items>
                                    <telerik:RadMenuItem Text="Active View" />
                                    <telerik:RadMenuItem Text="InActive View" />
                                    <telerik:RadMenuItem Text="Deleted View" />
                                </Items>
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Custom View">
                                <Items>
                                    <telerik:RadMenuItem Text="All Record View" />
                                    <telerik:RadMenuItem Text="My View View" />
                                    <telerik:RadMenuItem Text="My Cutom View" />
                                </Items>
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </div>
 
Favorite Menu HTML Code:
 
<div id="pnlFavorites" runat="server" style="width: 100%; display: none; clear: both;">
        <telerik:RadMenu ID="_5C90215B_8BB8_415C_BEA9_83F2ACB7A4FB" runat="server" SkinID="FavoriteMenu"
            Width="100%" Style="z-index: 2900" EnableRoundedCorners="true" EnableShadows="true"
            EnableScreenBoundaryDetection="true">
            <Items>
                <telerik:RadMenuItem Text="Active View">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="All">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 1">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 2">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 3">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 4">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 5">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 6">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 8">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 9">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 10">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 11">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 12">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 13">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 14">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 15">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 16">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 17">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 18">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 19">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="My Custom View 20">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
    </div>


Web Config Code :

<pages theme="Navona" validateRequest="false"
   <controls>
     <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
   </controls>
</pages>


Problem : it will mixed up both css for Rad Menu control. instead of that if i exclude any one css file then it will applied css for rad menu according to the skin id and present css file. Suppose i excude View Menu CSS file then Favorite Menu CSS is applied to the control whose skin id is "FavoriteMenu".



Please let me know solution of this problem. Kindly waiting for your suggestion......

Thanks
Kaushal.
Kaushal
Top achievements
Rank 1
 asked on 28 Feb 2012
4 answers
59 views
Hi, I'm trying to convert from RadControls for .NET to RadControls for Ajax .NET Q3 2010.

For all other components its been easy but for the RadWindow I can't get it to display the actual file.

I'm calling the window from a button click in the codebehind, and it displays the modal background effect but no actual file. 

I've tried paring it right back to basics, taking out a lot of the previously set properties, as well as setting the NavigateURL both in the properties and in the codebehind, and have tried a full URL, eg http://www.google.com to rule out any potential pathing issues but nothing seems to work.

Any ideas?

Thanks

Cheryl
Marin Bratanov
Telerik team
 answered on 28 Feb 2012
2 answers
123 views
Hi guys
I m stuck with an issue where i am trying to apply css to Rad editor control and it is applying the css to the content part.
But when i try to use exporttoPDF() the css is not working on the PDF generated.
This is the sample code :
//For Export to Pdf functionality and applying CSS to Radeditor1
 protected void Button1_Click(object sender, EventArgs e)
        {
         
            StringWriter sw = new StringWriter();
            HtmlTextWriter w = new HtmlTextWriter(sw);
            dvPrintSection.RenderControl(w);
            string s = sw.GetStringBuilder().ToString();

            RadEditor1.CssFiles.Add("Site.css"); // location of my css
            
            RadEditor1.Content = s.Replace("&nbsp", "");

            string aa = RadEditor1.CssFiles[0].Value.ToString();
        }

//i have used Radeditor like below in aspx
<telerik:RadEditor ID="RadEditor1" runat="server"
        ContentFilters="PdfExportFilter, DefaultFilters" Skin="Office2007" >
        <ExportSettings Pdf-PageTopMargin="15px" Pdf-PageLeftMargin="20px"  Pdf-PageRightMargin="20px"
         OpenInNewWindow="true" Pdf-PageHeight="21cm" Pdf-PageWidth="29cm">
<Pdf PageWidth="29cm" PageHeight="21cm" PageTopMargin="15px" PageLeftMargin="20px" PageRightMargin="20px"></Pdf>
        </ExportSettings>
         <Content>
<table class="test" >
<colgroup></col></colgroup>
<tbody>
<tr>
<td>
TEst data to be printed with class applied
</td>
</tr>
         </tbody>
</table>
</Content>
        </telerik:RadEditor>
Rijo
Top achievements
Rank 1
 answered on 28 Feb 2012
3 answers
119 views
Hello


We are storing recurrence rules string in appointment table. Now we need to generate recurrences for the rule stored in appointment table.  We try to create object of recurrence rule with the examples found in your forum by passing the RecurrencePattern  object as in posted code below but it gives an error of having no such constructor. is there any other way to get recurrences for recurrence rule string.

Appointment fitnessAppointment = new Appointment();
fitnessAppointment.Subject = "Fitness";
fitnessAppointment.Start = DateTime.Now;
fitnessAppointment.End = DateTime.Now.AddHours(2);

RecurrencePattern recurrencePattern = new RecurrencePattern();
recurrencePattern.Frequency = RecurrenceFrequency.Weekly;
recurrencePattern.MaxOccurrences = 30;
recurrencePattern.DaysOfWeekMask = RecurrenceDays.Monday | RecurrenceDays.Wednesday | RecurrenceDays.Friday;

RecurrenceRule recurrenceRule = new RecurrenceRule( recurrencePattern );

fitnessAppointment.RecurrenceRule = recurrenceRule;


we are using this code but gives an error that no such constructor is available for this class.



Thanks
Regards
Rahul M
Plamen
Telerik team
 answered on 28 Feb 2012
3 answers
144 views
hello guys how radnotifacation popup alert chrome or firefox

sample :)

Example: Using Internet Explorer to access this site, please 
rdmptn
Top achievements
Rank 1
 answered on 28 Feb 2012
1 answer
105 views
Is it possible to replace the <a> elements inside the ConfirmTemplate (below) for Ok and Cancel with RadButtons ? : 

<a tabindex="0" id="confirmOk" name="confirmOk" onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                    <%= WebResources.SearchInOk %></a>
                    <telerik:RadButton ID="btn1" runat="server" Text="Test" />
                <a tabindex="1" id="confirmCancel" name="confirmCancel" onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                    <%= WebResources.SearchInCancel %></a>
Marin Bratanov
Telerik team
 answered on 28 Feb 2012
3 answers
106 views
Would you guys please consider adding a new property to all controls that have a DBValue or DBSelectedValue property? The new property would be called DefaultValue. Example use case:

We use the FormView control for the View/Insert/Edit of records. We use ObjectDataSource binding to Telerik controls inside the FormView. We pass an object (not fields) between the FormView and the ObjectDataSource. When in the insert mode, some Telerik controls such as RadDatePicker and RadNumericTextBox are bound to the object and set to null. Currently we have to set up a OnDataBinding event to set the default values for each control. It would be extremely helpful if we could just set a new property to the default value in this case.

Edited: I did find that we could set the Value property for a RadNumericTextBox and it would work as a default value on insert; however, other controls like checkbox don't.

Example:

<telerik:RadNumericTextBox ID="numPurchasedPrice" runat="server" Type="Currency"
DataType="System.Decimal" MinValue="0" MaxValue="100"  DefaultValue="0"
        DbValue='<%# Bind("PurchasedPrice") %>' >
</telerik:RadNumericTextBox>
Radoslav
Telerik team
 answered on 28 Feb 2012
1 answer
151 views
Hello,

how do i hide the RadGrid Filter row when the RadGrid is in editmode
Shinu
Top achievements
Rank 2
 answered on 28 Feb 2012
1 answer
87 views
Hi All,

I have a scenario where I have page with telerik grid and a ribbonbar. Some of the cells in grid has two values associated with them. One value is displayed in the cell and other value is hidden. The user will select a cell by clciking on cell of the grid and then click on a button in ribbonbar to launch a popup. The popup will be launched in the context of the cell. My requirement is to identify the cell the user has selected before clicking on the ribbonbar button and pass the hidden value associated with the cell to the popup. Can anyone please share your thoughts on how this can be implemented?

Thanks in advance.

Regards,
Prasad
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Feb 2012
3 answers
123 views
Hi, Actually I am working on a project for Blind ppl (they 'll not use mouse) n
using RadGrid in which a new Row can be added by controls in Footer Template and also all rows of Item Template are editable.
In Item Template I've TextBox, Combo etc. TabOrder works fine for first row(When no row added) but after adding new row data, TabOrder not working for new generated controls. Also Here I 'd like to say I have more than 2 Grids on same page and same situation in both. Does Grid Support TabOrder for inside controls.

Plz help.

Thanks in advance.

Sanjiv Kumar

i.e.

Name                     DOB                            Sex    
abc                        20-Feb-2012                Male                    Remove (LinkButton)
.
.
.

TxtName                dtPicker                        cboGender            Add (PushButton)

Antonio Stoilkov
Telerik team
 answered on 28 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?