Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Hi,
         I can not store the recurrencerule the way telerik default application does. I'm using my custom stored procedure in MyDbSchedulerProvider.cs.  The recurrencerule is the same though with the carriage return stuff like \r\n etc. But, I can't store it in DB the way it is stored by default. Can somebody throw some light on it.

The primary issue is that i could n't edit the series if the recurrencerule is not stored in DB the way telerik stores. Also,I'm struck up because of this. Admins please drop in any suggestion

R/ Michael.
Bottlerocket
Top achievements
Rank 1
 answered on 04 Jul 2009
1 answer
66 views
Hi
how to configure DateTimePicker skin in telerik grid

Plz guide me step by step from the scratch


Regards,
SA
Daniel
Telerik team
 answered on 03 Jul 2009
2 answers
157 views
Is there an equivelent to the ASP.Net toggle button control in Telerik?
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ToggleButton/ToggleButton.aspx

I'm looking for a way to create a "checkbox image". Instead of a standard checkbox, I have created 2 images of "checked or unchecked".  So when they click the "OK" button, I need to know if the checked image is visible or not (checked or unchecked).
Much like a star rating you sometimes see. Can I use the ASP.Net ajax controls in my application if I am using .Net 3.5 and the latest telerik controls? Any ideas anyone?
Thanks!
GDPR_erased
Top achievements
Rank 1
 answered on 03 Jul 2009
10 answers
353 views
Hi All,

I need a RadNumeric TextBox ,which will accept only full number like 0,1,2....  .It won't accept negative number , decimal point ..
How do i customize this behavior.

Also i want to apply validation similar to RadDateInput ,shown in this demo
http://demos.telerik.com/aspnet-ajax/Input/Examples/RadDateInput/FirstLook/DefaultCS.aspx

Can anybody help me ASP.

Thanks in Advance.
Eva
Dimo
Telerik team
 answered on 03 Jul 2009
3 answers
176 views
Hi  i couldn't see Horizontal bar in my browser so that i could see only few column details in the browser, it happened only after i applied skin to my grid. I enabled scrolling to my grid too. Should i need to apply or reconfigure style sheets to make scroll bar available.
If so what area i need to work out.

Plz guide me.

<link href="Skins/Gray/Calendar.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/ComboBox.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Input.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Grid.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Menu.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Dock.Gray.css" rel="stylesheet" type="text/css" />
    <link href="Skins/Gray/Widgets.Gray.css" rel="stylesheet" type="text/css" />
      <link href="Skins/Gray/PanelBar.Gray.css" rel="stylesheet" type="text/css" />


