or

<GroupByExpressions>
<!-- First Grouping Header --> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="BATCH_ID" FieldName="BATCH_ID" HeaderValueSeparator=" : " /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="BATCH_ID" SortOrder="Ascending" /> </GroupByFields> </telerik:GridGroupByExpression>
<!-- Second Grouping Header -->
<telerik:GridGroupByExpression>
<SelectFields> <telerik:GridGroupByField FieldAlias="Name" FieldName="EMP_DISPLAY_NAME" HeaderValueSeparator=" : " /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ITEM_NAME" SortOrder="Ascending" />
</GroupByFields>
</telerik:GridGroupByExpression
</GroupByExpressions>Private Sub CreateHeaderControls(ByVal e As GridItemEventArgs) If TypeOf e.Item Is GridGroupHeaderItem Then Dim item As GridGroupHeaderItem = e.Item If IsNumeric(item.GroupIndex.ToString()) Then item.DataCell.Controls.Clear() Dim check As New CheckBox() check.AutoPostBack = True check.ID = "CheckAll" AddHandler check.CheckedChanged, AddressOf check_CheckedChanged item.DataCell.Controls.Add(check) End If End If End Sub<style type="text/css"> .RadTreeView_Default .rtPlus, .RadTreeView_Default .rtMinus { display: none!important; }</style<telerik:RadGrid ID="uxBookOrderGrid" runat="server" AutoGenerateColumns="false" OnNeedDataSource="uxBookOrderGrid_NeedDataSource" AllowPaging="true" PageSize="10" Width="95%" AllowFilteringByColumn="true" EnableLinqExpressions="false" AllowSorting="true" > <MasterTableView DataKeyNames="BookOrderID"> <Columns> <telerik:GridBoundColumn FilterControlWidth="90%" SortExpression="StatusDescription" HeaderText="Status" DataField="StatusDescription" UniqueName="StatusDescription" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" /> </Columns> <NoRecordsTemplate> No Book Orders waiting to be Approved. </NoRecordsTemplate> </MasterTableView></telerik:RadGrid>protected void uxBookOrderGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ /// <summary> /// Fill Grid with all Book Orders that needs to be Approved /// </summary> uxBookOrderGrid.DataSource = SATextBooksUJ.Data.BookOrder.GetBookOrderListForAcquisition(acquisitions.UserID); if (!IsPostBack) { uxBookOrderGrid.MasterTableView.FilterExpression = "([StatusDescription] LIKE=\'%Approved by Departmental Approver%\')"; GridColumn statusColumn = uxBookOrderGrid.MasterTableView.GetColumnSafe("StatusDescription"); statusColumn.CurrentFilterFunction = GridKnownFunction.Contains; statusColumn.CurrentFilterValue = "Approved by Departmental Approver"; }}<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Services> <asp:ServiceReference Path="~/services/CustomerListService.svc" /> </Services> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager><DataBinding SelectMethod="GetCustomers" Location="~/services/CustomerListService.svc" SortParameterType="Linq" FilterParameterType="Linq"> </DataBinding>[ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class CustomerListService { [OperationContract] public List<Customer> GetCustomers() { CustomerData CustData = new CustomerData(); System.Data.DataTable dt = CustData.GetCustomersList(1, 1, ""); List<Customer> Customerist = new List<Customer>();//Here Customer is DataContract foreach (System.Data.DataRow dr in dt.Rows) { Customer cust = new Customer(); SetPropertiesFromOrderRow(cust, dr);//set all the property values from DataRow to Order CustomerList.Add(cust); } return CustomerList; } }<endpointBehaviors> <behavior name="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> <services> <service name="ClientSideBindingTest.services.CustomerListService"> <endpoint address="" behaviorConfiguration="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="ClientSideBindingTest.services.CustomerListService" /> </service> </services>hi
i've this object:
<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" Runat="server" Delimiter="" DropDownHeight="150px" DropDownWidth="270px" Filter="StartsWith" InputType="Text" Width="270px" EmptyMessage="Inserisci la tua città " Skin="Sunset"> <WebServiceSettings Method="Getcity" Path="index.aspx" /></telerik:RadAutoCompleteBox>I have three questions to ask:
1)
i've this code into vbnet:
<WebMethod()> Public Shared Function Getcity(context As Object) As AutoCompleteBoxData Dim searchString As String = DirectCast(context, Dictionary(Of String, Object))("Text").ToString() Dim data As DataTable = Getcomuni(searchString) Dim result As New List(Of AutoCompleteBoxItemData)() For Each row As DataRow In data.Rows Dim childNode As New AutoCompleteBoxItemData() childNode.Text = row("descrizione").ToString() childNode.Value = row("id").ToString() result.Add(childNode) Next Dim res As New AutoCompleteBoxData() res.Items = result.ToArray() Return res End Function Private Shared Function Getcomuni(ByVal text As String) As DataTable Dim adapter As New SqlDataAdapter("SELECT * from Tab_comuni WHERE descrizione LIKE @text + '%'", ConfigurationManager.ConnectionStrings("TrycontactString").ConnectionString) adapter.SelectCommand.Parameters.AddWithValue("@text", text) Dim data As New DataTable() adapter.Fill(data) Return data End Functionbut when I try to search for a city, nothing shows the dropdown does not appear.
2)
Why having the object raddecoration and thus eliminating any entry in AutoCompleteBox propriotà skin object, you can not see the edges of the round?
3)
How come when the focus is on the AutoCompleteBox, the edges of the object are not shown
Thanks you
