This is a migrated thread and some comments may be shown as answers.

RadFilter

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ronak
Top achievements
Rank 1
Ronak asked on 29 Apr 2011, 12:29 PM
Hi,
i am using radfilter for my crystalreport. Now i am not using fieldeditor & listview (it is set display : none becz no need for me) in it , all expression i am adding with sqldatasorce.

(like below)
<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2010.2.929.35, Culture=neutral, PublicKeyToken="5689dfr78165798545"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>



<telerik:RadFilter ID="RadFilter3" runat="server"  
            FilterContainerID="RadListView2"  ExpressionPreviewPosition="Bottom"    onapplyexpressions="RadFilter3_ApplyExpressions" 
        CssClass="RadComboBox_Default" onitemcommand="RadFilter3_ItemCommand"    >

 <telerik:RadListView ID="RadListView2" DataSourceID="ChargeSelection" Width="100%"
                    PageSize="6" AllowPaging="True" runat="server">
                    
                      <ItemTemplate >
                        <div class="rlvA" style="height: 120px; width: 270px; margin-top: 5px; margin-left: 2px;
                            margin-bottom: 20px; padding-left: 10px; border-style: none; display:none; ">
                            <fieldset style="height: 100%">
                                <table>
                                    <tr>
                                        <td>
                                            <strong>OrderID:</strong>
                                            <asp:Label ID="OrderIDLabel" runat="server" />
                                            <br />
                                            <strong>Order date:</strong>
                                            <asp:Label ID="OrderDateLabel" runat="server" />
                                            <br />
                                            <strong>Ship city:</strong>
                                            <asp:Label ID="ShipCityLabel" runat="server" />
                                            <br />
                                            <strong>Ship country:</strong>
                                            <asp:Label ID="ShipCountryLabel" runat="server" />
                                            <br />
                                            <strong>Ship name:</strong>
                                            <asp:Label ID="ShipNameLabel" runat="server" />
                                            <br />
                                        </td>
                                        <td>
                                            <img src="Img/ordertracking.gif" alt="" />
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </div>
                    </ItemTemplate>
                   
                </telerik:RadListView>

<asp:SqlDataSource ID="ChargeSelection" ConnectionString="<%$ ConnectionStrings:PMNotesString %>"
    ProviderName="System.Data.SqlClient" SelectCommand="SELECT CPTCode,ChargeId,Date1,Account# FROM View_1"
    runat="server" ></asp:SqlDataSource>

 (see attach file)
Now when i select on add expression like  " Date1 - equals to - 3/21/2011 12:00 AM"  from radfilter.  In this expression you can see that date will be selected using calendar pop up & there is also time view pop up. So my problem is that i want to disable time view pop up becz no need for me &  also change date formate using calender pop up like  YYYY-MM-dd  (2011-03-21)  . Is it possible with RadFilter??? . If it is than please let me know how it could be possible??

Thank you
Ronak

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 04 May 2011, 12:57 PM
Hi Ronak,

In order to achieve your goal I would suggest that you create your own custom editor and use it in RadFilter instead of the built-in date field editor.
You can check out how this could be done in the samples provided in this thread.
However in this case, you ought to use declarative editors instead of leaving the RadFilter control to auto-generate them based on the FilterContainerID, as in this help topic (the second section) for instance.

Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Ronak
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or