Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hello Telerik Team,

 I want to localize the  FastNavigationSettings(Today,OK,Cancel) buttons of 'SelectedDateCalendar' present in the RadScheduler1. I have used the following code to do so inside my Page_Load event everytime:

 

 

 

RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;

 

 

// Set the RadCalendar properties

 

 

 

popupCalendar.CultureInfo = System.Threading.Thread.CurrentThread.CurrentUICulture;

 

popupCalendar.FastNavigationSettings.CancelButtonCaption = GetResourceString(

"Global_Confirm_CancelText");

 

popupCalendar.FastNavigationSettings.TodayButtonCaption = GetResourceString(

"Schedule_CalendarView_Today");

 

popupCalendar.FastNavigationSettings.OkButtonCaption = GetResourceString(

"Global_Confirm_OkText");

 

 

This works the first time user visits the FastNavigationkeys. But when user selects any other date, and again visits the 'SelectedDateCalendar' the FastNavigationkeys are not localized - they appear in English.

Please let me know how to fix this.

Also, to localize the entire RadScheduler, I have used the following code:

 

RadScheduler1.Culture = System.Threading.

Thread.CurrentThread.CurrentUICulture;

Regards,
Abhishek

 

Abhishek Dixit
Top achievements
Rank 1
 answered on 07 Sep 2009
