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

Hi. I'm working with Sitefinity and using there two RadDatePickers. I need to have next action 

1. Select date in the first raddatepicker.

2. Set selected date in the 2-d raddatepicker = 1-t raddatepicker date + 1 day using client side javascript

In IE and Opera it works pretty good ,but in Mozilla have problems. Whenexecuting event _setInputDate raizes validation and no data selected. I have tried to set DateInput-CausesValidation="false" ,but nothing happends with and without this attribute.

Here the code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div> 
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>  
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

<script type="text/javascript">  
function dateSelected(sender, args) {
var datePicker = $find("<%= InprDeparture.ClientID %>");
var date = args._newDate;
datePicker._setInputDate(new Date(date.getYear(), date.getMonth(), date.getDate() + 1));
}  
</script>


</telerik:RadCodeBlock>  

<h5>Arrival</h5>
<telerik:RadDatePicker ID="InprArrival" Style="vertical-align: middle;" Width="160px" MinDate="2006-02-01" runat="server" MaxDate="2099-12-16">
<ClientEvents OnDateSelected="dateSelected" />
</telerik:RadDatePicker>

<h5>Departure</h5>
<telerik:RadDatePicker DateInput-CausesValidation="false" ID="InprDeparture" Style="vertical-align: middle;" Width="160px" MinDate="2006-02-01" runat="server" MaxDate="2099-12-16" >  
</telerik:RadDatePicker>
<telerik:RadCalendar></telerik:RadCalendar>  
</div>
</form>
</body>
</html>

Dimo
Telerik team
 answered on 27 Aug 2009
7 answers
225 views
Hello,

I have the problem that with various browsers, the content of a html page in a RadWindow is displayed completely wrong when this html page contains javascript.
If I try to open directly the html page into these browsers, this one is displayed correctly.

Tested browsers:
  • Internet Explorer 6 & 7: Correct display.
  • Firefox 3 & 3.5: Wrong display.
  • Opera 9.64: Wrong display.

Web Server:
  • IIS 7 (2008)

ASP.NET Components:
  • Telerik ASP.NET AJAX 2009 Q2 (701)

Situation:
Test.aspx: Contains a RadRotator. After clicking on an item on this one, a RadWindow with a html page named Test.html is open.

<telerik:RadWindow ID="BlaControl" runat="server" 
                               ShowContentDuringLoad="false" 
                               ReloadOnShow="true" 
                               VisibleStatusbar="false" 
                               AutoSize="true" 
                               Behaviors="Close"> 
</telerik:RadWindow> 
<telerik:RadCodeBlock ID="BlaScript" runat="server"> 
<script type="text/javascript"> 
function rad_ItemClicked_Handler(sender, args) { 
                var nRadWindow = $find('<%=BlaControl.ClientID%>');                                               
                                 
                nRadWindow.setUrl('Test.html'); 
                nRadWindow.show(); 
            } 
</script> 
</telerik:RadCodeBlock> 

Test.html: The page in the RadWindow
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html lang="fr" xml:lang="fr"> 
<head> 
<title>Test (France)</title> 
</head> 
<body><center> 
 
<script language="JavaScript" type="text/javascript"> 
function Test_Progress(progress) { 
 window.status=progress; // An example of how the progress value can used 
} 
</script> 
 
Coucou4 
</center> 
</body> 
</html> 

And I obtain as result in the RadWindow:
�������4�ON�0��z��j�Te�/�i)� V�$�?ȵ#g�!NƂ#q�ݽ��<��~�����Q�^@A[ �Nj�u��i��<���U|���w 2eB�/�����q�4��L=mr?�{e�lyRw/���ÁߥH��e��~+gǪ�H�X%(`5��J�.��R �R+ ]���1��N���#�T���[R'�����"ǀ݈��t�}T-!�oq?�3�raK+���微�� ��:�1|Д*ՍW� [�����^l+��3(tT G`'�EH�[c:|�K���#mm�=\�;��Kÿ�7�{p� 

