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

I have a very convoluted problem to try and describe to you all.

I have a RadWindow that is being opened from a User Control using show().

This works just fine. When the window's Save button is clicked a Client side java script function
is called to close the window and pass a parameter.

An OnClientClose function is then called which gets an Ajax Manager and triggers an ajaxRequest
which is handled by the user control.

I have a second situation where I am hosting the same User Control inside another RadWindow.

To get the second level RadWindow to display correctly I have to get the appropriate Window Manager
and call the open function on that window manager, passing the aspx and window name.

This seems to create a separate instance of the RadWindow which I have to programatically configure
with my required attributes, however I cann't wire up the close using add_close because of the stack overflow problem.
I tried the work around you mention in one of your articles. However that doesn't help either.

What I REALLY need is some way of notifying the first level RadWindow that the second level window has closed and it has a parameter being passed to it.  

Re-reading this I wonder if any of this will make sense, but I cann't figure out a solution so I thought I'd try and explain the problem.

TIA
Marin Bratanov
Telerik team
 answered on 28 Feb 2012
0 answers
113 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
62 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
128 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
127 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
153 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
110 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
107 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
154 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
93 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?