Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
56 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
120 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
113 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
139 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
100 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
104 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
149 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
83 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
121 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
0 answers
93 views
when i trying to resize an appontment after post back, its not working... by default, page loading we can drag or resize the appointment. but after post back resize not working well... 
this issue occurred in google chrome browser only i think. and i'm using version 15.0.874.106 m....

shinu rag
Top achievements
Rank 1
 asked on 28 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?