Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
253 views
Hi Telerik Guys !

I have been  using the RAD MENU for a quite some while in my project.

The problem that I have been facing with RAD MENU is that, Iam not able apply the CSS in order to show the  selected item (CLICKED item)  of the RAD MENU .

All I want to show is a different CSS on the SELECTED ITEM  & other different CSS on the UN-SELECTED ITEM.

I have tried all your DEMO project CSS ut all in vain. I ahvent been able to find the solution.

It would be great if you guys please help me to solve the issue.

Below is the SCREEN-SHOT for which I need a CSS

Please help me !!!

Ajay Jamwal
Yana
Telerik team
 answered on 23 Nov 2009
2 answers
88 views
 Hello,

I am experiencing a problem with Scheduler when trying to set DayStartTime property with Web Service binding.

For example when I set  DayStartTime="00:00:00"  WorkDayStartTime="00:00:00"

        <telerik:RadScheduler runat="server" ID="RadScheduler1"      
            Skin="Sunset"      
            SelectedView="DayView"      
            SelectedDate="2009-11-18"      
            ShowAllDayRow="True"      
            DayStartTime="00:00:00"      
            DayEndTime="00:00:00"      
            WorkDayStartTime="00:00:00"      
            WorkDayEndTime="00:00:00" >    
            <WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />    
        </telerik:RadScheduler>       
 

on page load the Scheduler display the start time at 00:00:00 but less than half a second after (when the web service is returning the appointments), its appearance changes and the start time displayed is 8:00:00 AM.

I used the simple Web Service binding example available there : http://www.telerik.com/help/aspnet-ajax/webservicebinding-binding.html

Any ideas would be appreciated

 

 

Mike Taylor
Top achievements
Rank 1
 answered on 23 Nov 2009
3 answers
118 views
I need to restrict input in the combobox so that it only allows the numbers 0-9 and the backspace key.  I have tried the code here and here.  The code works in IE, but not in Firefox 3.5.

<telerik:RadComboBox ID="RadComboBox1" runat="server"  
    EnableLoadOnDemand="true"  
    AllowCustomText="true"  
    AutoPostBack="true"  
    OnItemsRequested="RadComboBox1_ItemsRequested" 
    OnTextChanged="RadComboBox1_TextChanged"  
    HighlightTemplatedItems="true" > 
    <ItemTemplate> 
        <div><%#DataBinder.Eval(Container, "Text") %></div> 
        <div><%#DataBinder.Eval(Container, "Attributes['Name']")%></div> 
        <div><%#DataBinder.Eval(Container, "Attributes['Number']")%></div> 
    </ItemTemplate> 
</telerik:RadComboBox> 

        function pageLoad() {             
            var combo = $find("<%= RadComboBox1.ClientID %>"); 
            var input = combo.get_inputDomElement(); 
            input.onkeydown = ComboBoxKeyDownHandler; 
        } 
 
        function ComboBoxKeyDownHandler(e) 
        { 
           if (!e) 
               e = window.event; 
                
           var code = e.keyCode; 
 
           //only allow 0 through 9 or backspace to be entered 
           if (!((code >= 48 && code <= 57) || (code == 8))) 
           { 
               e.returnValue = false; 
               if (e.preventDefault) 
               { 
                   e.preventDefault(); 
               } 
           } 
        }  

Simon
Telerik team
 answered on 23 Nov 2009
1 answer
79 views
Hello, I'm newbie in Telerik Controls.

I downloaded trial version, installed it and all seems ok.  I launch  "RadControls for  ASP.NET AJAX Q3 2009 Live Examples" and I can see the page. 
My problems come now: I try to open "Open Sample Web Site in Visual Studio". Project opens ok, no errors messages but when I try to build, computer sworks for a long time (aprox. 30m)  with no result and no message during this time. Finally this message appears: "Exception HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)).

