Hi,
i would like to change the color of my tileElement in runtime (property defined by user), but i would like to keep the effect of the tileElement (another color define for mouseover)
Is there any way ?
Hi,
i made a custom filtering in my Grid. I have a FilterCell with a "FilterClearButton" and I confirm my FilterCellEntry with the Keys "Enter" or Tab.
I also set these properties:
loGridFilterCellElement:FilterButton:Visibility = Telerik.WinControls.ElementVisibility:Collapsed
loGridFilterCellElement:FilterOperatorText:Visibility = Telerik.WinControls.ElementVisibility:Collapsed
When I leave my Filtercell(CellEndEdit Event), I make a new Filterdescriptor.
loFilterDescriptor = NEW Telerik.WinControls.Data.FilterDescriptor().
loFilterDescriptor:Operator = Telerik.WinControls.Data.FilterOperator:Contains.
loFilterDescriptor:PropertyName = poGridViewDataColumn:Name.
loFilterDescriptor:IsFilterEditor = TRUE.
loFilterDescriptor:VALUE = poVal.
and add it to the FilterDescriptorCollection of my Grid.
THIS-OBJECT:FilterDescriptors:BeginUpdate().
THIS-OBJECT:FilterDescriptors:Add(loFilterDescriptor).
THIS-OBJECT:FilterDescriptors:EndUpdate().
So far, there is no problem but if I filter a column for "Dom" and in my Grid there are two entries in this column with "Zöbl Dominik" and "test user" the Grid is empty. But if I enter "Zöb" in my Filtercell and leave it, the Entry "Zöbl Dominik" is shown in my Grid.
I think i have missed some property or other setting. It seems like it is filtering with "Begins" and not contains but I already iterated through oll the FilterDescriptors of my Grid and all are with "Contains".
I know it is not easy to help me in that case because I made a lot of these extras myself but does anybody have an idea what i have made false?
Sincerely,
Dominik Zöbl
I need to pivot the the Day View so that my resources show up along the left vertical column and the time of day is horizontal across the top.
Using your example provided here.... http://docs.telerik.com/devtools/winforms/scheduler/views/grouping-by-resources#grouping-by-resources-in-different-views
..as a reference point...
Alan and Ann are stacked along the left side of the view. And the times 0300-1600 are laid across the top.
Thank you in advance.
-Scott
dear all, i m facing the following issue when i pressed shortcut key which is "Ctrl + F" register in my application using the following code.
[code]
this.grdMain.GridViewElement.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.F));
this.grdMain.GridBehavior = new ModifiedGridActions();
[/code]
and overriding the keyprocess function in grid behaviors using the following code
[code]
public class ModifiedGridActions : BaseGridBehavior
{
public override bool ProcessKey(KeyEventArgs keys)
{
try
{
if (keys.Control && keys.KeyCode == Keys.F) // issue on this line
{
this.GridControl.MasterView.TableFilteringRow.Cells["cName"].BeginEdit();
}
}
catch (Exception ex)
{
}
return base.ProcessKey(keys);
}
}
[/code]
when i press ctrl + f above override function triggers but its parameter only contains keys.control is true and keys.keycode property contains 17 which also ctrl code. what i expect is to get keys.control is true and keys.keycode should contains keys.F so that my logic can execute am i implementing somthing wrong.
ToolWindow window = new ToolWindow(); |
_documentTabStrip.Controls.Add(window); |
window.Tag = "Tag"; // Here I assign a tag |
_radDock.DockControl(window, DockPosition.Top, DockType.ToolWindow); |
// The Tag property of the docked toolwindow is null (_radDock.ToolWindows[0].Tag is null) |
Is there any way to find the docked window in the _radDock to set its Tag.
Please help.
Burhan Eyimaya
Hi,
I'm creating password with track bar.
I do not know how to write code (TrackBar.Value):
Please check my code:
01.
int
PassLength = 0;
02.
static
string
Shuffle(
string
input)
03.
{
04.
var q = from c
in
input.ToCharArray()
05.
orderby Guid.NewGuid()
06.
select c;
07.
string
s =
string
.Empty;
08.
foreach
(var r
in
q)
09.
s += r;
10.
return
s;
11.
}
12.
private
void
CreatePassword_Click(
object
sender, EventArgs e)
13.
{
14.
txt_CreatePass.Text =
""
;
15.
string
text =
"aAbBcCdDeEfFgGhHiIjJhHkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ01234567890123456789{,;:!*$@-_=^[}{,;:!*$@-_=^[}"
;
16.
text = Shuffle(text);
//shuffle the above symbols using shuffle() method.
17.
text = text.Remove(PassLength);
//cut the string size according to the chosen trackbar value.
18.
txt_CreatePass.Text = text;
19.
}
20.
21.
private
void
TrackBar_ValueChanged(
object
sender, EventArgs e)
22.
{
23.
24.
this
.TrackBarCreatePass.Value = Convert.ToInt32(+1);
25.
lbl_Count.Text = PassLength.ToString();
26.
27.
//lbl_Count.Text = TrackBarCreatePass.Value.ToString();
28.
//PassLength = this.TrackBarCreatePass.Value;
29.
}
30.
31.
private
void
TrackBar1_CreatePass_ValueChanged(
object
sender, EventArgs e)
32.
{
33.
PassLength = TrackBar1_CreatePass.Value + 1;
//trackbar value starts from 0, so I add +1 to make it understandable;
34.
lbl_Count.Text = PassLength.ToString();
35.
}
Is there any way to apply a StyleRepository object to a control? I know I can do something like:
Theme currenTheme = ThemeRepository.FindTheme(ThemeResolutionService.ApplicationThemeName);
StyleRepository repositoryFromTheme = currenTheme.FindRepository("DisabledForeColor");
PropertySetting styleForeColor = repositoryFromTheme.FindSetting("ForeColor");
Color colorToSet = (Color)styleForeColor.Value;
myTextBox.Forecolor = colorToSet;
However, if I have multiple properties to set (say, multiple colors and maybe some transparency or a background image or something), this can get a bit tedious and it lacks flexibility. So, what I'd like to do is just take the StyleRepository object and apply it directly to the control. Alternately, I'd be fine with looping through the settings collection and applying each of those individually so long as I didn't have to hard code the names of the PropertySettings into my code. Something like:
foreach (PropertySetting currentPropertySetting in repositoryObjectFromTheme.Settings)
{
genericRadControl.SOMETHING = currentPropertySetting;
}
would work for me fine as well.
Any suggestions?
Hello,
There is a bug in gridview printiing with mode landscape only
with this gridview :
http://creiler.free.fr/window_gridview.jpg
My PrintStyle :
With oStyle
.FitWidthMode = PrintFitWidthMode.NoFitCentered
.PrintGrouping = False
.PrintSummaries = True
.PrintHeaderOnEachPage = True
.PrintHiddenColumns = False
.PrintHierarchy = True
.PrintAllPages = True
.HierarchyIndent = 0
.CellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.HeaderCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.SummaryCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
.GroupRowFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
End With
normal :
http://creiler.free.fr/gridview1.jpg
landscape :
http://creiler.free.fr/gridview2.jpg
Summary cells are shifting