1 answer
191 views
Currently we use Telerik ASP.NET AJAX Controls version 2009.2.701.35 and get an unexpected "SplitterItemsCollection must contain SplitterItem objects" error. We have altready tried to empty the AjaxManager but the problem stays. Can anyone have a quick review of the code?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="BIS ID Content Runner for the Web " %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
    <head id="Head1" runat="server">  
      
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
            <style type="text/css">  
                html, body, form    
                    {    
                    margin:0px;    
                    padding:0px;    
                    height:100%;    
                    background-image: url(Skins/Default/Common/Default_Top.jpg);  
                    background-repeat: repeat-x;  
                    }  
            </style> 
        <link rel="stylesheet" type="text/css" href="/css/bis.css">  
    <script type="text/javascript">  
        var ArchiveShowing = ("<%= myCR.ArchiveShowing %>" == "True");  
        var OriginalShowing = ("<%= myCR.OriginalShowing %>" == "True");  
    </script> 
    <script type="text/javascript">  
        function ShowProfileForm() {  
            window.radopen("/Forms/Profile.aspx", "winProfile");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowInsertForm(id) {  
            window.radopen("/Forms/EditRecord.aspx", "insertForm");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowEditForm(id) {  
            window.radopen("/Forms/EditRecord.aspx?ID=" + id, "editForm");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowHelpForm() {  
            window.radopen("Forms/Help.aspx", "winHelp");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
 
        function ShowAboutForm() {  
            window.radopen("Forms/About.aspx", "winAbout");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
      
        function RefreshGrid() {  
            var masterTable = $find("<%= grMain.ClientID %>").get_masterTableView();  
            masterTable.rebind();  
            }   
    </script>    
    <script type="text/javascript">  
 
        function RowSelected(sender, args) {  
                var toolBar = $find("<%=tbMain.ClientID %>");  
                var grid = $find("grMain");  
                var MasterTable = grid.get_masterTableView();  
                var SelectedRows = MasterTable.get_selectedItems();  
                if (SelectedRows.length > 1) toolBar.findItemByValue("tbWijzig").disable();  
                if (SelectedRows.length < 1) toolBar.findItemByValue("tbWijzig").disable();  
                if (SelectedRows.length == 1) toolBar.findItemByValue("tbWijzig").enable();  
                toolBar.findItemByValue("tbVerwijder").enable();  
                if (SelectedRows.length < 1) toolBar.findItemByValue("tbVerwijder").disable()  
 
                if (ArchiveShowing) {  
 
                    toolBar.findItemByValue("tbNaarArch").disable();  
                    if (SelectedRows.length > 0)  
                        toolBar.findItemByValue("tbNaarOrg").enable();  
                    if (SelectedRows.length < 1)  
                        toolBar.findItemByValue("tbNaarOrg").disable();  
                          
                }  
 
                if (OriginalShowing) {  
 
                    toolBar.findItemByValue("tbNaarOrg").disable();  
                    if (SelectedRows.length > 0)  
                        toolBar.findItemByValue("tbNaarArch").enable();  
                    if (SelectedRows.length < 1)  
                        toolBar.findItemByValue("tbNaarArch").disable();  
                          
                }  
            }           
              
    </script> 
        </telerik:RadCodeBlock>          
      
    </head> 
      
    <body class="BODY">  
        <form id="FormMain" method="post" runat="server">  
        <telerik:RadScriptManager  
            ID="ScriptManager" 
            runat="server"   
            EnableTheming="True">  
        </telerik:RadScriptManager> 
          
        <telerik:RadAjaxManager  
            ID="amMain" 
            runat="server" onajaxrequest="amMain_AjaxRequest">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="amMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="tbMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="LeftPane">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="LeftPane"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="grMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
          
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"></telerik:RadStyleSheetManager> 
                   
                    <asp:SqlDataSource  
                        ID="dsPanelbar" 
                        runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ContentRunner %>"   
                        SelectCommand="SELECT * FROM [q_navbarweb]"   
            onselecting="dsPanelbar_Selecting">  
                    </asp:SqlDataSource> 
              
                    <asp:SqlDataSource  
                        ID="dsGrid" 
                        runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ContentRunner %>"   
                        oninit="dsGrid_Init"   
                        SelectCommand="SELECT * FROM [t_bezoekers]">  
                    </asp:SqlDataSource> 
                              
                <div width="100%"  border="0px" class=workplace>  
                    <telerik:RadToolBar  
                        ID="tbMain" 
                        style="clear:both" 
                        Runat="server" 
                        Width="100%" 
                        BorderStyle="None" 
                        BorderWidth="0px"   
                        onbuttonclick="tbMain_ButtonClick"   
                        Font-Bold="True"   
                        Font-Names="Trebuchet MS" Font-Size="12pt">  
                        <CollapseAnimation  
                            Type="OutQuint" 
                            Duration="200">  
                        </CollapseAnimation> 
                        <Items> 
                            <telerik:RadToolBarButton runat="server" value="tbProfiel"          Text="Hallo, Gebruiker"    CommandName="cmdProfiel"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep1"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNieuw"            Text="Nieuw"               CommandName="cmdNieuw"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbWijzig"           Text="Wijzig"              CommandName="cmdWijzig"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbVerwijder"        Text="Verwijder"           CommandName="cmdVerwijder"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep2"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNaarOrg"          Text="Naar Origineel"      CommandName="cmdNaarOrg"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNaarArch"         Text="Naar Archief"        CommandName="cmdNaarArch"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" IsSeparator="True"         Text="sep3"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbShowOrg"          Text="Toon Orginelen"      CommandName="cmdToonOrg"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbShowArch"         Text="Toon Archief"        CommandName="cmdToonArch"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep4"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbLogUit"           Text="Log uit"             CommandName="cmdLogUit"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbHelp"             Text="Help"                CommandName="cmdHelp"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbAbout"            Text="About"               CommandName="cmdAbout"></telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar><div style="clear:both"><!-- --></div>  
                    </div> 
                    <div class=workplace>  
                <telerik:radsplitter  
                    id="splMain" 
                    runat="server" 
                    height="100%" 
                    width="100%"   
                    Skin="Office2007" 
                    style="clear:both" 
                    HeightOffset="30">  
                    <telerik:radpane  
                        id="LeftPane" 
                        runat="server" 
                        height="100%" 
                        width="212">  
                        <telerik:RadPanelBar  
                            ID="pbMain" 
                            Runat="server" 
                            DataFieldID="ID"   
                            DataFieldParentID="ParentID" 
                            DataSourceID="dsPanelbar" 
                            DataTextField="Text"   
                            onitemdatabound="pbMain_ItemDataBound"   
                            width="100%" 
                            Skin="Outlook"   
                            CookieName="ContentRunnerPanelBar"   
                            ExpandMode="FullExpandedItem"   
                            PersistStateInCookie="True"   
                            CollapseDelay="200" ExpandDelay="200" onitemclick="pbMain_ItemClick">  
                            <CollapseAnimation   
                                Duration="220"   
                                Type="InOutElastic" /> 
                            <ExpandAnimation   
                                Duration="220"   
                                Type="InOutElastic" /> 
                        </telerik:RadPanelBar><div style="clear:both"><!-- --></div>  
                    </telerik:radpane> 
                    <telerik:radsplitbar id="RadSplitBar1" runat="server" style="clear:both"></telerik:radsplitbar> 
                    <telerik:radpane id="MainPane" runat="server" style="clear:both">  
                    <telerik:RadAjaxPanel  
                        BackImageUrl="~/Common/Images/AppMain/AppMainToolbarBackGround.jpg"   
                        style="clear:both" 
                        ID="apMain" 
                        runat="server" 
                        height="32px" 
                        width="100%">  
                          <asp:Panel   
                                ID="Panel3"   
                                runat="server"   
                                Height="33px"   
                                Width="100%"   
                                BackImageUrl="~/Common/Images/AppMain/AppMainToolbarBackGround3.jpg" CssClass="GridAltRow_Outlook">  
                                <asp:Panel   
                                    ID="Panel1"   
                                    runat="server"   
                                    Height="4px"   
                                    Width="100%">  
                                </asp:Panel> 
                                <asp:Label  
                                    ID="lblKop" 
                                    runat="server" 
                                    BorderStyle="None"   
                                    BorderWidth="6px" 
                                    Font-Names="Trebuchet MS" 
                                    Font-Size="Medium"   
                                    Text="&amp;nbsp;&amp;nbsp;::BIS ID Content Runner"></asp:Label> 
                            </asp:Panel> 
                    </telerik:RadAjaxPanel> 
                <telerik:RadGrid  
                    ID="grMain" 
                    runat="server" 
                    AllowFilteringByColumn="True"   
                    AllowPaging="True" 
                    AllowSorting="True"   
                    DataSourceID="dsGrid" 
                    GridLines="None"   
                    Height="99%" 
                    Skin="Outlook" 
                    Width="99%"   
                    onitemcommand="grMain_ItemCommand"   
                    onneeddatasource="grMain_NeedDataSource" 
                    oncolumncreated="grMain_ColumnCreated" 
                    AllowAutomaticDeletes="True" 
                    AllowAutomaticInserts="True" 
                    AllowAutomaticUpdates="True"   
                    AllowCustomPaging="True" 
                    onitemdatabound="grMain_ItemDataBound"   
                    onprerender="grMain_PreRender" 
                    ShowFooter="True" 
                    ShowStatusBar="True" PageSize="100" VirtualItemCount="10"   
                            AllowMultiRowSelection="True"   
                            onselectedindexchanged="grMain_SelectedIndexChanged">  
                    <PagerStyle AlwaysVisible="True" EnableSEOPaging="True" /> 
                <MasterTableView   
                    DataSourceID="dsGrid" 
                    allowcustomsorting="True" 
                                    datakeynames="ID"   
                                    CommandItemDisplay="Top">  
                                    <RowIndicatorColumn Visible="False">  
                                        <HeaderStyle Width="20px" /> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn Resizable="False" Visible="False">  
                                        <HeaderStyle Width="20px" /> 
                                    </ExpandCollapseColumn> 
                                    <CommandItemTemplate> 
                                        <img src="Skins/Outlook/Grid/AddRecord.gif" /><a href="#" onclick="return ShowInsertForm();">Nieuw</a> 
                                        <img src="Skins/Outlook/Grid/AddRecord.gif" /><a href="#" onclick="return RefreshGrid(1);">Ververs tabel</a> 
                                    </CommandItemTemplate> 
                                    <Columns> 
                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> 
                                        <telerik:GridButtonColumn  
                                            ButtonType="LinkButton" 
                                            CommandArgument="{0}"   
                                            CommandName="MyEdit" 
                                            HeaderText="" 
                                            Text="Wijzig" 
                                            UniqueName="colEdit">  
                                        </telerik:GridButtonColumn> 
                                        <telerik:GridButtonColumn  
                                            ButtonType="LinkButton" 
                                            CommandArgument="{0}"   
                                            CommandName="MyDelete" 
                                            ConfirmText="Wilt u deze regel verwijderen?"   
                                            HeaderText="" 
                                            Text="Verwijder" 
                                            UniqueName="colDelete">  
                                        </telerik:GridButtonColumn> 
                                    </Columns> 
                                    <EditFormSettings> 
                                        <PopUpSettings ScrollBars="None" /> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                                <ClientSettings  
                                    allowkeyboardnavigation="True">  
                                    <Selecting AllowRowSelect="True" /> 
                                </ClientSettings> 
                            <FilterMenu EnableTheming="True" Skin="Outlook">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 
                        <br /> 
                    </telerik:radpane> 
                </telerik:radsplitter> 
        <telerik:RadWindowManager   
            ID="wmMain"   
            runat="server"   
            Skin="Default"   
            Height="500px"   
            Left="50px"   
            oninit="wmMain_Init"   
            Top="50px"   
            Width="700px">  
            <Windows> 
                <telerik:RadWindow   
                    ID="winEdit"   
                    runat="server"   
                    Height="500px" 
                    Left="100px" 
                    NavigateUrl="Forms\EditRecord.aspx" 
                    style="display:none;" 
                    Top="100px" 
                    Width="700px" 
                    Modal="True"   
                    Behaviors="Close" BorderWidth="0px">  
                </telerik:RadWindow> 
                  
                <telerik:RadWindow   
                    ID="winProfile"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms\Profile.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="Profile"   
                    Behaviors="Move"   
                    Modal="True"   
                    VisibleStatusbar="False">  
                </telerik:RadWindow> 
                  
                <telerik:RadWindow   
                    ID="winHelp"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms\Help.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="help" 
                    Behaviors="Close" 
                    Modal="True"   
                    VisibleStatusbar="False" Behavior="Close">  
                </telerik:RadWindow> 
 
                <telerik:RadWindow   
                    ID="winAbout"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms/About.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="help" 
                    Behaviors="Close" 
                    Modal="True"   
                    VisibleStatusbar="False" Behavior="Close">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
    </form> 
</body> 
</html> 
Tsvetie
Telerik team
 answered on 07 Sep 2009
1 answer
297 views
Hi,

I have a table with a detail table. Is it possible to remove the table header from the detail tables except from the first detail table? (There are soooooo many table headers on the page...)
 


Shinu
Top achievements
Rank 2
 answered on 07 Sep 2009
0 answers
138 views
I have a database that returns values in the following format

Electronics | Television | HDTV | Samsung
Electronics | Music | MP3 player | Ipod
Electronics | Music | MP3 player | Zune

etc etc

I would like to represent this as a tree structure

Electronics
         -  Television
            --       HDTV  
                      --- Samsung
         - Music
            --  MP3 Player
                    --- Ipod
                    --- Zune

I know the separator will be the '|' character.  Is there a way I can populate the TreeView control directly by reading the above string /s .
Manny Khurana
Top achievements
Rank 1
 asked on 07 Sep 2009
3 answers
244 views
I have an auto-generated grid, which is bound to a data table at run time.  The # of columns varies depending on the data table but we're talking about 30 to 50 columns.

All columns are set to width of 50 pixels (for simplicity at this point).

The grid is scrollable with 3 frozen columns so users can scroll horizontally to see all columns...much like using an Excel worksheet.

The grid renders correctly (IE 7.0).  However, when I scroll quickly to the right (by dragging the scroll bar), the columns that come to view don't render correctly,-- they get narrower, sort of squeezed down to 10 to 20 pixels (arbitrarily).  Consequently, the cell contents start to run together as well and the grid is virtually no good to the users at that point.  I can recover by clicking the browser refresh button, which repopulate and reset the grid to the initial position, with scroll bar parked at the left border.

If I click to the right of the scroll bar to move one "page", I get the same problem.

If I drag the scroll bar slowly and steadily to the right, then it's not a problem...but that won't be acceptable to the users.  They are accustomed to navigating Excel worksheets at high speeds.

I should also point out that scrolling to the left quickly does not have any problems.

Has anyone run into this?  Can anyone offer some advise or suggestions?

Thanks.

Barry
Barry
Top achievements
Rank 1
 answered on 07 Sep 2009
0 answers
47 views
I lost a few hours on this, so I thought I'd alert others....

My RadGrid Updates mysteriously stopped working. I went around in circles until I saw a post that implicated Viewstate.

I went back into my master pages and other files and realized that, in an effort to cut the page bloat, I'd turned off Viewstate in some files. After I restored the viewstate to the default, my update commands (appearing in ItemCommand) started working again.

Hope this helps someone else avoid the frustration.

Ken
kencox
Top achievements
Rank 1
 asked on 06 Sep 2009
1 answer
417 views
I have a radGrid that has a GridClientSelectColumn but I need to be able to dynamically hide/show this based on the data per row. How can I do that. I know how to hide/show the entire column, but that isn't what I want. There are certain rows within the grid that I don't want as selectable (based on the data within the row). So was hoping I could do someting on the grid databound event to do this.

Thanks!
Debbie
Debbie
Top achievements
Rank 1
 answered on 06 Sep 2009
1 answer
70 views
Hi,

When i goto delete record this error is raising why that?

Incorrect syntax near '?'.


this is my grid and datasource
 <telerik:RadGrid ID="RadGrid5" runat="server" AutoGenerateColumns="False"  AllowAutomaticInserts="True"
                                AllowAutomaticUpdates="True" AllowAutomaticDeletes="false"
                                        GridLines="None" DataSourceID="SqlDataSource2" Width="400px"
                                AllowSorting="True" Skin="Web20" >
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="DocNo" CommandItemDisplay="TopAndBottom"
                                 AllowAutomaticDeletes="true" AllowAutomaticInserts="true" >
                                
                                    <Columns>
                                                                             
                                        <telerik:GridBoundColumn DataField="DocNo" HeaderText="Doc No" Visible="false" ReadOnly="true"
                                            UniqueName="DocNo">
                                        </telerik:GridBoundColumn>
                                        
                                      <telerik:GridTemplateColumn UniqueName="IDCcomID" HeaderText="Doc Own AppComment">                                        
                                        <ItemTemplate>                                        
                                         <telerik:RadComboBox runat="server"
                                             ID="RadComp"
                                             DataTextField="DocOwnAppComment"
                                             DataValueField="DocOACID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="220px"
                                             DropDownWidth="420px"
                                                DataSourceID="ContactsDataSource"
                                                SelectedValue='<%#Bind("IDCcomID") %>'></telerik:RadComboBox>                                        
                                        </ItemTemplate>
                                        <EditItemTemplate>                                        
                                        <telerik:RadComboBox runat="server"
                                             ID="RadCompEdit"
                                             DataTextField="DocOwnAppComment"
                                             DataValueField="DocOACID"
                                             HighlightTemplatedItems="true"
                                             Height="190px"
                                             Width="220px"
                                             DropDownWidth="420px"
                                                DataSourceID="ContactsDataSource"
                                                SelectedValue='<%#Bind("IDCcomID") %>'></telerik:RadComboBox>                                                
                                        
                                        </EditItemTemplate>                                        
                                        </telerik:GridTemplateColumn>                                
                                        
                                        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure delete this record?"
                                            Text="Delete" UniqueName="column">
                                        </telerik:GridButtonColumn>
                                       </Columns>
                                    
                                </MasterTableView>
                              </telerik:RadGrid>


 <asp:SqlDataSource ID="SqlDataSource2"
                                    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"
                                    SelectCommand="SELECT DocNo , [IDCcomID] FROM [tbl_DATA_IDCcomment] WHERE (DocNo = @DocNo)"
                                    DeleteCommand= "delete from  tbl_DATA_IDCcomment where DocNo = @DocNo and IDCcomID=?"
                                     runat="server">
                                   
                                  <SelectParameters>                                                                           
                                        <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="DocNo" />
                                    </SelectParameters>
                                     <DeleteParameters>
                                      <asp:Parameter Name="IDCcomID" Type="Int32" />
                                     
                                     </DeleteParameters>  
                                </asp:SqlDataSource>





lakmal
Top achievements
Rank 2
 answered on 06 Sep 2009
4 answers
149 views
  I am using a RadScheduler which defaults in month view and uses only the AdvancedEdit form.  I have customized both the data provider as well as the advanced edit form basing my code off the sample code.  Everything is working fine, however, I am not sure how to ensure that appointment are not scheduled with overlapping resources. 
  Each appointment can have one or more resources of the same type.  I have seen numerous examples where, knowing the start and end times, on a single day, the resources allowed to be selected are filtered, but I don't think that an be done here because users can a) change the start and end dates and b) have the appointment recur.
  My latest attempt was to use GetAppointmentsInRange as suggested in a reply to another post here, which seems to work in some cases.  Unfortunately, it does not work in the case when the appointment is recurring.  That is, the code only checks appointments from the start to the end of the first occurrence and not each of the future ones.  Any guidence would be appreciated.
  Also, please to not point me to the sample labelled Resource Availability unless you can explain how to extend this to using the advanced edit form and recurring events.  Thanks!
CHU Sainte-Justine
Top achievements
Rank 1
 answered on 06 Sep 2009
2 answers
150 views
Experiencing some issues with the RadComboBox when enabling LoadOnDemand with a WCF service.  I thought I had implemented something wrong until I went back to the demo pages and have found that this issue is evident on the demo page as well.

To reproduce:
  1. Go to the demo page:  http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx
  2. On any of the combo's click in the combo area and type the letter T
  3. 6 results display -- all the items starting with T
  4. Hit the backspace to remove the T
  5. My expectation is that the full list would now display but instead, only the T's display.
  6. Now type in the letter S
  7. Still the items starting with T display in the dropdown.  My expectataion is that any item in the list starting with S would dislplay

Like I stated, i'm have the same issues within my app and am using version (2009.2.826.35).  Is this an overall bug with the combo?  If so, will this get fixed?
Kerim Suner
Top achievements
Rank 2
 answered on 05 Sep 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?