Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
360 views
I am trying to setup a radwindow that will act as a modal and also have the background gray out while the window is open. I have edited the window css with the .TelerikModalOverlay property but this is not changing anything. On the page, I have a radwindowmanager with a window and modal="true". I have added the .RadWModalImage and setup a radalert and that works fine but can not get this to work with a standard radwindow. 


Jason Rodman
Top achievements
Rank 1
 answered on 23 Jul 2009
6 answers
300 views

Hi,

I have a grid pagination and I am displaying 25 items per page. If the user scrolls down and moves to the next/previous page, how can I reposition the scrollbar so the first item in the table gets visible? Should the grid do this automatically?

 
<div style="width:100%;height:100%">  
    <telerik:RadGrid  
        ID="RadGrid" 
        runat="server" 
        AllowPaging="true" 
        PageSize="25" 
        Width="100%" 
        Height="100%" 
        style="border:0px;outline:none" 
        > 
        <MasterTableView TableLayout="Auto" ClientDataKeyNames="Id, Icon, IsPrivate">  
            <Columns> 
                <telerik:GridBoundColumn DataField="Icon" HeaderText="" HtmlEncode="false" HeaderStyle-Width="26px"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Name" HeaderText="Food" HtmlEncode="false" HeaderStyle-Width="100%"></telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true">  
            <Selecting AllowRowSelect="true" /> 
            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            <DataBinding Location="Grid.aspx" SelectMethod="Search" FilterParameterType="String" SortParameterType="String"></DataBinding> 
            <ClientEvents OnDataBinding="RadGrid_DataBinding" OnRowClick="RadGrid_RowClick" OnRowDblClick="RadGrid_RowDblClick" OnDataBound="RadGrid_DataBound" /> 
        </ClientSettings> 
        <PagerStyle Mode="Slider" /> 
    </telerik:RadGrid> 
</div> 
 


Thanks.

 

 

Teodorico
Top achievements
Rank 1
 answered on 22 Jul 2009
2 answers
176 views

Hi,

I have a Repeater inside a FormView in my page.I am creating a RadComboBox control programmatically and adding it to the Repeater.

protected

 

void DynamicFieldsRepeater_PreRender(object sender, EventArgs e)

 

{

      Repeater

 

repeater = (Repeater)sender;

 

      RadComboBox

 

comboBox = new RadComboBox();

 

      comboBox.ID =

"combo";

 

      comboBox.DataSourceID =

"ObjectDataSource2";

 

 

 

      comboBox.DataTextField =

"Name";

 

 

 

      comboBox.DataValueField =

"Id";

 

 

 

      repeater.Controls.Add(comboBox);

 

 

    //DropDownList d = new DropDownList();

 

 

    //d.ID = "dropdown";

 

    //d.DataSourceID =

"ObjectDataSource2";
    //d.DataTextField = "Name";
    //d.DataValueField = "Id";

 

 

 

   // repeater.Controls.Add(dropdown);

 

 

 

}

When I run the page I get this java script error:
'addEventListener' is null on not an object.

The thing is when I use DropDownList instead of RadComboBox,it works fine without error.
I am able to add RadDatePicker,RadTextBox,RadNumerticTextBox without the error, but not RadComboBox.
I am facing the same error when I use PlaceHolder instead of Repeater and try to add RadComboBox to to the placeholder programmatically.
Just to mention that I tried adding the controls in IntemCreated event of the repeater and the same error happend.

Thanks for your help.
Sima 

Sima Ganji
Top achievements
Rank 1
 answered on 22 Jul 2009
4 answers
139 views
Hi,
I have a page with a radgrid in it. Each time i click in a cell i put a textbox in the cell to edit the value.
The actual value of the cell is set in the textbox by default and after the user click in an other cell the textbox is appending to the new cell and set the new value in the old cell.
The problem is when i try to set the value of the textbox to 0 it always returning "". But i can set the value to 1 or more.

The textbox is using a radinputmanager to get the same property of a numerictextbox. Cause i can't append a radNumericTextBox to a specific cell in the grid. And in client side i use get_targetInput.

Is there anyway to be able to set_value() to 0 by the client side??

Thx and have a nice day!!!!

