I have a GridView with some bound data. I have an unbound checkbox on the first column... This checkbox simply acts as a marker for further processing... eg on all checked rows, data is saved when a button is pressed...
On change of each checkbox I need to run some validation... which I won't go into here...So I use the event MyGridView_ValueChanged(object sender, EventArgs e).
From this event I use the following code to go through each row and find all the checked checkboxes...
foreach(GridViewRowInfo gvri in MyGridView.Rows)
{
if (Convert.ToBoolean(gvri.Cells["chkSelected"].Value) == true)
{
// Happy Days
}
}
Even though checking this checkbox fires the ValueChanged event, when this code is run, there are no values that return true for the checkboxes. If I select another checkbox, the first one now appears as true, but the one I just selected remains false... Why does this not show the changed value in the grid? Also can you advise if this is possible using any other events / properties?
Thanks
Hi,
We are building a pivot table using Telerik to display figure for different dimension. But my client also require the pivot table to able to select one of the cell (figure) and show the records related to that figure:
For example
Jan 2016
Type A 10
Type B 8
The requirement is to click the figure 10 and somewhere show the 10 records which fits the criteria Jan 2016 and Type A.
Is there anyway to do so?
Thanks
Hi
I'm writing a subclass of a radtileelement and one of it's child LightVisualElements needs to emulate a button.
I've written the following code which emulates a regular/plain windows button but I wondered if there was a quick method to copy the style from the border primitive belonging to a button on the form to my LightVisualElement so that my element will maintain the appearance of a button border without needing to do it all manually. (Ive not touched theming yet as Ive only been doing this a few days so far and want to start feeling comfortable understanding the controls first.)
01.
_buttonElement =
new
LightVisualElement();
02.
_buttonElement.TextAlignment = ContentAlignment.MiddleCenter;
03.
_buttonElement.AutoEllipsis =
true
;
04.
_buttonElement.MinSize =
new
Size(0, 30);
05.
06.
_buttonElement.DrawFill =
true
;
07.
_buttonElement.BackColor = SystemColors.ButtonFace;
08.
09.
_buttonElement.DrawBorder =
true
;
10.
_buttonElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
11.
_buttonElement.BorderBottomColor = SystemColors.ButtonShadow;
12.
_buttonElement.BorderRightColor = SystemColors.ButtonShadow;
13.
_buttonElement.BorderTopColor = SystemColors.ButtonHighlight;
14.
_buttonElement.BorderLeftColor = SystemColors.ButtonHighlight;
I've got a custom cellelement and column that contains a RadWebBrowserElement. Clicking inside the document does not trigger the cellclick(other regular columns work fine). I've tracked down the event I need and added an onclick listener to it with: _webBrowserElement.WebBrowserItem.WebBrowserControl.Document.Click += Document_Click;
Clicking inside the document fires Document_Click but I'm assuming I have to somehow have Document_Click fire the cellclick event but am unclear how to do this.
Any help would be much appreciated,
Thanks
Hello,
I encounter a strange behavior with my RadForm window:
When I maximize my Form, a boarder exists where the Form is not rendered and the background /application behind is visible and usable. See the attached screenshot.
If the form is not maximized everything is OK.
This issue occurred after updating from the previous version to the latest version, and this issue exists only on Computers that do not have Visual Studio Installed (standard users of the software). On the development machine the maximized state is OK too.
Do You have an idea how to solve this problem? Or do You have a workaround?
Thanks for your help!
Regards,
Ingo