Hello,
Is there any possibility to work on dates instead numbers for charts?? For e.g I want to show Bar Range Chart from 1st of Jan to 3rd of Jan
I hope I'm clear enough I was unable to find any demo related to Dates for Range charts
Is there a way to create a Multiline title so that the font size and style is different for the second line?
I want my main title, first line, to be larger while the second line, subtitle, should be smaller and italic. I'm setting all my title attributes currently on the server side.
Thanks
Rodney
Hello Telerik team,
We are extensively used Rad Controls within our asp.net web based application.The Telerik Version we are currently using within our application is
:2014.2.724.45
Recently we noticed one major issue for all RadButtons
that are available throughout the application. The issue is, whenever we set width of Radbutton from markup
or code behind then it automatically applies "padding-left:4px" to internal input at the time of rendering. Due to this padding, the text of
Button is not appearing exactly at the center.
Whenever we give custom width
to the RadButton from Markup or code behind, the <span> tag comes with a specified width , 1st <input> comes with style "width:100%;padding-left:0;padding-right:0;padding-left:4px;height:28px" ;
As shown above, the main issue is caused by
"padding-left:4px". We want to set it 0px after which then the text would appear center align on
our end.
Below are the code snippet for our above issue:
.aspx page:
<myTelerik:RadButton Height="28px" ID="btnEdit" Width="90px" EnableEmbeddedSkins="false" Skin="Strong" runat="server" Text="Edit " ValidationGroup="Edit" OnClick="btnEdit_Click" />
Below code renders on Browser
<span
id="ctl00_ContentPlaceHolder1_btnEdit" class="RadButton" style="padding:0px
!important;display:inline-block;height:28px;width:75px;height:28px;"
tabindex="0">
<input
class="rbDecorated" type="button"
name="ctl00$ContentPlaceHolder1$btnEdit_input"
id="ctl00_ContentPlaceHolder1_btnEdit_input" value="Delete"
style="width:100%;padding-left:0;padding-right:0;padding-left:4px;height:28px;"
tabindex="-1">
<input
id="ctl00_ContentPlaceHolder1_btnEdit_ClientState"
name="ctl00_ContentPlaceHolder1_btnEdit_ClientState"
type="hidden" autocomplete="off">
</span>
Please provide
us workaround how we can remove the "padding-left:4px" for all those RadButtons which having custom width. We need the generic way to resolve this issue so that it requires minimum numbers of files need to be updated.
Please note that this issue is only encounters only when we
applies custom width to RadButton. For other RadButtons where custom width is not
applied, the text appears at center. We are trying to do the same, but we are not getting expected output.
Thanks,
Riz
<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void show(object sender, EventArgs e)
{
if (asyncUpload.UploadedFiles.Count != 0)
label.Text = asyncUpload.UploadedFiles[0].ContentType;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form" runat="server">
<div>
<Telerik:RadScriptManager ID="radScriptManager" runat="server" />
<Telerik:RadAsyncUpload runat="server" ID="asyncUpload"
MaxFileInputsCount="1" />
<asp:Button ID="button" runat="server" Text="show content type" OnClick="show" />
<br />
<asp:Label ID="label" runat="server" Text="Label" />
</div>
</form>
</body>
</html>
thanks
Hello!
I have created an auto generated RadGrid control.
I've found a solution for implementing an INSERT event with the help of RadGrid1.MasterTableView.AutoGeneratedColumns collection and IGridColumnEditor.
But how should I implement an UPDATE event? How can I write update statement(for databes update) without knowing the names of the primary key columns?
Thank you!
Hi,
Can I set date range for RangeSeriesItem inside of RangeBarSeries for RadHTML Chart something like this
can I set
RangeSeriesItem rsi = new RangeSeriesItem();
rsi.From = DateTime.Now.AddDays(-1);
rsi.To = DateTime.Now.AddDays(1);
bbs.SeriesItems.Add(rsi);
instead of setting decimal values in From and To for Range series Item??
Hi all,
On a radgrid, i want a context menu which has a single item. When i click on that item, it will open another window (modal popup extender) to input some information.
When i click on the item, it does not go to the event handler. Nothing happens.
Am i missing anything here?
why does the Radmenu2_itemclick not fire?
Thanks in advance
Grid:
<
input
type
=
"hidden"
id
=
"radgridrowindex"
name
=
"radgridrowindex"
/>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"False"
GridLines
=
"Both"
DataKeyName
=
"TripRequestID"
OnEditCommand
=
"RadGrid1_EditCommand"
CellSpacing
=
"0"
BorderColor
=
"#FF8000"
ForeColor
=
"Black"
BackColor
=
"SkyBlue"
BorderStyle
=
"Double"
EnableHeaderContextMenu
=
"true"
>
<
MasterTableView
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridButtonColumn
CommandName
=
"Select"
Text
=
"Edit"
ButtonType
=
"PushButton"
UniqueName
=
"column"
>
</
telerik:GridButtonColumn
>
<
telerik:GridBoundColumn
DataField
=
"TripRequestID"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter column1 column"
HeaderText
=
"TripRequestID"
UniqueName
=
"TripRequestID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"TripDate"
FilterControlAltText
=
"Filter column2 column"
HeaderText
=
"TripDate"
UniqueName
=
"column2"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PickupTime"
FilterControlAltText
=
"Filter column3 column"
HeaderText
=
"PickupTime"
UniqueName
=
"column3"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DropoffTime"
FilterControlAltText
=
"Filter column4 column"
HeaderText
=
"DropoffTime"
UniqueName
=
"column4"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Proc_Flag"
FilterControlAltText
=
"Filter column5 column"
HeaderText
=
"Processed"
UniqueName
=
"column5"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Start_Desc"
FilterControlAltText
=
"Filter column6 column"
HeaderText
=
"Description"
UniqueName
=
"column6"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"StartAddress"
FilterControlAltText
=
"Filter column7 column"
HeaderText
=
"Start Address"
UniqueName
=
"column7"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Dest_Desc"
FilterControlAltText
=
"Filter column8 column"
HeaderText
=
"Description"
UniqueName
=
"column8"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DestAddress"
FilterControlAltText
=
"Filter column9 column"
HeaderText
=
"Dest Address"
UniqueName
=
"column9"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Persons"
FilterControlAltText
=
"Filter column10 column"
HeaderText
=
"Persons"
UniqueName
=
"column10"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
HeaderStyle
BackColor
=
"DarkOrange"
/>
<
ClientSettings
>
<
ClientEvents
OnRowContextMenu
=
"RowContextMenu"
></
ClientEvents
>
</
ClientSettings
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
Modal Popup Extender, Contextmenu:
<
asp:Button
ID
=
"btnDummyDupTrip"
runat
=
"server"
Text
=
"Button"
Style
=
"display: none"
/>
<
asp:ModalPopupExtender
ID
=
"mpuDuplicateTrip"
runat
=
"server"
TargetControlID
=
"btnDummyDupTrip"
PopupControlID
=
"panDupTrip"
BackgroundCssClass
=
"modalBackground"
OkControlID
=
"btnDupCancel"
>
</
asp:ModalPopupExtender
>
<
asp:Panel
ID
=
"panDupTrip"
runat
=
"server"
CssClass
=
"ModalWindow"
Style
=
"display: none"
>
<
asp:UpdatePanel
ID
=
"UpdatePanel3"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
table
>
<
tr
>
<
td
colspan
=
"2"
align
=
"center"
>
<
asp:Label
ID
=
"lblClientsName"
runat
=
"server"
CssClass
=
"clntName"
Text
=
""
></
asp:Label
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
>
<
asp:Label
ID
=
"lblDupMsg"
runat
=
"server"
CssClass
=
"lblErrMsg"
Text
=
""
></
asp:Label
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Pickup Time: </
span
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblPickupTime"
runat
=
"server"
CssClass
=
"lbl"
Text
=
""
></
asp:Label
>
<
asp:DropDownList
ID
=
"ddlDupPkTime"
runat
=
"server"
CssClass
=
"ddl"
>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Pickup At: </
span
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblPickupAt"
runat
=
"server"
CssClass
=
"lbl"
Text
=
""
></
asp:Label
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Dropoff Time: </
span
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblDropoffTime"
runat
=
"server"
CssClass
=
"lbl"
Text
=
""
></
asp:Label
>
<
asp:DropDownList
ID
=
"ddlDupDrpTime"
runat
=
"server"
CssClass
=
"ddl"
>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Dropoff At: </
span
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblDropoffAt"
runat
=
"server"
CssClass
=
"lbl"
Text
=
""
></
asp:Label
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Date: </
span
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"txtDupDate"
runat
=
"server"
></
asp:TextBox
>
<
asp:CalendarExtender
ID
=
"calDupTrip"
runat
=
"server"
TargetControlID
=
"txtDupDate"
>
</
asp:CalendarExtender
>
<
asp:RequiredFieldValidator
ID
=
"reqDupDt"
runat
=
"server"
ValidationGroup
=
"DupTrip"
ControlToValidate
=
"txtDupDate"
ErrorMessage
=
"Date is required."
ToolTip
=
"Date is required."
SetFocusOnError
=
"True"
>Date is required.</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
span
class
=
"text"
>Route: </
span
>
</
td
>
<
td
>
<
asp:DropDownList
ID
=
"ddlDupRoute"
runat
=
"server"
>
</
asp:DropDownList
>
<
asp:RequiredFieldValidator
ID
=
"reqDupRoute"
runat
=
"server"
ValidationGroup
=
"DupTrip"
InitialValue
=
"-1"
ControlToValidate
=
"ddlDupRoute"
ErrorMessage
=
"Route is required."
ToolTip
=
"Route is required."
SetFocusOnError
=
"True"
>Route is required.</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
align
=
"center"
>
<
asp:Button
ID
=
"btnDupTrip"
runat
=
"server"
Text
=
"Duplicate Trip"
ValidationGroup
=
"DupTrip"
/>
</
td
>
</
tr
>
</
table
>
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
=
"btnDupTrip"
EventName
=
"Click"
/>
<
asp:AsyncPostBackTrigger
ControlID
=
"RadMenu2"
EventName
=
"ItemClick"
/>
</
Triggers
>
</
asp:UpdatePanel
>
<
asp:Button
ID
=
"btnDupCancel"
runat
=
"server"
Text
=
"Exit"
/>
</
asp:Panel
>
<
telerik:RadContextMenu
ID
=
"RadMenu2"
runat
=
"Server"
OnItemClick
=
"RadMenu2_ItemClick"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Duplicate This Trip"
Value
=
"Duplicate"
/>
</
Items
>
</
telerik:RadContextMenu
>
Code Behind:
Public Sub RadMenu2_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)
Handles RadMenu2.ItemClick
Dim radgridrowindex As Integer
radgridrowindex = Convert.ToInt32(Request.Form(
"radgridrowindex"
))
Dim radGridClickedRow As GridDataItem = CType(RadGrid1.Items(radgridrowindex), GridDataItem)
Dim pickupTime, dropoffTime, pickupAt, dropoffAt, clientsName As String
ViewState(
"DupTripID"
) = radGridClickedRow(
"TripRequestID"
).Text
mpuDuplicateTrip.Show()
End Sub
I placed a RadColorPicker control on my form and when I switch the rendering mode to HSB or HSV, the field labels for "R:", "G", etc. are wrapping with their associated controls, and the height of the RadColorPicker grows to a very large layout (see the attached screenshot for an example of the problem). There is no problem in the layout when I choose the "Web Palette" or "RGB Sliders" mode. And the problem is happening in IE11 as well as in Chrome and Firefox. The page is being hosted within a Bootstrap v2.2.2 container. The page markup of this control appears as follows:
<div class="row-fluid">
<div class="span12">
<asp:Label id="lblFooterBGColor" runat="server" text="Pick the background color for the site header" meta:resourceKey="lblSiteHeaderBGColorResource1"></asp:Label>
<telerik:RadColorPicker ID="radCPSiteHeader" runat="server" PaletteModes="All" ShowEmptyColor="true" ShowIcon="false" Skin="Office2010Blue" Width="150px" RenderMode="Mobile"></telerik:RadColorPicker>
</div>
</div>
Does anyone know why this is happening and how I can correct the problem? Thanks.