Guillaume
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
 answered on 22 Jul 2009
2 answers
141 views
Hello

How would i create a master details grid where all of the details table are expanded on page load.

The details tables remain expanded permanently so I would also like to remove the expand/collapse column

thanks
andieje
Top achievements
Rank 1
 answered on 22 Jul 2009
5 answers
186 views
I have a problem with the DayHeaderDateFormat.and the culture settings. I set the culture of the RadScheduler to German (Germany) and the DayHeaderDateFormat to "hh:mm".
But the timeslots still displayed like
12:00 - 01:00 - 02:00
but the timeslots should be displayed like
12:00 - 13:00 - 14:00
like the german culture settings.

Can you help me with this. Thank you

Tommy
Benny
Top achievements
Rank 1
 answered on 22 Jul 2009
3 answers
121 views
hi all,

is it possible to get the calendar in scheduler and then set the properties from code?

thanks
Benjamin
Top achievements
Rank 1
 answered on 22 Jul 2009
0 answers
185 views
Hello,

I have a web application that is written via UserControls and is hosted in SharePoint. We are using the RadControls for ASP.NET AJAX Q2 2009.

The Container User Control (which, as an aside is loaded by a Page.LoadControl(...) ) looks something like this:
__________________________________________________________________________________________
<div style="display: none;">
<!-- This Div is here to ensure that all necessary css Skins are Loaded by telerik in the proper order
in order for them to be rendered properly in IE 7 of all browsers -->
<telerik:RadInputManager ID="LoadDefaultSkinInputManager" runat="server">
<telerik:TextBoxSetting>
<TargetControls>
<telerik:TargetInput ControlID="LoadDefaultSkinInputManTextBox" />
</TargetControls>
</telerik:TextBoxSetting>
</telerik:RadInputManager>
<asp:TextBox ID="LoadDefaultSkinInputManTextBox" runat="server" />
<telerik:RadComboBox ID="LoadSkinComboBox" runat="server" Skin="Office2007">
</telerik:RadComboBox>
<telerik:RadTextBox ID="LoadSkinTextBox" runat="server" Skin="Office2007">
</telerik:RadTextBox>
</div>

<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" EnableAJAX="true">
    <div class="wcss_container" id="WcssContainer" runat="server">
        <asp:PlaceHolder runat="server" ID="ContentTemplatePlaceHolder"></asp:PlaceHolder>
    </div>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel IsSticky="true" ID="ContainerTemplateLoadingPanel" runat="Server">
    <div class="wcss_RadAjaxLoadingPanel">
        <asp:Image ID="ContainerTemplateLoadingPanelImage" runat="server" AlternateText="Loading..."
            Style="" ImageUrl="~/_layouts/images/Epcor/CustomerSelfServe/ajax-loader.gif" />
    </div>
</telerik:RadAjaxLoadingPanel>
__________________________________________________________________________________________

Within the PlaceHolder, another User Control is loaded with various controls, each having a RadMultiPage control, hosting controls with a combination of TextBoxes with RadInputManagers, RadTextBoxes, RadComboBoxes, and RadCalendars.
The div that you see there was added because some of the necessary skin files  (i.e. for RadComboBoxes not in the RadMultiPage) weren't being embedded to the page during the initial load.

We are using the "Office2007" Skin. There is an entry in the web.config for [<add key="Telerik.Skin" value="Office2007"/>].

I had to play with the order of the controls within the hidden div in order to ensure that the scripts were being loaded in the right order, as the order in which the controls were being embedded affected the final styling of the RadInput Controls (especially in IE7).

Without the hidden div, (relying on the RadMultiPage control loading), the order was:
  1. /*Telerik RadInput Default Skin*/
  2. /* RadComboBox Default skin */
  3. /*Telerik RadInput Office2007 Skin*/
  4. .RadToolTip_Default
  5. /*Telerik RadInput Default Skin*/
  6. /* Telerik RadAjaxLoadingPanel Common CSS */

but with the hidden div, the order has chagned to: 
  1. /*Telerik RadInput Office2007 Skin*/
  2. /* RadComboBox Default skin */
  3. /*Telerik RadInput Office2007 Skin*/
  4. .RadToolTip_Office2007
  5. /* Telerik RadAjaxLoadingPanel Common CSS */
  6. /* Telerik RadAjaxLoadingPanel Office2007 Skin */

