| <telerik:RadGrid ID="grdReglements" runat="server" GridLines="None" AutoGenerateColumns="False" |
| Width="732px"> |
| <MasterTableView TableLayout="Fixed"> |
| <NoRecordsTemplate> |
| <asp:Label ID="lblGrdNoRecord" runat="server" Text="Il n'y a présentement aucun nouveau règlement ajoutés à votre acte de copropriété."></asp:Label> |
| </NoRecordsTemplate> |
| <ItemTemplate> |
| <div style="float: left; width: 231px;"> |
| <asp:Label ID="lblNoReglement" runat="server" Text="Numéro de règlement :"></asp:Label> |
| <br /> |
| <%# Eval("NoReglement") %> |
| <br /> |
| <br /> |
| <asp:Label ID="lblDateAdoption" runat="server" Text="Date d'adoption :"></asp:Label> |
| <br /> |
| <%# Eval("DateAdoption") %> |
| <br /> |
| <br /> |
| <asp:Label ID="lblDateVigueur" runat="server" Text="Date applicable :"></asp:Label> |
| <br /> |
| <%# Eval("DateVigueur") %> |
| </div> |
| <div style="width: 500px;"> |
| <%# Eval("Titre") %> |
| <br /> |
| <%# Eval("Description") %> |
| </div> |
| </ItemTemplate> |
| </MasterTableView> |
| </telerik:RadGrid> |
| private void RefreshReglements() |
| { |
| grdReglements.DataSource = MyReglementBLL.ReglementCollection; |
| grdReglements.DataBind(); |
| } |
Posted 0 minutes ago (permalink)
|
|
Posted on Dec 3 (permalink)
Grid.MasterTableView.FilterExpression
which is set to something like the following
DataSourceProperty.ToString().ToUpper().StartsWith("Hi") where DataSourceProperty is a property of object, collection of which is set as Data Source to the grid just after setting filter expressio.
Now my problem is that we wnat to give a user option to put % in the filter values and the filter should work like "Like" opertor in Oracle. So the input may be "punit%was%" .
For this I have tried to set the property like below as suggested in documenattion at some place :-
RadGrid1.MasterTableView.FilterExpression = "([Country] LIKE \'%Germany%\') ";
Along with this I have also set grid LINQ expressions to false (EnableLinqExpressions=false) .
But this is not actually filtering the results and is just returning the results without filtering.
Thanks
I'm looking to create this affect (see html) with the rad grid, and I could use some advice or a tutorial. I'm using an object datasource. The objects are "products" and there is a property for "prodcut can be ordered by each" instead of case. When the flag is true I'd like to add, a extra row showing the each price, and a new textbox and to the line entry so it's still kind of the same line. I don't want it to be a NEW row in the grid because of sorting. I hope that make some sense. Hopefully the sample will clarify.