If I open any page (ex: in "Menu" folder"->"Examples"->"ImageOnly"-> "DefaultVB.aspx") controls retrieve me a great variety of errors: failed to create designer, system can't find file, ...

I'm working with Visual Studio 2008, RadControls 2009 Q3, Windows XP and 4Gb of RAM.

Any ideas to fix this problems?

Thanks in advance.






Pavlina
Telerik team
 answered on 23 Nov 2009
2 answers
146 views
Hi all,

I am trying to add custom controls to the appointment advanced insert/Update form.

When I double click an empty slot in scheduler the event fires. But when I double click an appointment the event won't fire but the update form is shown.

I need to add custom control to the update form, any suggestions?

Thanks.

Edit : It is working now. Using OnFormCreating event.
Peter
Telerik team
 answered on 23 Nov 2009
1 answer
84 views
hi guys

how can i save change in database?
in sample code :
      List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStatesMyPortal"];

but i wanna save change in data base .when i used this code :
                List<DockState> _currentDockStates = (List<DockState>)ds.Tables[0].Rows[0]["CurrentDockStatesMyPortal"].ToString();

raised this error:
Compiler Error Message: CS0030: Cannot convert type 'string' to 'System.Collections.Generic.List<Telerik.Web.UI.DockState>'


* CurrentDockStatesMyPortal is a field in data base  table.

how can i do that?how can i convert it?

tnx guys



Pero
Telerik team
 answered on 23 Nov 2009
1 answer
151 views
I have a website that I am in the Process of converting from telerik aspnet controls to telerik ajax aspnet controls. Notice I said IN PROCESS, some of the pages still contain the old telerik controls.
Also the website uses one master page, which I have converted completely over to ajax aspnet control.

Now I have one page with a radtoolbar, and a radgrid with filters on certain columns. The filters were working properly when the old telerik aspnet radgrid and radtoolbar controls were on the page. now that I have switched them to ajax aspnet controls, the filter has stopped working, and now when i click on the filter icon i get the following java error.
Message: '_data' is null or not an object  
Line: 8879  
Char: 2  
Code: 0  
URI: http://localhost/NewS/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afa29fa87-3646-4a1f-8f90-45263b4e63e9%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3a4cacbc31%3aed16cbdc%3a58366029%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289  
 
 

here is the aspx page.

<%@ Page Language="VB" MasterPageFile="~/MasterPages/FFE.master" AutoEventWireup="false" CodeFile="AdminStoreList.aspx.vb" Inherits="AdminStoreList" title="FFE - StoreList" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server">  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="grdStores">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grdStores" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
   
<table width="100%">  
        <tr width="100%">  
        <td width="60%" style="height: 58px">  
            <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Italic="True" Font-Names="Arial" 
                Font-Size="20px" ForeColor="#EE2E24" Height="20px" Width=99% Text="Store List"></asp:Label> 
        </td> 
        <td width="40%" style="height: 58px">  
            <telerik:RadToolbar ID="RadToolbar1" runat="server" AutoPostBack="True">  
            <Items> 
                <telerik:RadToolbarButton runat="server" ImageUrl="Images/add_page_green.gif" Text="Add Record" 
                 CausesValidation="False" ToolTip="Add New Store" CommandName="Add"  /> 
                <telerik:RadToolBarSplitButton runat="server"></telerik:RadToolBarSplitButton> 
                <telerik:RadToolbarButton runat="server" ImageUrl="Images/help.gif" Text="Help" 
                    CausesValidation="False" CommandName="Help" /> 
                <telerik:RadToolBarSplitButton runat="server"></telerik:RadToolBarSplitButton> 
                <telerik:RadToolbarButton runat="server" ImageUrl="~/Images/open.gif" 
                    Text="Export" CausesValidation="False" CommandName="Export"  /> 
            </Items> 
            </telerik:RadToolbar> 
        </td> 
        </tr> 
    </table> 
    <telerik:RadGrid ID="grdStores" runat="server" DataSourceID="SQL1_StoreList" Font-Names="Arial" Font-Size="11px" 
     AllowFilteringByColumn="True" AllowSorting="True" GroupingEnabled="False" ShowDesignTimeSmartTagMessage="False" GridLines="None" AllowPaging="True" PageSize="100">  
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SQL1_StoreList"   
        AllowCustomSorting="True" BorderColor="Gray" BorderWidth="0px" GridLines="Both" AllowFilteringByColumn="True">  
            <Columns> 
                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Select" ImageUrl="~/images/pencil1_sm50.gif" 
                    Text="Select" UniqueName="column">  
                </telerik:GridButtonColumn> 
                <telerik:GridBoundColumn DataField="Store Type" HeaderText="Type" SortExpression="Store Type" 
                    UniqueName="Store Type" AllowFiltering="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ID" Visible=False DataType="System.Int32" HeaderText="ID" ReadOnly="True" 
                    SortExpression="ID" UniqueName="ID" AllowFiltering="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Projected Open" DataType="System.DateTime" HeaderText="Projected Open" 
                    SortExpression="Projected Open" UniqueName="Projected Open" AllowFiltering="False">  
                    <ItemStyle Width="40px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Actual Open" DataType="System.DateTime" HeaderText="Actual Open" 
                    SortExpression="Actual Open" UniqueName="Actual Open" AllowFiltering="False">  
                    <ItemStyle Width="40px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"   
                UniqueName="Name" AllowFiltering="true" DataType="System.String" FilterListOptions="VaryByDataType" ShowFilterIcon="true" > 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StoreNbr" HeaderText="StoreNbr" SortExpression="StoreNbr" 
                    UniqueName="StoreNbr" > 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address" 
                    UniqueName="Address" AllowFiltering="False" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" UniqueName="City" > 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Zip" HeaderText="Zip" SortExpression="Zip" UniqueName="Zip" AllowFiltering="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Zone" HeaderText="Zone" SortExpression="Zone" UniqueName="Zone" AllowFiltering="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Dist" HeaderText="Dist" SortExpression="Dist" UniqueName="Dist" > 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Dead Deal" DataType="System.DateTime" HeaderText="Dead Deal" 
                    SortExpression="Dead Deal" UniqueName="Dead Deal" AllowFiltering="False" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Builder" HeaderText="Builder" SortExpression="Builder" 
                    UniqueName="Builder" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="SqFt" DataType="System.Int32" HeaderText="SqFt" 
                    SortExpression="SqFt" UniqueName="SqFt" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Prelim Plans" DataType="System.DateTime" HeaderText="Prelim Plans" 
                    SortExpression="Prelim Plans" UniqueName="Prelim Plans" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Equip List Rvw" DataType="System.DateTime" HeaderText="Equip List Rvw" 
                    SortExpression="Equip List Rvw" UniqueName="Equip List Rvw" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Final Plan Rvw" DataType="System.DateTime" HeaderText="Final Plan Rvw" 
                    SortExpression="Final Plan Rvw" UniqueName="Final Plan Rvw" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Construction Start" DataType="System.DateTime" HeaderText="Construction Start" 
                    SortExpression="Construction Start" UniqueName="Construction Start" Visible="False">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="RE Coord" HeaderText="RE Coord" SortExpression="RE Coord" 
                    UniqueName="RE Coord" Visible="False">  
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        <AlternatingItemStyle BackColor="#E0E0E0" /> 
        <ExportSettings ExportOnlyData="True" FileName="NewS_StoresExport" IgnorePaging="True" 
            OpenInNewWindow="True" /> 
    </telerik:RadGrid> 
     
    <asp:SqlDataSource ID="SQL1_StoreList" runat="server" ConnectionString="<%$ ConnectionStrings:cnFFE %>" 
        SelectCommand="spSEL_StoreList" SelectCommandType="StoredProcedure">  
        <SelectParameters> 
            <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" /> 
            <asp:SessionParameter DefaultValue="*" Name="prmZone" SessionField="JDAZone" Type="String" /> 
            <asp:SessionParameter DefaultValue="*" Name="prmDist" SessionField="JDADist" Type="String" /> 
        </SelectParameters> 
    </asp:SqlDataSource> 
</asp:Content> 
 
 
Sebastian
Telerik team
 answered on 23 Nov 2009
1 answer
119 views
Hi,

I am currently using the radwindow as a means of user input.  I have a Java function that will open a different dialog (seperate aspx page) depending on which tab a user is on. 

    function openWin() {  
            var returned = getSelectedTab();  
              
                if (returned == 0) {  
                    
                    var partreturned = getSelectedPartSubTab()  
                    if (partreturned == 0)  
                     {  
                     var oWnd = radopen("./Query/PartRevDialog.aspx", "RadWindow1");  
                     }  
                     else if (partreturned == 1)  
                     {  
                     var oWnd = radopen("./Query/PartCatDialog.aspx", "RadWindow1");                       
                     }  
                  }  
                else if (returned == 1) {  
 
                if (partreturned == 0) {  
                    var oWnd = radopen("./Query/DocTitleDialog.aspx", "RadWindow1");  
                }  
                else if (partreturned == 1) {  
                    var oWnd = radopen("./Query/DocRevDialog.aspx", "RadWindow1");  
                }  
                  }  
              } 


This works perfectly and the correct query dialog is opened.  What i would like to do however is have a function that can onclientclose rebind a specific radgrid.

I can hard code the radgrid (as below:)

 function RefreshGridPartRev() {  
                  var masterTable = $find("<%=RadGridPartRev.ClientID %>").get_masterTableView();  
                  masterTable.rebind();  
              } 

This fires on clientclose of the radwindow and will rebind the grid "RadGridPartRev".  I would like to change this grid depending on which ASPX window the user has been on.  Is there a way to do this or will have to resort to determining which tab the user is on?  


Cheers,

James

Georgi Tunev
Telerik team
 answered on 23 Nov 2009
1 answer
139 views
Hello there,

We are using RadDock controls to build a web portal as an extension to our already existing website.

When a user logs in to the portal for the first time, he is presented with a default layout which is stored and generated from the database.

There are 2 zones on the page (namely left and right) and the user is able to move the raddock controls vertically within these zones. Once he has finished this, he clicks on a "Save layout" button which generates a string (this string is in RadDock recognised format) containing all the RadDocks on a page, their positions and indices. This string is then saved to the database along with the User's ID.

The user logs out and returns some time in the future. The system (our "Load Layout" functionality) checks to see if a layout attached to that user exists before presenting the default layout. If a layout exists, the page is generated according to that layout else it is presented in the default layout.

All this is fine and working according to our requirements. However, If the user moves to another section of the same website, the layout is lost.

I have tried the DockPositionChanged event and realised that it requires an autopostback to function properly. This is against the guidelines of our "User experience" as it would involve too many postbacks. I have also found out that the page unload event is not the correct place to do this kind of an job.

Both of the above were server side scripts. I have found out about the OnClientDockPositionChanged and I believe this may be able to meet our requirements. However, I was wondering if I could get any specific references to the Client side (javascript) script involved in generating the string containing information of all docks on the page. In simple words, a javascript version of the 'GetRegisteredDocksState' and its implementation, as shown in the 'SaveLayout' demo.

Thanks in advance.

Noel
Pero
Telerik team
 answered on 23 Nov 2009
4 answers
484 views
hi

I got this error http://localhost/webiste/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&co

But when i refresh it, it works fine.

I also notice that the Telerik.Web.UI.WebResource.axd was not loaded when the page was intially called, but when i refesh it using F5 key, i noticed that the status bar show the loading of the Telerik.Web.UI.WebResource.axd file.

Am using IIS 6

How can i make sure that it load well? Thanks
T. Tsonev
Telerik team
 answered on 23 Nov 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?