Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
79 views
Hello,

I have issue with RadEditor in Opera browser. When I press 'enter' button in Design mode and then switch to HTML and again back to Design, new line is lost. The same is when I do the above and press e.g. Save button (RadEditor inside FormView bound to some db field), new line is lost.

This can be easily reproduced here:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

press enter with cursor placed after 'tons of features:'
switch to HTML and back to design

I tried it with Opera 10.53 and RadControls Q1 2010

I also tried to switch NewLineBr=true/false but no success.
Is there any workaround for this?

Thanks,
Robert
Robert
Top achievements
Rank 2
 answered on 01 Jun 2010
4 answers
362 views
Hello,

I use a RadCalendar. My problem is the following : when the user select a day, I want to deselect all the selected days and select all the week.
So, I use the following parameters : 

UseColumnHeadersAsSelectors

="false" EnableViewSelector="false" UseRowHeadersAsSelectors="true"

For the unselection, it's not a problem, I use the methods unselectedDates and get_selectedDates (for the events OnDateClickand OnRowHeaderClick).

But I don't think a easy to select all the week :
I have 2 ideas to do that :
- Obtains the row (args.get_renderDay().DayRow) and call the method used for a row header click, but I don't see how to call it.
- create a new Date javascript object based on the triplet returned by args.get_renderDay().get_date() and, using the getDay method, manually compute the day for the monday, the tuesday... But I think this way is not the best to do that. 
What's the good solution ?

Thank you in advance,

Christophe.
Maria Ilieva
Telerik team
 answered on 01 Jun 2010
6 answers
182 views
I have noticed a problem with the date picker where it highlights extra dates sporadically between activation and date selection.  It's almost like the calendar hover style gets stuck on sometimes.

You should be able to reproduce the problem even on the Telerik demo for this control at the following link:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

Just click the button and select a date multiple times.  I'm not sure precisely what is triggering it because it doesn't happen all the time.  I've attached an image with the problem.

Thanks,
Dave



Maria Ilieva
Telerik team
 answered on 01 Jun 2010
1 answer
158 views
Hi,

I am having a page which displays user agreements(pdf format). I use 'embed' tag for this. 
<embed id="embAgreement" runat="server" Width="625" Height="400"></embed>

I need to display an alert window above this based on some conditions. But my window tilebar and border is not visible when it is displayed above this embed tag object. The model behaviour is also not working properly.

I tried even specifying VisibleTitlebar="true" property and Overlay="true" explicitly. But it also didnt help me out.

 I am using Telerik version Q2 2009. But in other places the rad window behaves as expected.

If anybody knows how to solve this issue please help me.

Thanks in advance

 

 

 

 

 

Fiko
Telerik team
 answered on 01 Jun 2010
2 answers
169 views
Hello,

I am trying to figure out why the upload and delete buttons appear disabled(greyed out) on my FileExplorer. I am using a custom file content provider.I have set up the upload and delete paths in the code behind. I have also enabled the viewstate. Can someone please advise as to what else needs to be set for the buttons to be enabled.

Thanks.
Fiko
Telerik team
 answered on 01 Jun 2010
4 answers
124 views
Hi,

Does anyone know how to label the X, Y axis in the chart ? What I want to achieve is to have a line graph with X and Y axis label as below.

Y
|
|
|
|_________________ X

My dll version is 2009.3.1314.35

Thanks,
Ves
Telerik team
 answered on 01 Jun 2010
1 answer
65 views
Hi,

I want to create a new item in grid context menu and want to get selected item url same as OnClientItemSelected event.

Could you please help me ?
Fiko
Telerik team
 answered on 01 Jun 2010
2 answers
149 views
Hi there,

I have parent grid and a detailstable.  The parent has inline edit.  When I click on row 1, it goes into edit mode correctly.  Now I click to expand row 5.  Row 5 expands correctly but row 1 is still in edit mode.  Clicking inside the expanded grid causes a "can't load viewstate."  This happens to insert as well.

Using RadGrid1.MasterTableView.ClearEditItems() has no effect nor does item.edit=false

When I expand any row, I would like edit/insert on the parent grid to close.

Thanks for any assistance.
Khanh
Khanh
Top achievements
Rank 1
 answered on 01 Jun 2010
