I am loading a Gridview in unbound mode to create hierarchy. I followed the article and leaving all grid properties set to defaults, I can successfully create the hierarchical relationship and it will display. Then I start setting properties to tailor the grid. Note I am trying to create a "toolbox" like view where summary information about a tool is the top level, then clicking it exposes more information. This means the result is something that is not "grid looking per se.
Anyhow as I start removing grid features - grouping, etc. at some point I hit a property that prevents the child from displaying; but I don't know which one(s)
Is there a list of properties that cannot be set to false ?
Hi everyone, i need some ideas. Currently I implement print screen into my project. So print button will print all the content in my page. I set up all the content in one panel which is 'mainPanel'. In my 'mainPanel' there have gridview. How can I hide this gridview when I print screen the page? Here I attach the image for the page.
Thank you.
Hello
I have a Droddownlist that is populated with a datasource that contains a liste of objects that has 5 properties; I set thedisplaymember and valuemember to two properties ("Description" and "ItemCode") of the object.
Immediately after assigning the datasource a "selectedIndexChanged" event is fired; at this point I have in the selectedvalue property the object of index 0 of the datasource, therefore I can access to the valuemember by "selectedValue.ItemCode"
When, later, the user selects an item in the dropdownliste, the selectedindex is fired, the "selectedItemValue" contains the property "itemcode" of the selected item and not the selected object
Consequently I dont know how to get access to the "itemCode" property in the selectedIndex event, if I use .SelectedValue.itemcode it works after the loading but fails when the user selects an item; and if I use SelectedValue the code fails immediately after databinding
Thanks in advance for your advice
Pierre-Jean
Is there anyway to make label in the Aggregates area more uniformly legible?
My PivotGrid has a lot of column to display.
I make some changes:
PivotAggregateDescriptorContainer pivotAggregateDescriptorsAreaContainer = radPivotGrid.PivotGridElement.AggregateDescriptorsArea;
pivotAggregateDescriptorsAreaContainer.FixedItemSize = true;
And implement method:
void radPivotGrid_AggregateDescriptorElementCreating(object sender, AggregateDescriptorElementCreatingEventArgs e)
{
PivotAggregateDescriptorElement aggregateElement = e.AggregateDescriptorElement;
aggregateElement.TextWrap = true;
aggregateElement.DrawFill = false;
}
The issue is that PivotAggregateDescriptorContainer overlap PivotColumnDescriptorContainer, It doesn't see "Aggregates" label.
Please help
Thank you.
Hi, very basic question for noob, I searched & tried to find someone just doing a basic gridview row save...thing
I have a RadGridView bound to a SQL database
I am wondering what the generally accepted method is, of updating a row to the database?
A button to fire off an update statement?
Thanks,
Rich
Greetings,
Is there any StartMenu event such as clicking event to control?
As it isn't considered a ribbonbar's tab, it can not be controlled using tab events.
Greetings,
I have a Radlistview, a Textbox, and a Button. User enters a decimal or non-decimal number in the Textbox (For example, 3.1) and clicks the button.
Here is the clicking event of the button :
' RadlistView sorting is enabled in loading event of my form.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Radlistview1.Items.Add(Textbox1.Text)
Dim sort = New SortDescriptor("Text", ListSortDirection.Ascending)
Radlistview1.SortDescriptors.Add(sort)
End Sub
I did a test :
1- Adding the first item to RadlistView with textbox value set to 20.
2- Adding the Second item to RadlistView with textbox value set to 2.1.
As sorting direction is set to Ascending (also tested with descending), 2.1 should be placed as the first item because it is smaller than 20. But it doesn't work.
I appreciate any solution to this issue. Thanks
Hello,
Am using Rad grid view with Multi column combo box.
I created a Column type as GridViewMultiComboBoxColumn, attached the data source, also included the displaymember, valuemember,dropdwonstyle as RadDropDownStyle.DropDown. and added the column to the grid.
I am facing a problem that if i type in the GridView MultiComboBox Column, the control is not filtering and showing result.
I got a documentation saying
The drop-down element is an object of type MultiColumnComboBoxElement. Use this element to set the drop-down style, animation and sizing as you would do for the regular combobox.
The EditorControl property of the MultiColumnComboBoxElement gives you a reference to the RadGridView control. Using that reference you can obtain the RadGridView object and work as with normal RadGridView control. Refer to RadGridView documentation for additional information on RadGridView.
The current version has one limitation that you should consider:
You cannot use the auto-complete mode of RadDropDownList
The RadGridView control hosted in the drop-down does not allow editing operations
The RadGridView control hosted in the drop-down does not support filtering, grouping and sorting operations.
kindly confirm me is it a limitation or do i need to include something else in my code.
I am including the code snip shot for your ref.
bool isColumnAdded=false;
private void Form1_Load(object sender, EventArgs e)
{
filldata();​
}
private void filldata()
{
SqlCommand cmmdata = new SqlCommand();
cmmdata.Connection = constkbal;
cmmdata.CommandText = "select top 50 stockno from itemmaster";
SqlDataReader srdtls = cmmdata.ExecuteReader();
DataTable dtdetails = new DataTable();
dtdetails.Load(srdtls);
srdtls.Close();
GridViewMultiComboBoxColumn col = new GridViewMultiComboBoxColumn();
col.DataSource = dtdetails;
col.DisplayMember = "stockno";
col.ValueMember = "stockno";
col.FieldName = "stockno";
col.HeaderText = "stockno";
col.Width = 400;
col.DropDownStyle = RadDropDownStyle.DropDown;
col.FilteringMode = GridViewFilteringMode.DisplayMember;
this.griditemdisplay.Columns.Add(col);
}
private void griditemdisplay_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
if (this.griditemdisplay.CurrentColumn is GridViewMultiComboBoxColumn)
{
if (!isColumnAdded)
{
isColumnAdded = true;
RadMultiColumnComboBoxElement serchengineElement = (RadMultiColumnComboBoxElement)this.griditemdisplay.ActiveEditor;
serchengineElement.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
serchengineElement.DropDownMinSize = new Size(550, 300);
serchengineElement.DropDownMaxSize = new Size(550, 300);
serchengineElement.EditorControl.MasterTemplate.AutoGenerateColumns = false;
serchengineElement.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
serchengineElement.AutoSizeDropDownToBestFit = false;
serchengineElement.DropDownAnimationEnabled = false;
serchengineElement.EditorControl.Columns.Add(new GridViewTextBoxColumn("Stockno"));
FilterDescriptor filtercustomername = new FilterDescriptor("Stockno", FilterOperator.Contains, string.Empty);
serchengineElement.EditorControl.FilterDescriptors.Add(filtercustomername);
}
}
}​​
Is it possible to have a custom shaped screen tip?
I have created a custom screen tip class, set the Shape property of the element to be a shape and it appears to work visually but it's leaving a grey background in the spots where I want it to be transparent. See attached.
I have also tried doing the same but with an image, making the background of the image transparent, but the same thing happens.
Thanks.