I'm evaluating the RadGantt control for an eventual purshase. I have been able to insert and update tasks but there is a problem with deleting a task. The event OnTaskDelete is not fired unless there is only one task left or I have clicked delete on all tasks. So, if I click to delete only one task and there are more than one task, the confirmation window is showed but the OnTaskDelete event is not fired at all, and the task is not deleted. Is it a know bug? Here's my code:
<telerik:RadGantt ID="RadGantt1" runat="server" AllowTaskDelete="true" RenderMode="Lightweight" DataSourceID="SqlDataSource1" DependenciesDataSourceID="SqlDataSource2" OnTaskInsert="RadGantt1_TaskInsert" OnTaskUpdate="RadGantt1_TaskUpdate" OnTaskDelete="RadGantt1_TaskDelete" OnDependencyDelete="RadGantt1_DependencyDelete" OnDependencyInsert="RadGantt1_DependencyInsert"> <DataBindings> <TasksDataBindings IdField="ID" ParentIdField="ParentID" StartField="Start" EndField="End" TitleField="Title" PercentCompleteField="PercentComplete" SummaryField="Summary" ExpandedField="Expanded"/> <DependenciesDataBindings TypeField="Type" IdField="ID" PredecessorIdField="PredecessorID" SuccessorIdField="SuccessorID" /> </DataBindings> </telerik:RadGantt> <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:LocalSqlServer %>" DeleteCommand="DELETE FROM [GanttTasks] WHERE [ID] = @ID" InsertCommand="INSERT INTO [GanttTasks] ([ParentID], [OrderID], [Title], [Start], [End], [PercentComplete], [Expanded], [Summary]) VALUES (@ParentID, @OrderID, @Title, @Start, @End, @PercentComplete, @Expanded, @Summary)" SelectCommand="SELECT * FROM [GanttTasks] WHERE [ORderID] != -1" UpdateCommand="UPDATE [GanttTasks] SET [ParentID] = @ParentID, [OrderID] = @OrderID, [Title] = @Title, [Start] = @Start, [End] = @End, [PercentComplete] = @PercentComplete, [Expanded] = @Expanded, [Summary] = @Summary WHERE [ID] = @ID"> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="ParentID" Type="Int32" /> <asp:Parameter Name="OrderID" Type="Int32" /> <asp:Parameter Name="Title" Type="String" /> <asp:Parameter Name="Start" Type="DateTime" /> <asp:Parameter Name="End" Type="DateTime" /> <asp:Parameter Name="PercentComplete" Type="Decimal" /> <asp:Parameter Name="Expanded" Type="Boolean" /> <asp:Parameter Name="Summary" Type="Boolean" /> </InsertParameters> <UpdateParameters> <asp:Parameter Name="ParentID" Type="Int32" /> <asp:Parameter Name="OrderID" Type="Int32" /> <asp:Parameter Name="Title" Type="String" /> <asp:Parameter Name="Start" Type="DateTime" /> <asp:Parameter Name="End" Type="DateTime" /> <asp:Parameter Name="PercentComplete" Type="Decimal" /> <asp:Parameter Name="Expanded" Type="Boolean" /> <asp:Parameter Name="Summary" Type="Boolean" /> <asp:Parameter Name="ID" Type="Int32" /> </UpdateParameters> </asp:SqlDataSource>protected void RadGantt1_TaskInsert(object sender, Telerik.Web.UI.Gantt.TaskEventArgs e) { Telerik.Web.UI.Gantt.Task nouvelTache = (Telerik.Web.UI.Gantt.Task)e.Tasks.FirstOrDefault(); if (nouvelTache.ParentID != null) SqlDataSource1.InsertParameters["ParentID"].DefaultValue = nouvelTache.ParentID.ToString(); SqlDataSource1.InsertParameters["OrderID"].DefaultValue = nouvelTache.OrderID.ToString(); SqlDataSource1.InsertParameters["Title"].DefaultValue = nouvelTache.Title; SqlDataSource1.InsertParameters["Start"].DefaultValue = nouvelTache.Start.ToString(); SqlDataSource1.InsertParameters["End"].DefaultValue = nouvelTache.End.ToString(); SqlDataSource1.InsertParameters["PercentComplete"].DefaultValue = nouvelTache.PercentComplete.ToString(); SqlDataSource1.InsertParameters["Expanded"].DefaultValue = nouvelTache.Expanded.ToString(); SqlDataSource1.InsertParameters["Summary"].DefaultValue = nouvelTache.Summary.ToString(); } protected void RadGantt1_TaskUpdate(object sender, Telerik.Web.UI.Gantt.TaskEventArgs e) { Telerik.Web.UI.Gantt.Task tacheModifiee = (Telerik.Web.UI.Gantt.Task)e.Tasks.FirstOrDefault(); SqlDataSource1.UpdateParameters["OrderID"].DefaultValue = tacheModifiee.OrderID == null ? "0" : tacheModifiee.OrderID.ToString(); SqlDataSource1.UpdateParameters["Title"].DefaultValue = tacheModifiee.Title; SqlDataSource1.UpdateParameters["Start"].DefaultValue = tacheModifiee.Start.ToString(); SqlDataSource1.UpdateParameters["End"].DefaultValue = tacheModifiee.End.ToString(); SqlDataSource1.UpdateParameters["PercentComplete"].DefaultValue = tacheModifiee.PercentComplete.ToString(); SqlDataSource1.UpdateParameters["Expanded"].DefaultValue = tacheModifiee.Expanded.ToString(); SqlDataSource1.UpdateParameters["Summary"].DefaultValue = tacheModifiee.Summary.ToString(); } protected void RadGantt1_TaskDelete(object sender, Telerik.Web.UI.Gantt.TaskEventArgs e) { foreach (Telerik.Web.UI.Gantt.Task tacheSuprimmee in e.Tasks) { SqlDataSource1.DeleteParameters["ID"].DefaultValue = tacheSuprimmee.ID.ToString(); SqlDataSource1.Delete(); } }
Hello,
I recently upgraded one of our ASP.NET 4 applications from Q2 2014 to the latest 2017 and noticed that the background for the scale changed from gray to white (see attached) and I have not been able to find a way to change it back. I looked within the Telerik demos and found that I'm able to change the BackColor, but it changes it for the entire RadLinearGauge tag. Is there any way to accomplish this?
<telerik:RadLinearGauge ID="radInstalledFE" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="10pt" Skin="Office2010Black" Width="420px" ForeColor="Black" Height="90px"> <Pointer Shape="BarIndicator" Value="15" Size="30" Color="#5ca038"> <Track Opacity="0.2" Size="30" Color="Black" /> </Pointer> <Scale MajorTicks-Size="10" MinorTicks-Size="5" Vertical="False" MinorTicks-Color="Black" MajorTicks-Color="Black" Labels-Color="Black" Labels-Font="Verdana" Labels-Position="Outside" MinorTicks-Visible="False"></Scale> </telerik:RadLinearGauge>
Hi,
Anyone no why the Edit Columns option doesn't show on my Design Time Task list? It should be there according to the Help file.
I am using 2017.1.228 (Trial) .net Framework 4.5 Controls & Visual Studio 2017.
Thanks, Al
Hi,
My grid vertical align text not set properly.
Please help, thanks.
<telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="False"
CellSpacing="0" GridLines="None" Width="600px"
OnItemDataBound="grid_OnItemDataBound"
OnItemCommand="grid_OnItemCommand" >
<MasterTableView NoMasterRecordsText="Kayıt bulunamadı" ItemStyle-VerticalAlign="Middle" >
<ItemStyle BackColor="#C6E2FF" Font-Size="Medium" VerticalAlign="Middle" Height="40" />
<AlternatingItemStyle BackColor="White" Font-Size="Medium" VerticalAlign="Middle" />
<columns>
<telerik:GridButtonColumn UniqueName="KatPlani" HeaderText="Kat Planı" HeaderStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Detay" ButtonType="ImageButton" ImageUrl="images/harita_32.png" ItemStyle-VerticalAlign="Middle">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="Goruntule" HeaderText="Görüntüle" HeaderStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Detay" ButtonType="ImageButton" ImageUrl="images/photo_32.png" ItemStyle-VerticalAlign="Middle">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn UniqueName="Guncelle" HeaderText="Güncelle" HeaderStyle-Width="10" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Guncelle" ButtonType="ImageButton" ImageUrl="images/guncelle_32.png" ItemStyle-VerticalAlign="Middle" >
</telerik:GridButtonColumn>
<telerik:GridBoundColumn
UniqueName="SATIRID"
HeaderText="SATIRID"
DataField="SATIRID"
HeaderStyle-Width="50"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center"
ShowFilterIcon="False"
Visible="True"
Display="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
UniqueName="BINAADI"
HeaderText="Bina Adı"
DataField="BINAADI"
HeaderStyle-Width="200"
HeaderStyle-HorizontalAlign="Left"
ItemStyle-HorizontalAlign="Left"
ShowFilterIcon="False"
Visible="True"
>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn
UniqueName="KATADI"
HeaderText="Kat Adı"
DataField="KATADI"
HeaderStyle-Width="150"
HeaderStyle-HorizontalAlign="Left"
ItemStyle-HorizontalAlign="Left"
ShowFilterIcon="False"
Visible="True"
>
</telerik:GridBoundColumn>
</columns>
</MasterTableView>
<MasterTableView >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
<ClientSettings>
<Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
</telerik:RadGrid>

