I want to achieve functionality of Re-Ordering Rows In a Grid.
Requirement:
User will Select Row and Click on Up Button on UI to shift that on Up direction. Example If user select 3rd row from top and then click on up then it must shift that row to 2 position from top.
Also the which was on 2nd postion from top now comes on 3rd from top
Below code I tried but not working Properly When Rows are More than 2 in a grid:
private void btnInternalUp_Click(object sender, EventArgs e)
{
for (int index = 0; index < this.m_grdGridControl.SelectedRows.Count; index++)
{
var currentRow = this.m_grdGridControl.SelectedRows[index];
int currentIndex = currentRow.Index;
int nextIndex = NextIndex(this.m_grdGridControl, currentIndex, "up");
this.m_grdGridControl.MasterTemplate.Rows.Move(currentIndex, nextIndex);
}
}
//NextIndexMethod Return the index where row need to be shifted:
Hello,
we are using OpenEdge 10.2B and have quite a few files with OCX controls which we would like to change to use Telerik controls.
Right now I'm focused on replacing progress bars to use RadProgressBar.
What I've done so far is created a ProgressBar.cls which has the RadProgressBar and a cancel button in it's own window. The progress bar window is shown overtop of the calling window and is updated accordingly. It works well, we were just hoping we could keep them in the same window.
Is it possible to use Telerik controls in a .w file? Or are we going to need to rebuild each program that uses an OCX control to achieve this?
private void button1_Click(object sender, EventArgs e)
{
this.TopMost = true;
this.BringToFront();
radColorDialog1.Reset();
if (radColorDialog1.ShowDialog(this) == DialogResult.OK)
{
}
}
In the screen mockup below, is it possible to include a subgrid header like the onr that reads "Reference Information" when there is only a single grid at that level?
Hello,
I have a RadGridView with a GridViewMaskBoxColumn that has a DateTime mask of 'd', EnableNullValueInput set to true, and MaskType set to FreeFormDateTime. The CTRL+DEL does clear the box, but when I leave the box the current date is automagically filled. In CellValidating, CellValueChanged, CellValueNeeded, and UserAddingRow I assign the cell value to null if there is no current value in the cell or if it's whitespace or if it's an empty string.
I see on this Parsing Dates Page under Date evaluation that "incomplete dates are always evaluated taking the current date as a basis". Can I override this behavior so a null cell can stay a null cell? If yes, how?
Thank you.
Hi,
I have a RadGridView that is the AssociatedObject of a RadPrintDocument that I want to print via a PrintDialog:
private PrintDialog printDialog;
RadPrintDocument doc = new RadPrintDocument
{
AssociatedObject = radGridHistorie
};
printDialog.Document = doc;
printDialog.AllowSelection = true;
if (printDialog.ShowDialog() == DialogResult.OK)
{
doc.Print();
}
If I select "All" in the PrintDialog, all entries are printed on the document.
If I select "Selection" in the printDialog after having Rows selected in the GridView, no entries are on the printed document.
What is wrong?
Hi
I want to copy data from RadGridView1 to another RadGridView2. I want to copy selected row from datagridview 1 using checkbox to another datagridview2. and selected rows should be removed from datagridview1.
And if i selected from datagridview2 it should moved again to datagridview1.
For Each row As GridViewDataRowInfo In Me.RadGridView1 .Rows
if row.Cells(0).Value = true then''Checkbox column
dim i as int16= Me.RadGridView2.add
Me.RadGridView2.rows(i).cells(0).value= row.cells(0).vlaue.tostirng
End If
Next row
I have a rad ribbon sittng above a table layoutpanel. when I open the backstage view from startmenubutton it opens in one of the cells of the Tablelayoutpanel rather than overlaying all the content and filling the screen. how do I resolve this
I can't seem to get FreezePanes to work.
I have a sheet populated with nothing but test character data:
I tried to freeze the top 3 rows, and the left-most 3 columns:
mySpreadsheetControl.Workbook.Worksheets(0).ViewState.FreezePanes(3, 3)
Nothing seems to happen.
The RibbonBar menu option, to freeze either the top row or the left-most column does work. (why do I have to choose?)
Am I missing something?