hi,
I am working with gridview now. I have one columncheckbox on the gridview, and on the header i have checkbox to select all. i want when i tab into gridview the checkbox all will be focus for user can select all without mouse.
https://www.screencast.com/t/bLgGMCd50q
Hello,
I want to make some cell in addnew template to be readonly, so that user can't type in those fields.
I'm wondering why my RadDiagramShape's CreateChildElements() is called before it is constructed? This is calling a virtual method from constructor, and stops me from using a model object I pass into my constructor, in my overridden CreateChildElements().
Here's the stack trace
TestDiagram.exe!TestDiagram.UcDiagramDropdownDiagramShape.CreateChildElements() Line 69C# Telerik.WinControls.dll!Telerik.WinControls.RadElement.CallCreateChildElements()Unknown
Telerik.WinControls.dll!Telerik.WinControls.RadElement.Construct()Unknown
Telerik.WinControls.dll!Telerik.WinControls.RadElement.RadElement()Unknown
Telerik.WinControls.RadDiagram.dll!Telerik.WinControls.UI.Diagrams.UIElement.UIElement()Unknown
Telerik.WinControls.RadDiagram.dll!Telerik.WinControls.UI.Diagrams.FrameworkElement.FrameworkElement()Unknown
Telerik.WinControls.RadDiagram.dll!Telerik.WinControls.UI.Diagrams.RadDiagramItem.RadDiagramItem()Unknown
Telerik.WinControls.RadDiagram.dll!Telerik.WinControls.UI.Diagrams.RadDiagramShapeBase.RadDiagramShapeBase()Unknown
Telerik.WinControls.RadDiagram.dll!Telerik.WinControls.UI.RadDiagramShape.RadDiagramShape()Unknown
>TestDiagram.exe!TestDiagram.UcDiagramShape.UcDiagramShape(TestDiagram.DataModelItem item) Line 14C#
TestDiagram.exe!TestDiagram.UcDiagramDropdownDiagramShape.UcDiagramDropdownDiagramShape(TestDiagram.DataModelItem item) Line 39C#
TestDiagram.exe!TestDiagram.RadForm1.RadForm1() Line 16C#
Hello,
I am using Telerik GridView Hierarchy and there are few tabs inside the grid, When I click on the tab, The related child grid first cell should be selected by default, and if user click on other than first cell in subgrid then that selection should be retained after changing one tab to another. Snapshot of tab and subgrid is attached for better understanding.
Hello,
I have a RadDock window with a number of buttons and textboxes. Normally these controls can be tabbed through using just the tab key and that works fine. But if the textboxes have AcceptTab = True then the normal windows behavior is that when the textbox has the focus tabbing occurs within the textbox. Tabbing to the next control requires Ctrl+Tab. However, in a RadDock scenario, Ctrl+Tab opens the Quick Navigation dialog. I can disable QuickNavigation (QuickNavigatorSettings.Enabled = False) but apparently the Ctrl+Tab combination is still captured by RadDock and does nothing. I would like to somehow allow the Ctrl+Tab combination to pass through to windows default behavior.
This was covered back in 2007 to some extent (http://www.telerik.com/forums/customize-ctrl-tab-feature) but I thought there might some changes that would allow for a solution other than adding a messagefilter since some of the information in that post no longer applies, i.e., dockingManager.UseQuickNavigator no longer seems to exist. If a messagefilter is still required what would that look like in vb.net that would allow normal default behavior.
Best regards,
Robert
hi,
When I Add New Appointments with Right to left text format to the scheduler, it doesn't show in Right to left Format and causes Problem.I 've searched a lot but never find an answer.Any help will be appreciated.
I thought I'd start a new thread to continue this thread as it's changed a lot.
I'll re-post the code from that thread below, with some mods.
I thought, to make the shape's bounds include my Label text (so I could also drag by the text), I'd set the shape's overall Size equal to the Label width (e.g. 120) + the Shape width (e.g. 150), then set the Label position to 0,0 (instead of use PositionOffset) and set the shape's X position to the Label width (120).
This worked pretty well. I then tested if I could set the Label text's alignment. I tried left, center, right and it seems to work well. The text aligns itself to the rectangle I set for it in ArrangeOverride(). Perfect.
But then I made the Label text longer, and it didn't wrap. So I set TextWrap to true, but it still didn't wrap. Not until it got to the full shape's bounds. If the alignment uses the rect I used in Arrange() then why doesn't the wrapping? If this would work it would be pretty good.
RadForm1.cs
using
System.Drawing;
using
Point = Telerik.Windows.Diagrams.Core.Point;
namespace
TestDiagram
{
public
partial
class
RadForm1 : Telerik.WinControls.UI.RadForm
{
public
RadForm1()
{
InitializeComponent();
radDiagram1.IsBackgroundSurfaceVisible =
false
;
radDiagram1.BackColor = Color.White;
var dropdownShape =
new
DropdownShape()
{
Position =
new
Point(100, 100)
};
radDiagram1.AddShape(dropdownShape);
}
}
}
DropdownShape.cs
using
System.Drawing;
using
System.Drawing.Drawing2D;
using
Telerik.WinControls;
using
Telerik.WinControls.UI;
namespace
TestDiagram
{
class
DropdownShape : RadDiagramShape
{
LightVisualElement rectangle =
new
LightVisualElement();
LightVisualElement triangle =
new
LightVisualElement();
LightVisualElement label =
new
LightVisualElement();
protected
override
void
CreateChildElements()
{
base
.CreateChildElements();
this
.Size =
new
Size(270, 18);
// this.DrawBorder = true;
label.Text =
"Test Label"
;
label.TextAlignment = ContentAlignment.TopCenter;
//label.TextWrap = true;
//label.PositionOffset = new Size(0, 0);
rectangle.ShouldHandleMouseInput =
true
;
rectangle.NotifyParentOnMouseInput =
false
;
rectangle.DrawFill =
true
;
rectangle.BackColor = Color.LightGray;
triangle.DrawFill =
true
;
triangle.BackColor = Color.Black;
var rectangleShape =
new
CustomShape();
rectangleShape.CreateRectangleShape(0, 0, 1, 1);
var triangleShape =
new
TriangleShape();
rectangle.Shape = rectangleShape;
triangle.Shape = triangleShape;
this
.Children.Add(rectangle);
this
.Children.Add(triangle);
this
.Children.Add(label);
}
protected
override
SizeF ArrangeOverride(SizeF finalSize)
{
var result =
base
.ArrangeOverride(finalSize);
var rectLabel =
new
RectangleF(0, 0, 120, 30);
var rectTriangle =
new
RectangleF(finalSize.Width - 18, 6, 15, 18);
var rectRectangle =
new
RectangleF(120, 0, finalSize.Width - 120, 18);
var rectMain =
new
RectangleF(0, 0, finalSize.Width, finalSize.Height);
this
.label.Arrange(rectLabel);
this
.rectangle.Arrange(rectRectangle);
this
.triangle.Arrange(rectTriangle);
this
.DiagramShapeElement.Arrange(rectMain);
return
result;
}
}
class
TriangleShape : ElementShape
{
public
override
GraphicsPath CreatePath(Rectangle bounds)
{
var path =
new
GraphicsPath();
Point[] points =
{
new
Point( bounds.X, bounds.Y ),
new
Point( bounds.X + 6, bounds.Y),
new
Point( bounds.X + 3, bounds.Y + 6)
};
path.AddPolygon(points);
return
path;
}
}
}
string fileName = System.IO.Path.GetFullPath("FileName.ini");
string[] values = IniFileHelper.ReadSections(fileName);
if (values != null)
{
string value = string.Join(Environment.NewLine, values);
string[] Items = Regex.Split(value, "\r\n");
listBox1.Items.AddRange(Items);
Code Showing Error when I try : radListView1.Items.AddRange(Items);
I also tried :
ListViewDataItem item = new ListViewDataItem(Items);
item.Text =
//item.ImageAlignment = ContentAlignment.TopCenter;
item.TextImageRelation = TextImageRelation.ImageBeforeText;
item.TextAlignment = ContentAlignment.BottomCenter;
item.Image = Image.FromFile("F:\\avatar_d5a3db381633_128.png");
radListView1.Items.AddRange(Items);
I finally Did :
tring fileName = System.IO.Path.GetFullPath("FileName.ini");
string[] values = IniFileHelper.ReadSections(fileName);
if (values != null)
{
string value = string.Join(Environment.NewLine, values);
string[] Items = Regex.Split(value, "\r\n");
listBox1.Items.AddRange(Items);
ListViewDataItem item = new ListViewDataItem(Items);
item.Text = item.ToString();
item.ImageAlignment = ContentAlignment.TopCenter;
item.TextImageRelation = TextImageRelation.ImageBeforeText;
item.TextAlignment = ContentAlignment.BottomCenter;
item.Image = Image.FromFile("F:\\avatar_d5a3db381633_128.png");
radListView1.Items.AddRange(Items);
}
and my inni is looki like :
[Google]
link=heelo
[yahoo]
link=yahoo.com
etc etc etc
I use IniFileHelper to read ini Sections...https://code.msdn.microsoft.com/windowsdesktop/Reading-and-Writing-Values-85084b6a/sourcecode?fileId=142126&pathId=731899557
Hello,
i am trying to display Total tax month wise in my project.
SalesDataClassDataContext dc = new SalesDataClassDataContext();
var lstdata = (from im in dc.InvoiceMasters
join it in dc.InvoiceTransactions on im.Id equals it.InvoiceMasterId
join c in dc.CustomerMasters on im.CustomerMasterId equals c.Id
join cm in dc.CompanyMasters on im.CompanyMasterId equals cm.Id
join s in dc.StateMasters on cm.State equals s.Id
where (it.CGST != 0 || it.IGST != 0) && (it.TaxableRate != null)
select new { it.CGST, CGSTAmt = it.CGSTV, im.Date, it.SGST, SGSTAmt = it.SGSTV, it.IGST, IGSTAmt = it.IGSTV }).ToList();
this.radPivotGrid1.RowGroupDescriptions.Add(new DateTimeGroupDescription() { PropertyName = "Date", Step = DateTimeStep.Month, GroupComparer = new GroupNameComparer() });
this.radPivotGrid1.ColumnGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "CGST", GroupComparer = new GrandTotalComparer() });
this.radPivotGrid1.ColumnGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "SGST", GroupComparer = new GrandTotalComparer() });
this.radPivotGrid1.ColumnGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "IGST", GroupComparer = new GrandTotalComparer() });
this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "CGSTAmt", AggregateFunction = AggregateFunctions.Sum });
this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "SGSTAmt", AggregateFunction = AggregateFunctions.Sum });
this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "IGSTAmt", AggregateFunction = AggregateFunctions.Sum });
this.radPivotGrid1.DataSource = lstdata;
Note: this same code when i am using in my test appliation its run good and showing data accuratly but when i put same code in my original application it does'nt show data. please help for the same