Any Idea?

Best regards.
Georgi Tunev
Telerik team
 answered on 27 Aug 2009
5 answers
122 views
Hi,

I'm trying to implement a combobox which should dynamically load and display some data from a xml-file.
In debugger I can see that the data is loaded correctly and is added to the combobox-control via RadComboBox1.Items.Add(...).

But afterwards nothing is displayed in the combobox - the box still remains displaying "Loading..."

The Data I'm expecting is:
"", ""                   (empty Strings)
"data1", "data1"
"data2", "data2"
"data3", "data3"
"data4", "data4"

Here's the code of the combobox-control in my .aspx-file:
<telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="True" EmptyMessage="Choose Data" EnableLoadOnDemand="True" ShowMoreResultsBox="true" 
EnableVirtualScrolling="true" Filter="StartsWith" AutoPostBack="True" DataTextField="Name" DataValueField="Name"> 
</telerik:RadComboBox> 

Here is what is done on the server in my .aspx.vb-file:
Protected Sub RadComboBox1_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs) Handles RadComboBox1.ItemsRequested 
        Dim data As DataTable = GetData(e.Text) 
 
        Dim itemOffset As Integer = e.NumberOfItems 
        Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count) 
        e.EndOfItems = endOffset = data.Rows.Count 
 
        For i As Integer = 0 To data.Rows.Count - 1 
            RadComboBox1.Items.Add(New RadComboBoxItem(data.Rows(i)("Name").ToString(), data.Rows(i)("Name").ToString())) 
        Next 
 
        e.Message = GetStatusMessage(endOffset, data.Rows.Count) 
    End Sub 

Does somebody has an idea or hint on what I'm doing wrong?

Kind regards,
Torben
Torben
Top achievements
Rank 1
 answered on 27 Aug 2009
0 answers
82 views
Hi All,

I am using Telerik RadGrid version 2008.02.0826.35 in my application.
I am facing one problem that if there is no rows in the grid then the Header checkbox of clientselectcolumn is automatically checked.

how can i remove this.

thanks
Nitin


nitin
Top achievements
Rank 1
 asked on 27 Aug 2009
13 answers
179 views
In the documentation, you mentioned that users can use StripFormattingOptions to enforce format stripping.  However, I don't see the option in the sharepoint designer.  Is this option available in RAD Editor for MOSS 2007?
http://www.telerik.com/help/aspnet-ajax/cleaningwordformatting%20.html

Thanks.

Stanimir
Telerik team
 answered on 27 Aug 2009
1 answer
225 views
Hi

In my grid each master table has 2 details tables. Is there anything i can do to control the layout of these detail tables? There is no space between them - they are placed directly on top of each other - and it would be nice to add some space. I have tried adding a title for each detail table using the grid table view caption property but this is aligned centrally and looks odd. Can i change the caption alignment? Are there any other formatting features i might find useful?

thanks
Princy
Top achievements
Rank 2
 answered on 27 Aug 2009
4 answers
206 views
I have the following markup of nested splitters. I'm having an issue with the splitter pane (brPane) which is near the bottom of the markup. The central nested splitter (rsB) should have left and right fixed pane widths and the middle pafe is free. However, even though I set the right hand pane width to 355px, I can't seem to get it that size. It always appears about 185px wide. Anyone know what might be going on?