<telerik:RadGrid Skin="Gray" Height="600px" EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False"
                AllowPaging="True" AutoGenerateColumns="False" AllowFilteringByColumn="True"
                PageSize="50" AllowSorting="True" ID="RadGrid1" runat="server" OnItemDataBound="RadGrid1_ItemDataBound"
                ShowFooter="True" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand"
                OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
                MasterTableView-NoDetailRecordsText="NO RECORD FOUND..." MasterTableView-NoMasterRecordsText="---NO RECORD FOUND!!!!---"
                GridLines="None">
                <%-- <HeaderStyle CssClass="GridHeader" />--%>
                <ExportSettings IgnorePaging="True" OpenInNewWindow="True">
                    <Pdf AllowCopy="True" PageTitle="PostingNotice Billing Report" Keywords="None" Subject="RadGrid Export"
                        Author="Anonymous" Title="PostingNotice Billing Report" PageHeight="14in" />
                </ExportSettings>
                <GroupingSettings ShowUnGroupButton="True" />
                <ClientSettings AllowDragToGroup="True" />
             
                <HeaderContextMenu Skin="Gray" Height="100px" Width="100px" EnableScreenBoundaryDetection="true" EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False"></HeaderContextMenu>
                <MasterTableView  ShowGroupFooter="True"  EnableHeaderContextMenu="True" AllowMultiColumnSorting="True"
                    CommandItemDisplay="Bottom" NoDetailRecordsText="NO RECORD FOUND..." NoMasterRecordsText="---NO RECORD FOUND!!!!---">
                    <%-- <ItemStyle CssClass="GridRow" />
                    <AlternatingItemStyle CssClass="GridRow" />--%>
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name" FormatString=""
                                    HeaderText=""></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name" FormatString=""
                                    HeaderText=""></telerik:GridGroupByField>
                                <telerik:GridGroupByField FieldName="ProjectID" FieldAlias="ProjectID" FormatString=""
                                    HeaderText=""></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <CommandItemTemplate>
                        <asp:LinkButton Font-Bold="true" ForeColor="blue" ID="btnExport" runat="server" />
                    </CommandItemTemplate>
                    <Columns>
                        <telerik:GridBoundColumn SortExpression="FID" HeaderStyle-Width="50px" AllowFiltering="False"
                            HeaderText="FID" DataField="FID" UniqueName="FID">
                            <%--  <HeaderStyle Width="54px" />--%>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Firm_name" SortExpression="Firm_name" HeaderText="FirmName"
                            HeaderStyle-Width="50px" DataField="Firm_name">
                            <FilterTemplate>
                                <telerik:RadComboBox Skin="Gray" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"
                                    ID="NameComboBox" AutoPostBack="true" Width="100px" runat="server" OnSelectedIndexChanged="NameComboBox_IndexChanged"
                                    OnClientSelectedIndexChanged="NameChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                    <script type="text/javascript">
                                    function NameChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFilter.ClientID%>').value = args.get_item().get_value();

                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="ProjectID" Aggregate="CountDistinct" FooterText="ProjectID:"
                            AllowFiltering="False" HeaderText="ProjectID" DataField="ProjectID" UniqueName="ProjectID">
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="54px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="100px" ItemStyle-Wrap="true" SortExpression="Project_Name"
                            AllowFiltering="False" HeaderText="ProjectName" DataField="Project_Name" UniqueName="Project_Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Date_Created" ItemStyle-Wrap="true"
                            HeaderStyle-Width="150px" DataFormatString="{0:mm/dd/yyyy hh:mm:ss tt}" HeaderText="ProjectDateCreated"
                            DataField="Project_Date_Created" UniqueName="Project_Date_Created">
                            <FilterTemplate>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr style="border-width: 0px;">
                                        <td>
                                            From</td>
                                        <td>
                                            <telerik:RadDateTimePicker ID="FromOrderDatePicker" Skin="Gray" EnableEmbeddedSkins="false"
                                                EnableEmbeddedBaseStylesheet="false" runat="server" AutoPostBack="true" Width="100px"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" AutoPostBackControl="TimeView"
                                                SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                    <tr style="border-width: 0px;">
                                        <td>
                                            To</td>
                                        <td style="width: 80px;">
                                            <telerik:RadDateTimePicker Skin="Gray" EnableEmbeddedSkins="false" Width="100px"
                                                EnableEmbeddedBaseStylesheet="false" ID="ToOrderDatePicker" AutoPostBackControl="TimeView"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" runat="server"
                                                AutoPostBack="true" SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="PS_TimeStamp" AllowFiltering="False" HeaderText="PS_TimeStamp"
                            DataField="PSTimeStamp" UniqueName="PSTimeStamp">
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="83px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="OrgName1" UniqueName="OrgName1" CurrentFilterFunction="Contains"
                            AutoPostBackOnFilter="True" FooterText="OrgName :" Aggregate="CountDistinct"
                            HeaderText="OrgName" ShowFilterIcon="False" DataField="OrgName1">
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="103px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingCode" HeaderText="BillingCode" UniqueName="BillingCode"
                            DataField="BillingCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Skin="Gray" Width="75px" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"
                                    ID="BillCodeComboBox" AutoPostBack="true" runat="server" OnSelectedIndexChanged="BillingCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="BillingCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock5" runat="server">

                                    <script type="text/javascript">
                                    function BillingCodeChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnBillCode.ClientID%>').value = args.get_item().get_Text();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="103px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingInfo_Date_Created" AllowFiltering="False"
                            HeaderText="BillingInfoDateCreated" DataField="BillingInfo_Date_Created" UniqueName="BillingInfo_Date_Created">
                            <HeaderStyle Width="117px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="JurisdictionCode" UniqueName="JurisdictionCode"
                            HeaderText="JurisdictionCode" DataField="JurisdictionCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Width="75px" Skin="Gray" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"
                                    ID="JurisdictionComboBox" AutoPostBack="true" runat="server" OnSelectedIndexChanged="JurisdictionCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="JurisdictionCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock6" runat="server">

                                    <script type="text/javascript">
                                    function JurisdictionCodeChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnJurisdictionCode.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="103px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="FergTechNum" UniqueName="FergTechNum" HeaderText="FergTechNum"
                            DataField="FergTechNum">
                            <FilterTemplate>
                                <telerik:RadComboBox Width="75px" Skin="Gray" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"
                                    ID="FergTechNumComboBox" AutoPostBack="true" runat="server" OnSelectedIndexChanged="FergTechNumComboBox_IndexChanged"
                                    AccessKey="v" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=","
                                    OnClientSelectedIndexChanged="FergTechNumChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock7" runat="server">

                                    <script type="text/javascript">
                                    function FergTechNumChanged(sender,args)
                                    {
                                        //document.getElementById('<%=hdnFergTechNum.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                            <ItemStyle Wrap="True" />
                            <HeaderStyle Width="103px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Quantity" Aggregate="Sum" FooterText="Quantity :"
                            HeaderText="Quantity" DataField="Quantity" UniqueName="Quantity">
                            <FilterTemplate>
                                <table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px;">
                                    <tr style="width: 0px">
                                        <td style="border-width: 0;">
                                            <asp:Label ID="MinLabel" runat="server" Text="$0"></asp:Label>
                                        </td>
                                        <td style="border-width: 0px;" class="InputField">
                                            <telerik:RadSlider Width="75px" runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"
                                                SmallChange="5" ShowDecreaseHandle="false" ShowIncreaseHandle="false" OnClientSlideEnd="QuantityRangeChanged"
                                                OnClientValueChange="ClientValueChange" OnClientSlideStart="ClientSlideStart" />
                                            <div style="clear: both">
                                                <asp:Literal ID="Literal1" runat="server" Text='<%# "Range: $" + StartSlider + " - $" + EndSlider %>' />
                                            </div>
                                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

                                                <script type="text/javascript">
                                        function QuantityRangeChanged(sender,args)
                                         {                                     
                                            var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");                                                                                       
                                            
                                            var startValue = sender.get_selectionStart();
                                            var endValue = sender.get_selectionEnd();
                                                                                
                                            tableView.filter("Quantity", startValue + " " + endValue, "Between");
                                        }
                                        function ClientValueChange(sender, args)
                                        {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        
                                        if (!tooltip.isVisible())
                                        {
                                            var activeHandle = sender.get_activeHandle();
                                            if(!activeHandle) return;
                                                   
                                            tooltip.set_targetControl(activeHandle);
                                            tooltip.show();
                                        }
                                        else
                                        {
                                            tooltip.updateLocation();
                                        }
                                        
                                        tooltip.set_text(args.get_newValue());
                                        }
            
                                    function ClientSlideStart(sender, args)
                                    {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        tooltip.hide();
                                    }           
                                       
                                                </script>

                                            </telerik:RadScriptBlock>
                                        </td>
                                        <td style="border-width: 0px">
                                            <asp:Label ID="MaxLabel" runat="server" Text="$25"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                            <%-- <ItemStyle HorizontalAlign="Left" Wrap="True" />--%>
                            <%--<HeaderStyle Width="103px" />--%>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn ItemStyle-Wrap="true" HeaderStyle-Width="60px" SortExpression="SourceFile" AllowFiltering="False" HeaderText="SourceFile"
                            DataField="SourceFile" UniqueName="SourceFile">
                           
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif" InsertImageUrl="Update.gif"
                            UpdateImageUrl="Update.gif">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False">
                </FilterMenu>
                <SortingSettings EnableSkinSortStyles="False" />
                <HeaderContextMenu EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False">
                </HeaderContextMenu>
            </telerik:RadGrid>

Regards,
Appu
Appu
Top achievements
Rank 1
 answered on 03 Jul 2009
0 answers
69 views
Hi
        I am using radgrid having following codes, when i am applying styles,width,height etc to Grid it works fine in FireFox browser but it the Grid's look and feel is not come good in IE browser. The height and widths are totally varying. I couldnt analyse what is the problwm behind of that.

Plz help me by anlysing the code, whether i made any mistakes or  not and guide me.

<div style="margin-top: 0px; height: 200px; width: 1500px">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <%--<div class="module" style="height: 50px; width: 92%">
                <br />
                <asp:Button ID="btnExport" Width="150px" Text="Export to PDF" runat="server" OnClick="btnExport_Click" />
            </div>--%>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="requestStart"
                OnAjaxSettingCreating="RadAjaxManager1_AjaxSettingCreating">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel2" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <%--<telerik:AjaxSetting AjaxControlID="btnExport">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                            <telerik:AjaxUpdatedControl ControlID="btnExport" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>--%>
                </AjaxSettings>
                <ClientEvents OnRequestStart="requestStart" />
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Height="75px"
                Width="75px" HorizontalAlign="Left" BackgroundPosition="BottomLeft" Direction="LeftToRight">
                <div style="position: absolute; left: 500px; top: 200px">
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                        style="border: 0px;" />
                </div>
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadGrid AllowPaging="true" Height="575px" Width="100%" AutoGenerateColumns="false"
                AllowFilteringByColumn="true" PageSize="50" AllowSorting="true" ID="RadGrid1"
                runat="server" OnItemDataBound="RadGrid1_ItemDataBound" ShowFooter="true" OnPreRender="RadGrid1_PreRender"
                OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
                MasterTableView-NoDetailRecordsText="NO RECORD FOUND..." MasterTableView-NoMasterRecordsText="---NO RECORD FOUND!!!!---">
                <ExportSettings IgnorePaging="True" OpenInNewWindow="True">
                    <Pdf AllowCopy="True" PageTitle="PostingNotice Billing Report" Keywords="None" Subject="RadGrid Export"
                        Author="Anonymous" Title="PostingNotice Billing Report" PageHeight="14in" PageWidth="8.5in" />
                </ExportSettings>
                <SortingSettings EnableSkinSortStyles="false" />
                <MasterTableView TableLayout="Fixed" ShowGroupFooter="true" EnableHeaderContextMenu="true"
                    AllowMultiColumnSorting="true" CommandItemDisplay="bottom" ShowFooter="true">
                    <HeaderStyle Height="20px" />
                    <FilterItemStyle Height="10px" />
                    <ItemStyle Height="20px" />
                    <AlternatingItemStyle Height="20px" />
                    <FooterStyle Font-Bold="true" Font-Size="10px" Font-Names="Arial" />
                    <GroupHeaderItemStyle Font-Bold="true" Font-Size="10px" Font-Names="Arial" />
                    <CommandItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Wrap="false" />
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                                <telerik:GridGroupByField FieldName="ProjectID"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <CommandItemTemplate>
                        <asp:LinkButton Font-Bold="true" ForeColor="blue" ID="btnExport" CommandName="lnkExportPDF"
                            runat="server">ExportPDF</asp:LinkButton>
                    </CommandItemTemplate>
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderStyle-Width="2.33%" SortExpression="FID" AllowFiltering="false"
                            HeaderText="FID" DataField="FID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Firm_name" HeaderStyle-Width="4.5%" ItemStyle-Wrap="true"
                            SortExpression="Firm_name" HeaderText="FirmName" DataField="Firm_name">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="NameComboBox" AutoPostBack="true"
                                    Height="100px" Width="80px" runat="server" OnSelectedIndexChanged="NameComboBox_IndexChanged"
                                    OnClientSelectedIndexChanged="NameChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                    <script type="text/javascript">
                                    function NameChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFilter.ClientID%>').value = args.get_item().get_value();

                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="ProjectID" HeaderStyle-Width="3%" ItemStyle-Wrap="true"
                            Aggregate="CountDistinct" FooterText="ProjID:" AllowFiltering="false" HeaderText="ProjectID"
                            DataField="ProjectID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Name" HeaderStyle-Width="6.67%"
                            ItemStyle-Wrap="true" AllowFiltering="false" HeaderText="ProjectName" DataField="Project_Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Date_Created" HeaderStyle-Width="12.67%"
                            ItemStyle-Wrap="true" DataFormatString="{0:mm/dd/yyyy hh:mm:ss tt}" HeaderText="ProjectDateCreated"
                            DataField="Project_Date_Created">
                            <FilterTemplate>
                                <table border="0">
                                    <tr style="width: 10px;">
                                        <td style="border-width: 0px; width: 5px; font-size: 10px; font-family: Arial;">
                                            From</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker Font-Names="Arial" Font-Size="9px" ID="FromOrderDatePicker"
                                                runat="server" AutoPostBack="true" OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged"
                                                Height="15px" Width="150px" AutoPostBackControl="TimeView" SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                    <tr style="border-width: 0px">
                                        <td style="border-width: 0px; font-size: 10px; font-family: Arial;">
                                            To</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker ID="ToOrderDatePicker" AutoPostBackControl="TimeView"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" Height="15px"
                                                Width="150px" Font-Names="Arial" Font-Size="XX-Small" runat="server" AutoPostBack="true"
                                                SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="PS_TimeStamp" HeaderStyle-Width="6%" ItemStyle-Wrap="true"
                            AllowFiltering="false" HeaderText="PS_TimeStamp" DataField="PSTimeStamp">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="OrgName1" HeaderStyle-Width="5.33%" ItemStyle-Wrap="true"
                            UniqueName="OrgName1" CurrentFilterFunction="contains" AutoPostBackOnFilter="true"
                            FooterText="OrgName :" Aggregate="CountDistinct" HeaderText="OrgName" ShowFilterIcon="false"
                            DataField="OrgName1">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingCode" HeaderStyle-Width="5.33%" ItemStyle-Wrap="true"
                            AllowFiltering="true" HeaderText="BillingCode" UniqueName="BillingCode" DataField="BillingCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="BillCodeComboBox" AutoPostBack="true"
                                    Height="100px" Width="75px" runat="server" OnSelectedIndexChanged="BillingCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="BillingCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock5" runat="server">

                                    <script type="text/javascript">
                                    function BillingCodeChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnBillCode.ClientID%>').value = args.get_item().get_Text();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingInfo_Date_Created" HeaderStyle-Width="4.5%"
                            AllowFiltering="false" HeaderText="BillingInfoDate Created" HeaderStyle-Wrap="true"
                            HeaderStyle-HorizontalAlign="Left" DataField="BillingInfo_Date_Created">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="JurisdictionCode" HeaderStyle-Width="2.67%"
                            ItemStyle-Wrap="true" UniqueName="JurisdictionCode" HeaderStyle-Wrap="true" HeaderText="Jurisdiction Code"
                            DataField="JurisdictionCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="JurisdictionComboBox"
                                    AutoPostBack="true" Width="50px" Height="100px" runat="server" OnSelectedIndexChanged="JurisdictionCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="JurisdictionCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock6" runat="server">

                                    <script type="text/javascript">
                                    function JurisdictionCodeChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnJurisdictionCode.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="FergTechNum" HeaderStyle-Width="4%" ItemStyle-Wrap="true"
                            UniqueName="FergTechNum" HeaderText="FergTechNum" DataField="FergTechNum">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="FergTechNumComboBox"
                                    AutoPostBack="true" Height="100px" Width="75px" runat="server" OnSelectedIndexChanged="FergTechNumComboBox_IndexChanged"
                                    AccessKey="v" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=","
                                    OnClientSelectedIndexChanged="FergTechNumChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock7" runat="server">

                                    <script type="text/javascript">
                                    function FergTechNumChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFergTechNum.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="5%" ItemStyle-Wrap="true" SortExpression="Quantity"
                            Aggregate="Sum" FooterText="Quantity :" ItemStyle-HorizontalAlign="Right" HeaderText="Quantity"
                            DataField="Quantity" UniqueName="Quantity">
                            <FilterTemplate>
                                <table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px;">
                                    <tr style="width: 0px">
                                        <td style="border-width: 0;">
                                            <asp:Label ID="MinLabel" runat="server" Text="$0"></asp:Label>
                                        </td>
                                        <td style="border-width: 0px;">
                                            <telerik:RadSlider runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"
                                                SmallChange="5" ShowDecreaseHandle="false" ShowIncreaseHandle="false" Width="75px"
                                                OnClientSlideEnd="QuantityRangeChanged" OnClientValueChange="ClientValueChange"
                                                OnClientSlideStart="ClientSlideStart" />
                                            <div style="clear: both">
                                                <asp:Literal ID="Literal1" runat="server" Text='<%# "Range: $" + StartSlider + " - $" + EndSlider %>' />
                                            </div>
                                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

                                                <script type="text/javascript">
                                        function QuantityRangeChanged(sender,args)
                                         {                                     
                                            var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");                                                                                       
                                            
                                            var startValue = sender.get_selectionStart();
                                            var endValue = sender.get_selectionEnd();
                                                                                
                                            tableView.filter("Quantity", startValue + " " + endValue, "Between");
                                        }
                                        function ClientValueChange(sender, args)
                                        {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        
                                        if (!tooltip.isVisible())
                                        {
                                            var activeHandle = sender.get_activeHandle();
                                            if(!activeHandle) return;
                                                   
                                            tooltip.set_targetControl(activeHandle);
                                            tooltip.show();
                                        }
                                        else
                                        {
                                            tooltip.updateLocation();
                                        }
                                        
                                        tooltip.set_text(args.get_newValue());
                                        }
            
                                    function ClientSlideStart(sender, args)
                                    {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        tooltip.hide();
                                    }           
                                       
                                                </script>

                                            </telerik:RadScriptBlock>
                                        </td>
                                        <td style="border-width: 0px; padding-left: 0px">
                                            <asp:Label ID="MaxLabel" runat="server" Text="$25"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="SourceFile" HeaderStyle-Width="5%" HeaderStyle-Wrap="true"
                            ItemStyle-Wrap="true" AllowFiltering="false" HeaderText="SourceFile" DataField="SourceFile">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true" />
                <%--<ItemStyle HorizontalAlign="right" />--%>
                <GroupingSettings ShowUnGroupButton="true" />
            </telerik:RadGrid>
            <telerik:RadToolTip ID="RadToolTip1" runat="server" OffsetY="3" Position="TopCenter"
                ShowCallout="false" Height="20px" ShowEvent="fromcode" />
            <asp:HiddenField ID="hdnFilter" runat="server" />
            <asp:HiddenField ID="hdnBillCode" runat="server" />
            <asp:HiddenField ID="hdnJurisdictionCode" runat="server" />
            <asp:HiddenField ID="hdnFergTechNum" runat="server" />
        </div>

regards,
Appu
 
Appu
Top achievements
Rank 1
 asked on 03 Jul 2009
1 answer
181 views
Hi

I am using the excellent RadWindow to display an image selected from a list of press clippings (list view).
In some case there are additional images  associated with the article and I would like to be able to
have 'Next' and 'Back' buttons in the title bar, and then swap the image in the window when they are clicked.

The urls of the images are in a database and the ID is passed as a parameter to the window, so all the info
is available to code behind.

Can you give some ideas on the best way to tackle this, making most use of the funcionality that is already
included?

Thanks a lot!

Clive
Fiko
Telerik team
 answered on 03 Jul 2009
5 answers
167 views
Hi,

why I cant define the OnAjaxUpdate RadToolTipManager method on server-side if I create the control programmatically?

Dim rttm As New RadToolTipManager 
rttm.ID = "rttElement" 
rttm.TargetControls.Add(btnLinkElement.ClientID, "imagebtn"True
rttm.TargetControls.Add(lnkBtnElement.ClientID, "hyplink"True
rttm.HideEvent = ToolTipHideEvent.ManualClose 
rttm.ShowEvent = ToolTipShowEvent.OnClick 
rttm.ShowCallout = True 
'rttm.OnAjaxUpdate="rttm_Update" 
AddHandler rttm.WHERE IS?AddressOf rttm_Update 
 

Thanks.
Svetlina Anati
Telerik team
 answered on 03 Jul 2009
1 answer
109 views
When RadEditor located on second page of RadMultiPage it is broken in firefox. See code below to reproduce the bug.

        <asp:ScriptManager ID="objScriptManager" runat="server" /> 
        <div> 
            <telerik:RadTabStrip ID="objRadTabStrip" runat="server" MultiPageID="objRadMultiPage" 
                Skin="Office2007" SelectedIndex="0"
                <Tabs> 
                    <telerik:RadTab runat="server" Text="First page"
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Second page"
                    </telerik:RadTab>                     
                </Tabs> 
            </telerik:RadTabStrip> 
        </div> 
        <telerik:RadMultiPage ID="objRadMultiPage" runat="server" SelectedIndex="0"
            <telerik:RadPageView ID="objRadPageView" runat="server"
                <br /> 
                Select next page 
                <br /> <br /> 
                <telerik:RadEditor ID="objRadEditorFail" runat="server"  
                Height="280px" Skin="Office2007" 
                    Width="720px">                 
                </telerik:RadEditor> 
                 
                </telerik:RadPageView> 
            <telerik:RadPageView ID="objRadPageView2" runat="server"
             <br /> 
                This is bug!!! 
             <br /> <br /> 
                <telerik:RadEditor ID="RadEditor1" runat="server" Height="280px"  
                    Skin="Office2007" 
                    Width="720px" ForeColor="White" StripFormattingOptions="MSWordNoFonts"
                </telerik:RadEditor> 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 


Also you can see demo video  to see bug.
Rumen
Telerik team
 answered on 03 Jul 2009
2 answers
358 views
I have a very simple table with 3 columns; ID (hidden), Quantity, Amount. The point of the grid is to allow users to add a new row, add values and the keeping adding rows with values. 

I am programatically creating the grid columns specifying the EditItemTemplate of the columns using a class that implements ITemplate as follows:

 
templateColumn = new GridTemplateColumn(); 
templateColumn.EditItemTemplate = new RadNumericTextBoxTemplate("txtQuantity""Quantity"); 
templateColumn.UniqueName = templateColumn.HeaderText = "Quantity"
templateColumn.DataField = "Quantity"
myGrid.MasterTableView.Columns.Add(templateColumn); 

public class RadNumericTextBoxTemplate : TemplateControlDefaults 
    protected RadNumericTextBox textBox; 
    string controlname; 
    string bindingName; 
 
    public RadNumericTextBoxTemplate(string ControlName, string BindingName) 
    { 
        this.controlname = ControlName; 
         
        if (BindingName != string.Empty) 
        { 
            this.bindingName = BindingName; 
        } 
    } 
 
    public override void InstantiateIn(System.Web.UI.Control container) 
    { 
        textBox = new RadNumericTextBox(); 
        textBox.ID = this.controlname; 
        textBox.Skin = defaultTextBoxSkinName; 
        textBox.Width = Unit.Pixel(100); 
 
        container.Controls.Add(textBox); 
        } 
    } 

The rows always need to be in Edit mode, InlIne editing in this case:

protected void myGrid_ItemDataBound(object sender, GridItemEventArgs e)  
{  
    if (e.Item is GridDataItem)  
    {  
        e.Item.Edit = true;  
    }  

How do I make sure that the items are bound to the text boxes? The data source is an IList<myObject> where myObject has the properties to match the columns (ID, Quantity, Amount).

Any help appreciated.
Carl
Top achievements
Rank 1
 answered on 03 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?