protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
if (e.Item.OwnerTableView.IsItemInserted)
{
GridEditFormItem item = (GridEditFormItem)e.Item;
RadComboBox RadComboBox_Mainwork = (RadComboBox)item.FindControl("RadComboBox_Mainwork");
RadComboBox RadCombo_SubWork = (RadComboBox)item.FindControl("RadCombo_SubWork");
RadTextBox projectcode = (RadTextBox)item.FindControl("projectcode");
Label projectcode1 = (Label)item.FindControl("projectcode1");
RadComboBox RadComboBox1 = (RadComboBox)item.FindControl("RadComboBox1");
using (var db = new DoskContractServicesDataContext(Globals.strCon))
{
var orgreqfinal = (from a in db.dsmainworks
select new { a.maincode, a.mainname }).ToList();
RadComboBox_Mainwork.DataSource = orgreqfinal;
RadComboBox_Mainwork.DataValueField = "maincode";
RadComboBox_Mainwork.DataTextField = "mainname";
RadComboBox_Mainwork.Items.Insert(0, new RadComboBoxItem("Select Main Work", "-1"));
}
}
}
<
telerik:RadComboBox
ID
=
"RadComboBox_Mainwork"
runat
=
"server"
Width
=
"85%"
DataValueField
=
"maincode"
DataTextField
=
"mainname"
MaxLength
=
"6"
AppendDataBoundItems
=
"true"
></
telerik:RadComboBox
>
Hello,
We used the property RadTextBox control TextMode = "Multiline" within <ItemTemplate> </ telerik: RadPanelItem>, and there is a delay between when the user types and what is displayed in RadTextBox. Property without the property TextMode = "Multiline" is not delayed. You can use the following code:
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
>
<
telerik:RadPanelBar
runat
=
"server"
ID
=
"RadPanelBar1"
Width
=
"567px"
Skin
=
"Office2007"
>
<
Items
>
<
telerik:RadPanelItem
Expanded
=
"True"
Text
=
"Date generale"
runat
=
"server"
>
<
Items
>
<
telerik:RadPanelItem
Value
=
"AccountInformation"
runat
=
"server"
Expanded
=
"true"
>
<
ItemTemplate
>
<
table
width
=
"500px"
border
=
"0"
>
<
tr
>
<
td
valign
=
"top"
width
=
"201"
>
<
asp:Label
runat
=
"server"
ID
=
"Label3"
Text
=
"Domeniu"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboTip"
runat
=
"server"
Height
=
"200px"
Width
=
"220px"
AutoPostBack
=
"True"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style6"
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text
=
"Subdomeniu"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboSub"
runat
=
"server"
AutoPostBack
=
"True"
Height
=
"200px"
Skin
=
"Office2007"
Width
=
"220px"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style6"
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Text
=
"Nr. crt."
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadNumericTextBox
ID
=
"txtNr"
runat
=
"server"
Type
=
"Number"
NumberFormat-DecimalDigits
=
"0"
Skin
=
"Office2007"
>
</
telerik:RadNumericTextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator1"
runat
=
"server"
ErrorMessage
=
"Camp obligatoriu"
ControlToValidate
=
"txtNr"
ForeColor
=
"Red"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style6"
>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
Text
=
"Data"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadDatePicker
ID
=
"txtData"
runat
=
"server"
Skin
=
"Office2007"
>
<
Calendar
ID
=
"Calendar1"
runat
=
"server"
Skin
=
"Office2007"
UseColumnHeadersAsSelectors
=
"False"
>
</
Calendar
>
<
DateInput
DateFormat
=
"dd.MM.yyyy"
DisplayDateFormat
=
"dd.MM.yyyy"
>
</
DateInput
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/>
</
telerik:RadDatePicker
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator2"
runat
=
"server"
ErrorMessage
=
"Camp obligatoriu"
ControlToValidate
=
"txtData"
ForeColor
=
"Red"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style6"
>
<
asp:Label
ID
=
"Label6"
runat
=
"server"
Text
=
"Segment"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"txtSegment"
Skin
=
"Office2007"
Width
=
"300px"
></
telerik:RadTextBox
>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadPanelItem
>
</
Items
>
</
telerik:RadPanelItem
>
<
telerik:RadPanelItem
Expanded
=
"true"
Text
=
"Valori indicator"
runat
=
"server"
>
<
Items
>
<
telerik:RadPanelItem
Expanded
=
"true"
Value
=
"valori"
runat
=
"server"
>
<
ItemTemplate
>
<
table
width
=
"500px"
border
=
"0"
>
<
tr
>
<
td
valign
=
"top"
class
=
"style7"
>
<
asp:Label
ID
=
"Label7"
runat
=
"server"
Text
=
"Capitol standard / Cod defect"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadTextBox
ID
=
"txtCapitol"
runat
=
"server"
Skin
=
"Office2007"
Width
=
"300px"
>
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style7"
>
<
asp:Label
ID
=
"Label8"
runat
=
"server"
Text
=
"Proces"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadTextBox
ID
=
"txtProces"
runat
=
"server"
Skin
=
"Office2007"
Width
=
"300px"
>
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style7"
>
<
asp:Label
ID
=
"Label12"
runat
=
"server"
Text
=
"Neconformitatea / aspect reclamat"
Width
=
"172px"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadTextBox
ID
=
"txtNeconf"
runat
=
"server"
Height
=
"60px"
Skin
=
"Office2007"
TextMode
=
"MultiLine"
Width
=
"300px"
>
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style7"
>
<
asp:Label
ID
=
"Label10"
runat
=
"server"
Text
=
"Cauza"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
asp:TextBox
ID
=
"txtCauza"
runat
=
"server"
Width
=
"300px"
Height
=
"60px"
TextMode
=
"MultiLine"
></
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"style7"
>
<
asp:Label
ID
=
"Label11"
runat
=
"server"
Text
=
"Actiuni"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadTextBox
ID
=
"txtActiuni"
runat
=
"server"
Height
=
"60px"
Skin
=
"Office2007"
TextMode
=
"MultiLine"
Width
=
"300px"
>
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
width
=
"201"
>
<
asp:Label
runat
=
"server"
ID
=
"Label3"
Text
=
"Recourent"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboRecurent"
runat
=
"server"
Height
=
"200px"
Width
=
"220px"
AutoPostBack
=
"True"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
width
=
"201"
>
<
asp:Label
runat
=
"server"
ID
=
"Label9"
Text
=
"Tip recurenta / neconformitate"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboTipRec"
runat
=
"server"
Height
=
"200px"
Width
=
"220px"
AutoPostBack
=
"True"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
width
=
"201"
>
<
asp:Label
runat
=
"server"
ID
=
"Label13"
Text
=
"Punctaj"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboPunctaj"
runat
=
"server"
Height
=
"200px"
Width
=
"220px"
AutoPostBack
=
"True"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
width
=
"201"
>
<
asp:Label
runat
=
"server"
ID
=
"Label14"
Text
=
"Audit de referinta"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"cboAudit"
runat
=
"server"
Height
=
"200px"
Width
=
"220px"
AutoPostBack
=
"True"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadPanelItem
>
</
Items
>
</
telerik:RadPanelItem
>
</
Items
>
<
CollapseAnimation
Duration
=
"100"
Type
=
"None"
/>
<
ExpandAnimation
Duration
=
"100"
Type
=
"None"
/>
</
telerik:RadPanelBar
>
</
telerik:RadAjaxPanel
>
Thanks
radTreeView.OnClientContextMenuItemClicked =
"OnCatalogTreeItemClicked"
;
RadTreeViewContextMenu contextMenu =
new
RadTreeViewContextMenu();
contextMenu.ClickToOpen =
true
;
RadMenuItem item =
new
RadMenuItem(
"Delete this node"
);
item.Value =
"delete"
;
contextMenu.Items.Add(item);
radTreeView.ContextMenus.Add(contextMenu);
Hi greetings,
I'm using radcontrols in my application and they are well.
Currently I'm facing one difficulty with radchart.
Issue::
I'm binding the different list<int> for the serieses.
If my list contains the zero value there I want to show the line color transparently.
Here is my code.
<
telerik:RadChart
ID
=
"trndChrt"
runat
=
"server"
SeriesOrientation
=
"Vertical"
ChartTitle-Visible
=
"false"
SkinsOverrideStyles
=
"true"
CreateImageMap
=
"false"
width
=
"770px"
Height
=
"278px"
>
<
Series
>
<
telerik:ChartSeries
Type
=
"Line"
Name
=
"PTT"
>
<
Appearance
BarWidthPercent
=
"90"
LabelAppearance-Visible
=
"false"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"#000099"
>
</
FillStyle
>
<
PointMark
Visible
=
"True"
Border-Width
=
"1"
Border-Color
=
"Red"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"3px"
Dimensions-Width
=
"4px"
>
<
FillStyle
MainColor
=
"Yellow"
FillType
=
"solid"
>
</
FillStyle
>
</
PointMark
>
<
EmptyValue
Mode
=
"Zero"
Line-Color
=
"Transparent"
>
</
EmptyValue
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
Type
=
"Line"
Name
=
"VOX"
Appearance-LegendDisplayMode
=
"SeriesName"
>
<
Appearance
BarWidthPercent
=
"90"
LabelAppearance-Visible
=
"false"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"Black"
>
</
FillStyle
>
<
PointMark
Visible
=
"True"
Border-Width
=
"1"
Border-Color
=
"Red"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"3px"
Dimensions-Width
=
"4px"
>
<
FillStyle
MainColor
=
"Yellow"
FillType
=
"solid"
>
</
FillStyle
>
</
PointMark
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
Type
=
"Line"
Name
=
"State Change"
>
<
Appearance
BarWidthPercent
=
"90"
LabelAppearance-Visible
=
"false"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"#f85007"
>
</
FillStyle
>
<
PointMark
Visible
=
"True"
Border-Width
=
"1"
Border-Color
=
"Red"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"3px"
Dimensions-Width
=
"4px"
>
<
FillStyle
MainColor
=
"Yellow"
FillType
=
"solid"
>
</
FillStyle
>
</
PointMark
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
Type
=
"Line"
Name
=
"Active Dispatchers"
>
<
Appearance
BarWidthPercent
=
"90"
LabelAppearance-Visible
=
"false"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"#cc00ff"
>
</
FillStyle
>
<
PointMark
Visible
=
"True"
Border-Width
=
"1"
Border-Color
=
"Red"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"3px"
Dimensions-Width
=
"4px"
>
<
FillStyle
MainColor
=
"Yellow"
FillType
=
"solid"
>
</
FillStyle
>
</
PointMark
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
Type
=
"Line"
Name
=
"Calls"
>
<
Appearance
BarWidthPercent
=
"90"
LabelAppearance-Visible
=
"false"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"#339933"
>
</
FillStyle
>
<
PointMark
Visible
=
"True"
Border-Width
=
"1"
Border-Color
=
"Red"
Dimensions-AutoSize
=
"false"
Dimensions-Height
=
"3px"
Dimensions-Width
=
"4px"
>
<
FillStyle
MainColor
=
"Yellow"
FillType
=
"solid"
>
</
FillStyle
>
</
PointMark
>
</
Appearance
>
</
telerik:ChartSeries
>
</
Series
>
<
PlotArea
Appearance-FillStyle-MainColor
=
"White"
XAxis-LayoutMode
=
"Normal"
EmptySeriesMessage-Appearance-Visible
=
"false"
Appearance-Border-Color
=
"Black"
Appearance-FillStyle-FillType
=
"Solid"
DataTable-Appearance-CellWidth
=
"200"
EmptySeriesMessage-Visible
=
"false"
XAxis-Appearance-MajorGridLines-Color
=
"#d2d2d2"
XAxis-Appearance-MajorGridLines-PenStyle
=
"Solid"
XAxis-Appearance-MajorGridLines-Width
=
"1"
>
</
PlotArea
>
<
Legend
Visible
=
"false"
>
</
Legend
>
</
telerik:RadChart
>
Code behind
for ( int i = 0; i <= 15; i++)
{
lastDate = firstDate.AddHours(hours);
var pttCnt = (from records in dtTrend.AsEnumerable() where (records.Field<
string
>("ActivityType") == "PTT") && (records.Field<
DateTime
>("BeginTime") >= firstDate) && (records.Field<
DateTime
>("EndTime") <= lastDate) select records).Count();
var voxCnt = (from records in dtTrend.AsEnumerable() where (records.Field<
string
>("ActivityType") == "VOX") && (records.Field<
DateTime
>("BeginTime") >= firstDate) && (records.Field<
DateTime
>("EndTime") <= lastDate) select records).Count();
var statChngCnt = (from records in dtTrend.AsEnumerable() where (records.Field<
string
>("ActivityType") == "State Change") && (records.Field<
DateTime
>("BeginTime") >= firstDate) && (records.Field<
DateTime
>("EndTime") <= lastDate) select records).Count();
var totalCalCnt = (from records in dtTrend.AsEnumerable() where (records.Field<
DateTime
>("BeginTime") >= firstDate) && (records.Field<
DateTime
>("EndTime") <= lastDate) select records).Count();
var activeDispatchrCnt = (from records in dtDispatchr.AsEnumerable() where (records.Field<
DateTime
>("LoginTime") >= firstDate) && (records.Field<
DateTime
>("LoginTime") <= lastDate) select records).Count();
pttList.Add(pttCnt);
voxLIst.Add(voxCnt);
statChngList.Add(statChngCnt);
actDisptchrList.Add(activeDispatchrCnt);
totalCalList.Add(totalCalCnt);
xAxisDateList.Add(lastDate.Date.ToString("d"));
firstDate = lastDate;
}
for (int i = 0; i < pttList.Count; i++)
{
trndChrt.Series[0].AddItem(Convert.ToDouble(pttList[i]));
trndChrt.Series[1].AddItem(Convert.ToDouble(voxLIst[i]));
trndChrt.Series[2].AddItem(Convert.ToDouble(statChngList[i]));
trndChrt.Series[3].AddItem(Convert.ToDouble(actDisptchrList[i]));
trndChrt.Series[4].AddItem(Convert.ToDouble(totalCalList[i]));
}
Suppose my one of the list contains values like 1,5,4,5,5,0,4,5,,2,0,22,0
Here for the value "0" I want to have the line in diffrent color or transparent.
and i tried to disable the "empty series message also but i cloud not able.
Please help me as soon as possible.
protected
void
rtsPolicysettings_TabClick(
object
sender, RadTabStripEventArgs e)
{
AddPageView(e.Tab);
}
private
void
AddPageView(RadTab tab)
{
RadPageView rpvContainer =
new
RadPageView();
rpvContainer.ID = tab.Value;
rpvContainer.Height = Unit.Pixel(300);
rmpPolicysettings.PageViews.Add(rpvContainer);
tab.PageViewID = rpvContainer.ID;
tab.PageView.Selected =
true
;
tab.Selected =
true
;
}
protected
void
rmpPolicysettings_PageViewCreated(
object
sender, RadMultiPageEventArgs e)
{
PolicySettings policySettings = (PolicySettings)Page.LoadControl(e.PageView.ID +
".ascx"
);
policySettings.ID =
"uc"
+ e.PageView.ID;
e.PageView.Controls.Add(policySettings);
}
<
telerik:RadTabStrip
Width
=
"100%"
Orientation
=
"VerticalRight"
AutoPostBack
=
"True"
Skin
=
"WebBlue"
ID
=
"rtsPolicysettings"
runat
=
"server"
MultiPageID
=
"rmpPolicysettings"
OnClientTabSelecting
=
"onTabSelecting"
OnTabClick
=
"rtsPolicysettings_TabClick"
SelectedIndex
=
"5"
>
<
Tabs
>
<
telerik:RadTab
Value
=
"AddViewQuestions"
Font-Size
=
"Small"
meta:resourcekey
=
"lnkAddViewQuestionsResource1"
ImageUrl
=
"images/enroll_ques.png"
>
</
telerik:RadTab
>
<
telerik:RadTab
Value
=
"QuestionAnswerSettings"
Font-Size
=
"Small"
meta:resourcekey
=
"lnkQAAettingsResource1"
ImageUrl
=
"images/enroll_settings.png"
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
ID
=
"rmpPolicysettings"
Height
=
"300px"
runat
=
"server"
OnPageViewCreated
=
"rmpPolicysettings_PageViewCreated"
>
</
telerik:RadMultiPage
>
Columns.Clear(); Columns.Add(new GridEditCommandColumn { ItemStyle = { Width = Unit.Pixel(50) }, ButtonType = GridButtonColumnType.ImageButton, }); foreach (GridColumn column in _columnBuilder.BuildColumns(_zsheet, _zTable, _dataSourceProvider)) { Columns.Add(column); }Column added successfully but I can't see its header. 1st data column header is placed over command column. Do I have to do something else when adding a command column?