<telerik:RadSplitter ID="rsTC"   
                                    runat="server"   
                                    Width="100%"   
                                    Height="100%"   
                                    Orientation="Horizontal"   
                                    ResizeWithParentPane="False"   
                                    HeightOffset="0"   
                                    BorderSize="0" 
                                    PanesBorderSize="0" 
                                    VisibleDuringInit="False" 
                                    Skin="Hay" 
                                    SplitBarsSize="5" 
                                    > 
                      
                      
                    <telerik:radpane runat="server" id="supHPane" Scrolling="None" Width="100%" Height="30px">  
 Header 1 Content  
                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="hPane" Scrolling="None" Width="100%" Height="114px" > 
                        Header 2 Content                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="spacerPane1" Scrolling="None" Width="100%" Height="2px" CssClass="ThreeColumnSpacer_Horizontal"></telerik:radpane> 
                    <telerik:radpane runat="server" id="shPane" Scrolling="None" Width="100%" Height="40px" CssClass="ThreeColumnSubHeader">  
                        Header 3 content                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="bPane" Scrolling="None" Width="100%" Height="100%" CssClass="WebsiteContentItem">  
                            <telerik:RadSplitter ID="rsB"   
                                    runat="server"   
                                    Width="100%"   
                                    Height="100%"   
                                    Orientation="Vertical"   
                                    ResizeWithParentPane="True"   
                                    HeightOffset="140"   
                                    BorderSize="0" 
                                    PanesBorderSize="0" 
                                    VisibleDuringInit="False" 
                                    Skin="Hay" 
                                    SplitBarsSize="5">  
                                <telerik:radpane runat="server" id="blPane" Scrolling="None" Width="205px" Height="100%" CssClass="ThreeColumnLeftContent">  
                                    Left column content                                
                                </
telerik:radpane> 
                               
                                <telerik:radpane runat="server" id="lspaceFrame" Scrolling="None" Height="100%" Width="2px" CssClass="ThreeColumnLeftSpacer"></telerik:radpane> 
                                <telerik:radpane runat="server" id="bcPane" Scrolling="None" Width="100%" Height="100%">  
                                    Center Column Content        
                                </telerik:radpane>   
                                <telerik:radpane runat="server" id="brPane" Scrolling="None" Width="355px" Height="100%" BackColor="Green">  
                                    Right Column COntent 
                                </telerik:radpane>     
                            </telerik:RadSplitter>   
                    </telerik:radpane> 
                    <telerik:radpane runat="server" id="fspaceFrame" Scrolling="None" Width="100%" Height="4px" CssClass="ThreeColumnSpacer_Horizontal"></telerik:radpane> 
                    <telerik:radpane runat="server" id="fPane" Scrolling="None" Width="100%" Height="25px">  
                         Footer content  
                    </telerik:radpane> 
                </telerik:RadSplitter> 
Svetlina Anati
Telerik team
 answered on 27 Aug 2009
1 answer
152 views
I was looking for changing or highlighting the selected tab and found some css classes which provides info on how to highlight the tab by changing the color of the text content of the tab, but not both...
How can we change the background color of the selected tabs, together with the tex color of the tab...
Please suggest, its an urgent requirement..

Shinu
Top achievements
Rank 2
 answered on 27 Aug 2009
4 answers
189 views
Hi,

I am using radgrid. I have three dropdownlists - dd1,dd2,dd3 and a button. I need to choose a data from dd1. Upon the choice my dd2 will get loaded and after choosing a data from dd2, my dd3 will be loaded. After selecting value from dd3, i will click on the button to generate data in the grid.

Sorting, paging, filtering everything works fine without any problem.

I have generated records on the grid. I click on the header for sorting. It gets sorted. When it is in the sorted state, if I select another data from dd1 and then dd2, then dd3 and click on the button, I am getting error stating "customer name not found in data set...". The new data in dataset doesnt have customer name. My previous dataset has column customer name and it is searching for the same columns. I think that is the problem. Retaining old dataset values after sorting or filtering or paging. The moment I reset the sort condition (by clicking on small arrow near column name header) and do these operations, i dont get any error.

How to resolve this?

Thanks
Saranya
Saranya
Top achievements
Rank 2
 answered on 27 Aug 2009
5 answers
198 views
I select a row in grid and page is scrolled to top. why?
Mojtaba
Top achievements
Rank 1
 answered on 27 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?