Hi,
For each uploaded file, I would like to add one or multiple additional field(s) which would be a file (so the goal is to add either a basic input[type=file] or a Telerik AsyncUpload).
How to achieve this ?
I got to add input[type=file] additional fields but the files are not posted and I can't get the binaries on the server side.
ListFiles(i).GetFieldValue("additionalFileInput") returns a string that is the selected file name.
How could I get the binaries from additional fields that are file inputs ?
Is there any way I can make attached graph axes cross at (0,0)? The left most point is 299, the right most is 292, so there is a little change over these 5 years, but the graphic looked like graph is going off a cliff
Here is my current setup
<telerik:RadHtmlChart ID="rhcWages" runat="server"
Width="225px" Height="200px"
Transitions="false">
<ChartTitle Text="">
<Appearance Align="Center" Position="Top" Visible="false">
<TextStyle Bold="true" />
</Appearance>
</ChartTitle>
<Legend>
<Appearance Position="Bottom" Visible="false" OffsetX="5" OffsetY="5"></Appearance>
</Legend>
<PlotArea>
<Series/>
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
<XAxis AxisCrossingValue="0" Color="black" MajorTickType="None" MinorTickType="None" Reversed="false" >
<MajorGridLines Visible="false"/>
<MinorGridLines Visible="false"/>
<LabelsAppearance Visible="false" RotationAngle="0" Skip="0" Step="1">
</LabelsAppearance>
<TitleAppearance Position="Center" RotationAngle="0"
Visible="false" Text="Year">
<TextStyle Bold="true"/>
</TitleAppearance>
</XAxis>
<YAxis MajorTickType="None" MinorTickType="None" AxisCrossingValue="0">
<MajorGridLines Visible="false"/>
<MinorGridLines Visible="false"/>
<LabelsAppearance Visible="false" RotationAngle="0" Skip="0" Step="1" DataFormatString="{0:N0}" >
</LabelsAppearance>
<TitleAppearance Visible="false" Position="Center" RotationAngle="0" Text="% Change">
<TextStyle Padding="8" Margin="8" Bold="true"/>
</TitleAppearance>
</YAxis>
</PlotArea>
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
</telerik:RadHtmlChart>
Please suggest