Having these hidden controls at the very beginning of the page (before any other Radinput Controls), has ensured that the controls will render in all browsers I'm testing in (IE6, 7, 8, FF 2, 3, Safari4, Opera 9).

It would certainly be nice if the RadStyleManager (or whatever the magic control behind the scenes is that controls the ordering / inclusion of the controls) would put them in proper order in future versions.


Developer
Top achievements
Rank 1
 asked on 22 Jul 2009
0 answers
157 views

 

Hi..
i am using teleric tabstrip. In my website i have few pages. When i added the pages to  teleric tabstrip its working fine. But , problem is my first tab is not focusing..i mean mouse over icon is not appearing on my first tab. Other tabs are working fine.

When i am debugging from my tab page i can see that page on my website . when i moved to the other page and trying to access first tab page ..i couldn't do that. i double check my code everything is correct.
Below is my code , I added my pages in tabs, i am using this Menu  user control in master page. Everything works fine, Except first tab is not focusing.. Why?? Give me some idea.
<%@ Control Language="C#"  CodeFile="Menu.ascx.cs" Inherits="UserControls_Menu" %> 
 
<%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="telerik" %> 
 
<script runat="server">  
    protected void rdt1_TabDataBound(Object sender, EventArgs e)  
    {  
        Tab Tab1 = rdt1.FindTabByValue("Home");  
        if (Tab1 != null)  
        {  
            Tab1.DataBind();  
        }  
 
        //Tab Tab1 = rdt1.FindTabByValue("NDIRecords");  
        //if (Tab1 != null)  
        //{  
        //    Tab1.DataBind();  
        //}  
 
 
    }  
 
    //Pre-Select a RadTabStrip Tab  
    public void PreSelectTab(String TabStripText)  
    {  
        Tab Tab1 = rdt1.FindTabByValue(TabStripText);  
        if (Tab1 != null) Tab1.Selected = true;  
        if (Tab1 == null)  
        {  
            Tab Tab2 = rdt1.FindTabByValue("Home");  
            if (Tab2 != null) Tab2.Selected = true;  
        }  
    }  
 
 
 
    //Clear the selection of all RadTabStrip Items  
    public void ClearSelection()  
    {  
        foreach (Tab tab in rdt1.Tabs)  
        {  
            tab.Selected = false;  
        }  
    }   
</script> 
 
 
<table width="100%" border="0" cellpadding="0" cellspacing="0">  
  <tr> 
     <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" style="width: 67px">  
       <img src="../images/Misc/NDI Logo.JPG" alt="Welcome to the CDC NDI Intranet Website." style="cursor:hand; height:53px; width:84px;"   
         visible="false" border="0" onclick="javascript:location.href='../Default.aspx'" /></td>  
          
      <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" > 
            
           <telerik:RadTabStrip ID="rdt1"  runat="server" SelectedIndex="0" Skin="NDI" CausesValidation="false" AutoPostBack="true">  
              
             <Tabs> 
                
              <telerik:Tab  text="Home" id="Home"  Value="Home" tooltip="Home Page" Navigateurl="~/Default.aspx">  
               </telerik:Tab >                                
               <telerik:Tab text="NDIRecords" value="NDIRecords" id="NDIrecords" tooltip="NDIRecords"   
               NavigateUrl="~/Modules/NDIRecords.aspx">  
               </telerik:Tab>   
               <telerik:Tab text="ManualSearch" value="ManualSearch" id="Manualserachrec" tooltip="ManualSearch Records"   
               NavigateUrl="~/Modules/ManualSearchRec.aspx">  
               </telerik:Tab>   
                 
             </Tabs> 
              
           </telerik:RadTabStrip>   
             
        </td>   
          
          
    </tr> 
</table> 

chandu mahi
Top achievements
Rank 1
 asked on 22 Jul 2009
0 answers
123 views
Hello,

Is there a way to reload or refresh a node in the RadTreeView.
I actually want the node to be reloaded when a new child is added.
Any ideas?

Thank you.
sagar
Top achievements
Rank 1
 asked on 22 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?