or
Hi All,
I have a radcombox, I have a add button right next to rad combox, If the user chooses something from the rdcombox box, the items moves from the combox to the listbox. I applied radAjaxmanager on the add button so that no postback can be seen if add button is clicked. I am making a panel visible in the code behing once the add button is clicked. when i apply teh ajax on the add button, the panel does not become visible. below is my code.
<
td
style
=
"width: 160px"
valign
=
"top"
>
<
telerik:RadComboBox
ID
=
"RadComboBox_Filter"
runat
=
"server"
Width
=
"156px"
OnClientSelectedIndexChanging
=
"RadComboBox_Loads"
OnItemsRequested
=
"RadComboBox_filters_ItemsRequested"
EnableLoadOnDemand
=
"True"
AllowCustomText
=
"True"
EmptyMessage
=
"Select Filters"
HighlightTemplatedItems
=
"True"
</telerik:RadComboBox>
</
td
>
<
td
valign
=
"top"
>
<
telerik:RadButton
runat
=
"server"
Text
=
"Add"
Width
=
"60px"
OnClick
=
"btnAdd_Click"
ID
=
"btnAdd"
SplitButtonCssClass
=
""
SplitButtonPosition
=
"Right"
>
</
telerik:RadButton
>
</
td
>
<
td
rowspan
=
"5"
valign
=
"top"
colspan
=
"10"
>
<
telerik:RadListBox
ID
=
"radList_Systems"
runat
=
"server"
Height
=
"65px"
Width
=
"200px"
oninserted
=
"radList_Systems_Inserted"
</telerik:RadListBox>
</
td
>
</
tr
>
<
telerik:RadAjaxManager
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnAdd"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radList_Systems"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnRemove"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radList_Systems"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadChart
ID
=
"RadChart1"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
Height
=
"650px"
Skin
=
"Default"
Width
=
"1100px"
AutoLayout
=
"True"
>
<
Appearance
>
<
Border
Color
=
"134, 134, 134"
/>
</
Appearance
>
<
Series
>
<
telerik:ChartSeries
Name
=
"Unspecified"
DataYColumn
=
"Group1Perc"
DefaultLabelValue
=
"#Y%"
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"11, 111, 21"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"69, 115, 167"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
Name
=
"Routine visit, unspecified purpose"
DataYColumn
=
"Group2Perc"
DefaultLabelValue
=
"#Y%"
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"111, 11, 99"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"107, 70, 68"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group3Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Contracting discussion/negotiation"
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"0, 0, 153"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"136, 166, 78"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group4Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Present/discuss new biopharmaceutical company product data"
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"196, 196, 196"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"113, 88, 143"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group5Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Discuss new competitor product data "
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"84, 208, 116"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"66, 152, 175"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group6Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Discuss new entrant (brand or generic) "
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"166, 42, 151"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
></
TextAppearance
>
<
Border
Color
=
"219, 132, 61"
Visible
=
"False"
Width
=
"0"
></
Border
>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group7Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Present/discuss value added program/distribute value added materials "
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"3, 122, 231"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
>
</
TextAppearance
>
<
Border
Visible
=
"False"
Width
=
"0"
/>
</
Appearance
>
</
telerik:ChartSeries
>
<
telerik:ChartSeries
DataYColumn
=
"Group8Perc"
DefaultLabelValue
=
"#Y%"
Name
=
"Other"
>
<
Appearance
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
"134, 134, 134"
GammaCorrection
=
"False"
>
</
FillStyle
>
<
TextAppearance
TextProperties-Color
=
"Black"
>
</
TextAppearance
>
<
Border
Visible
=
"False"
Width
=
"0"
/>
</
Appearance
>
</
telerik:ChartSeries
>
</
Series
>
<
Legend
>
<
Appearance
Dimensions-Margins
=
"1px, 1px, 1px, 1px"
Dimensions-Paddings
=
"2px, 8px, 6px, 3px"
Overflow
=
"Row"
Position-AlignedPosition
=
"Bottom"
>
<
ItemTextAppearance
TextProperties-Color
=
"Black"
>
</
ItemTextAppearance
>
<
ItemMarkerAppearance
Figure
=
"Square"
>
</
ItemMarkerAppearance
>
<
Border
Visible
=
"False"
/>
</
Appearance
>
</
Legend
>
<
PlotArea
>
<
XAxis
AutoScale
=
"False"
DataLabelsColumn
=
"XLabel"
MaxValue
=
"7"
MinValue
=
"1"
Step
=
"1"
>
<
Appearance
Color
=
"134, 134, 134"
MajorTick-Color
=
"134, 134, 134"
>
<
MajorGridLines
Color
=
"134, 134, 134"
Width
=
"0"
/>
<
TextAppearance
TextProperties-Color
=
"Black"
>
</
TextAppearance
>
</
Appearance
>
<
AxisLabel
>
<
TextBlock
>
<
Appearance
TextProperties-Color
=
"Black"
>
</
Appearance
>
</
TextBlock
>
</
AxisLabel
>
<
Items
>
<
telerik:ChartAxisItem
Value
=
"1"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"2"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"3"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"4"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"5"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"6"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"7"
>
</
telerik:ChartAxisItem
>
</
Items
>
</
XAxis
>
<
YAxis
AutoScale
=
"False"
MaxValue
=
"100"
MinValue
=
"0"
Step
=
"10"
>
<
Appearance
Color
=
"134, 134, 134"
MajorTick-Color
=
"134, 134, 134"
MinorTick-Color
=
"134, 134, 134"
MajorTick-Visible
=
"False"
MinorTick-Visible
=
"False"
>
<
MajorGridLines
Color
=
"134, 134, 134"
Visible
=
"False"
/>
<
MinorGridLines
Color
=
"134, 134, 134"
Visible
=
"False"
/>
<
TextAppearance
TextProperties-Color
=
"Black"
>
</
TextAppearance
>
</
Appearance
>
<
AxisLabel
>
<
TextBlock
>
<
Appearance
TextProperties-Color
=
"Black"
>
</
Appearance
>
</
TextBlock
>
</
AxisLabel
>
<
Items
>
<
telerik:ChartAxisItem
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"10"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"20"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"30"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"40"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"50"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"60"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"70"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"80"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"90"
>
</
telerik:ChartAxisItem
>
<
telerik:ChartAxisItem
Value
=
"100"
>
</
telerik:ChartAxisItem
>
</
Items
>
</
YAxis
>
<
Appearance
Dimensions-Margins
=
"90px, 50px, 170px, 50px"
>
<
FillStyle
FillType
=
"Solid"
MainColor
=
""
SecondColor
=
""
>
</
FillStyle
>
</
Appearance
>
</
PlotArea
>
<
ChartTitle
>
<
Appearance
>
<
FillStyle
MainColor
=
""
>
</
FillStyle
>
</
Appearance
>
<
TextBlock
Text
=
"Original Purpose(s) of Meeting"
>
<
Appearance
TextProperties-Color
=
"Black"
TextProperties-Font
=
"Arial, 18px"
>
</
Appearance
>
</
TextBlock
>
</
ChartTitle
>
</
telerik:RadChart
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Web20"
OnItemCreated
=
"RadGrid1_ItemCreated"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
OnColumnCreated
=
"RadGrid1_ColumnCreated"
AutoGenerateColumns
=
"False"
ShowStatusBar
=
"True"
CellSpacing
=
"0"
GridLines
=
"None"
AllowAutomaticInserts
=
"True"
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
></
HeaderContextMenu
>
<
MasterTableView
DataKeyNames
=
"CATEGORY_CDE, PARENT_CDE"
ShowHeader
=
"true"
HierarchyDefaultExpanded
=
"false"
AllowSorting
=
"true"
CommandItemDisplay
=
"Bottom"
editmode
=
"InPlace"
InsertItemDisplay
=
"Bottom"
>
<
SelfHierarchySettings
KeyName
=
"CATEGORY_CDE"
ParentKeyName
=
"PARENT_CDE"
/>
<
DetailTables
>
<
telerik:GridTableView
runat
=
"server"
DataKeyNames
=
"Category_Cde,Product_Cde"
DataMember
=
"ProductList"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"Category_Cde"
MasterKeyField
=
"Category_Cde"
/>
</
ParentTableRelation
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
/>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
telerik:GridTableView
>
</
DetailTables
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
AddNewRecordText
=
"Add New Category"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridExpandColumn
FilterControlAltText
=
"Filter ExpandColumn column"
Visible
=
"True"
>
</
telerik:GridExpandColumn
>
<
telerik:GridBoundColumn
DataField
=
"Category_Cde"
UniqueName
=
"Category_Cde"
Visible
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Parent_cde"
UniqueName
=
"Parent_cde"
Visible
=
"true"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
ClientSettings
AllowExpandCollapse
=
"true"
/>
<
FilterMenu
EnableImageSprites
=
"False"
></
FilterMenu
>
</
telerik:RadGrid
>
Protected
Sub
RadGrid1_NeedDataSource(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridNeedDataSourceEventArgs)
Handles
RadGrid1.NeedDataSource
bindRadDataGrid()
End
Sub
Sub
bindRadDataGrid()
Dim
db
As
New
WebCatVB.category
categoryListInfo = db.GetCategoryList()
RadGrid1.DataSource = categoryListInfo
End
Sub
Protected
Sub
RadGrid1_DetailTableDataBind(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridDetailTableDataBindEventArgs)
Handles
RadGrid1.DetailTableDataBind
Dim
parentItem
As
GridDataItem =
CType
(e.DetailTableView.ParentItem, GridDataItem)
If
parentItem.Edit
Then
Return
End
If
If
(e.DetailTableView.DataMember =
"ProductList"
)
Then
Dim
db
As
New
WebCatVB.product
Dim
dataItem
As
GridDataItem =
CType
(e.DetailTableView.ParentItem, GridDataItem)
Dim
cat
As
String
= dataItem.GetDataKeyValue(
"CATEGORY_CDE"
).ToString()
e.DetailTableView.DataSource = db.GetProductList(cat)
End
If
End
Sub