radgridview

How to create separate DetailTable on each row in a RadGrid?

让人想犯罪 __ 提交于 2019-12-25 08:11:20
问题 I have a telerik radgrid where columns and detail tables are declared like: <telerik:RadGrid> <Columns> <telerik:GridBoundColumn/> <telerik:GridBoundColumn/> </Columns> <DetailTables> <telerik:GridTableView <Columns> <telerik:GridBoundColumn/> <telerik:GridBoundColumn/> </Columns> </telerik:GridTableView </DetailTables> </telerik:RadGrid> Which gives a nested grid like this: Now, what I want is to be able to specify a detail table (those sub tables) per row, programmatically. (I cannot be

Fill RadGridView dynamically

前提是你 提交于 2019-12-25 05:25:24
问题 I am using RadControls for WinForms 2011 Q3 The datasource for a RadGridView is dynamically generated based on users' input/selection Everytime when a datasource is generated, I will call SetDatasource2KeyValuesGrid() What I expect to see is columns generated and values filled in gridview. However what I see is columns generated but no value filled even though the number of rows in gridview match the number of items in its datasource(keyValuesList) I must have missed something simple. Please

Binding MVVM with (only) some columns autogenerated from a collection

此生再无相见时 提交于 2019-12-24 08:48:06
问题 I have a collection of objects which I want to bind to a RadGridView (from the toolkit telerik). The class of the objects is looking like that (minimum code needed to understand) where I have 1 property and 1 array of values which : public class AttributeEntry : INotifyPropertyChanged { public string Code { get; set; } private string[] _values; public string[] Values { get { return _values; } set { _values = value; } } public string this[int index] { get { return _values[index]; } set {

How to give a color to the Column Header in Telerik RadGrid

旧时模样 提交于 2019-12-20 03:07:14
问题 I have created a telerik RadGrid in asp .net. My requirement is to give my own color to Column header. How can we achieve this...? Below is the code structure I'm using. <Telerik:RadGrid ID="RadGrid2" runat="server"> <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="OrderDetails" Width="100%"> <Columns

Accessing Telerik RadGrid edit mode from javascript

假装没事ソ 提交于 2019-12-11 08:21:50
问题 I invoke one function in javascript. When I call this function rad grid row is already in edit mode . In that function I get reference to RadGrid: var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); In edit mode I have edit item: I have a problem here to get/set value of txtName from this javascript function. I have tried: var item = masterTable.selectItem(masterTable.get_dataItems()[0].get_element()); var item = masterTable.selectItem('txtName'); var item = masterTable

Detecting Drop down with Selenium WebDriver

我与影子孤独终老i 提交于 2019-12-11 03:19:31
问题 http://i.stack.imgur.com/L4WUv.jpg Link to Grid I'm trying to detect the different drop downs on this page (depicted by the filters by the text boxes). The problem i'm having is that it seems that the filters all have the same ids. I can get the webdriver to find the initial filter button but not target the options in the drop down. Note the filters I'm talking about are the ones from the funnel buttons. For example contains, isEqual, between etc * This is wrong but an example it('Should

WPF : Dispatcher processing has been suspended, but messages are still being processed

青春壹個敷衍的年華 提交于 2019-11-29 03:13:27
I Have a WPF Project, When i try to Run This Code On RowLoad Event I got below Error : private void ParentGridView_OnRowLoaded(object sender, EventArgs e) { try { if(((RadGridView)sender).Columns != null) { MessageBox.Show(((RadGridView)sender).Columns.Count.ToString(CultureInfo.InvariantCulture)); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } Error : Dispatcher processing has been suspended, but messages are still being processed. Note That the GridView Control is Telerik RadGridView Dave Tillman This answer describes the same situation as yours. (It references this answer on a

WPF : Dispatcher processing has been suspended, but messages are still being processed

爷,独闯天下 提交于 2019-11-27 17:22:46
问题 I Have a WPF Project, When i try to Run This Code On RowLoad Event I got below Error : private void ParentGridView_OnRowLoaded(object sender, EventArgs e) { try { if(((RadGridView)sender).Columns != null) { MessageBox.Show(((RadGridView)sender).Columns.Count.ToString(CultureInfo.InvariantCulture)); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } Error : Dispatcher processing has been suspended, but messages are still being processed. Note That the GridView Control is Telerik

Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this

允我心安 提交于 2019-11-26 23:43:40
问题 For my telerik radgrid I am using numeric pages. I can see the page numbers. But I am not able to identify the selected page. All the page numbers remais alike after selecting the page. I need the selected page number to be underlined. Help me in this 回答1: There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc. After adding your grid (radgrid), you can manually define a PagerStyle block in aspx side and put your code