1 answer
107 views
So, I have replaced the RichHtmlField with RadHtmlField in my pages. I want the RadHtmlField to be as similar to my old field as possible, i.e. follow the same styles etc. My first problem is that I get the wrong style when editing. However, after saving the content and looking at it out of editing view, it looks ok. I found information (http://blogs.salmanghani.info/?tag=telerik-radeditor) that I needed to include the property CssFiles in ConfigFile.xml and point to my custom css. This has no effect whatsoever, what to do?

Also, in my old RichHtmlField I have a number of predefined styles the user can choose from. I guess this corresponds to the Apply Css Class dropdown? I followed the instructions on this link (http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html), but again, nothing happens. All I ever see in the dropdown is "Clear Class".

Thanks in advance,
Helena
Stanimir
Telerik team
 answered on 01 Jun 2010
2 answers
112 views

Hello,

I have the following FilterTemplate in my grid:

<FilterTemplate> 
    From  
    <telerik:RadMaskedTextBox ID="txtWorkMonthFrom" runat="server" Mask="##/####" Skin="WebBlue" Width="80px" CssClass="CenterText" ClientEvents-OnValueChanged="WorkMonthFromSelected" /> 
    to  
    <telerik:RadMaskedTextBox ID="txtWorkMonthTo" runat="server" Mask="##/####" Skin="WebBlue" Width="80px" CssClass="CenterText" ClientEvents-OnValueChanged="WorkMonthToSelected" /> 
    <telerik:RadScriptBlock ID="rsbWorkMonth" runat="server">  
        <script type="text/javascript">  
            function WorkMonthFromSelected(sender, args) {  
                var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");  
                var ToDate = $find('<%# TryCast(Container, GridItem).FindControl("txtWorkMonthTo").ClientID %>');  
 
                var fromDate = FormatWorkMonth(sender);  
                var toDate = FormatWorkMonth(ToDate);  
 
                if (toDate.indexOf("_") >= 0) {  
                    if (fromDate.indexOf("_") >= 0) {  
                        tableView.filter.clear;  
                    }  
                    else {  
                        tableView.filter("WorkMonth", fromDate, "GreaterThanOrEqualTo");  
                    }  
                }  
                else {  
                    if (fromDate.indexOf("_") >= 0) {  
                        tableView.filter("WorkMonth", toDate, "LessThanOrEqualTo");  
                    }  
                    else {  
                        tableView.filter("WorkMonth", fromDate + " " + toDate, "Between");  
                    }   
                }  
            }  
            function WorkMonthToSelected(sender, args) {  
                var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");  
                var FromDate = $find('<%# TryCast(Container, GridItem).FindControl("txtWorkMonthFrom").ClientID %>');  
 
                var fromDate = FormatWorkMonth(FromDate);  
                var toDate = FormatWorkMonth(sender);  
 
                if (toDate.indexOf("_") >= 0) {  
                    if (fromDate.indexOf("_") >= 0) {  
                        tableView.filter.clear;  
                    }  
                    else {  
                        tableView.filter("WorkMonth", fromDate, "GreaterThanOrEqualTo");  
                    }  
                }  
                else {  
                    if (fromDate.indexOf("_") >= 0) {  
                        tableView.filter("WorkMonth", toDate, "LessThanOrEqualTo");  
                    }  
                    else {  
                        tableView.filter("WorkMonth", fromDate + " " + toDate, "Between");  
                    }  
                }  
            }  
            function FormatWorkMonth(picker) {  
                var date = picker._projectedValue;    
                return date;  
            }  
                                                                                                      
        </script> 
    </telerik:RadScriptBlock> 
</FilterTemplate> 

I modeled this off of the example at http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx.

The difference is that I want to use the radMaskedTextBox for my date fields instead of the radDatePicker control.

When I enter a date into the "From" or "To" date, the grid filters properly.  The problem is that once the grid refreshes, the dates disappears.  So, I can never actually filter with From and To dates at the same time, because as soon as I enter a From date, the grid filters on the From date and then the date disappears.  If I subsequently put a date into the To field, the grid will filter from a null date to the To date (because the From date is no longer there).  Once the grid filters properly using my To date, then it disappears as well.

How can I get my dates to remain in the masked text boxes?

Thanks.

Steve



Iana Tsolova
Telerik team
 answered on 01 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?