or
<telerik:RadCodeBlock ID=
"RadCodeBlock2"
runat=
"server"
><br>
<script type=
"text/javascript"
><br>
window.onbeforeunload = confirmExit;<br>
function
confirmExit()<br>
{<br>
var
actionCount = $get(
'<%=ActionCounterField.ClientID %>'
).value;<br>
if
(actionCount > 0) {<br>
alert(
"Pending Changes!"
);<br>
}<br>
}<br>
<br>
</script><br>
</telerik:RadCodeBlock>
<
asp:HiddenField
id
=
"ActionCounterField"
runat
=
"server"
/>
<br>
Protected
Sub
UpdateActionCount()<br>
<br>
ActionCounterField.Value = GoalCategoryActionList.Count<br>
<br>
End
Sub
<br>
div.RadComboBox_SST_Touch .rcbArrowCell {
width: 26px!important;
min-width: 26px!important;
height: 100%!important;
min-height: 100%!important;
background: url('ComboBox/bc-arrow.gif')!important;
background-image: url('ComboBox/bc-arrow.gif')!important;
background-color: #ffffff;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
background-size: cover!important;
background-repeat: no-repeat;
background-position: left;
background-position-x: center;
background-position-y: center;
}
div.RadComboBox_SST_Touch table td.rcbArrowCell {
width: 26px!important;
min-width: 26px!important;
height: 100%!important;
min-height: 100%!important;
background: url('ComboBox/bc-arrow.gif')!important;
background-image: url('ComboBox/bc-arrow.gif')!important;
background-color: #ffffff;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
background-size: cover!important;
background-repeat: no-repeat;
background-position: left;
background-position-x: center;
background-position-y: center;
}
div.RadComboBox_SST_Touch table td.rcbArrowCellRight {
width: 26px!important;
min-width: 26px!important;
height: 100%!important;
min-height: 100%!important;
background: url('ComboBox/bc-arrow.gif')!important;
background-image: url('ComboBox/bc-arrow.gif')!important;
background-color: #ffffff;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
background-size: cover!important;
background-repeat: no-repeat;
background-position: left;
background-position-x: center;
background-position-y: center;
}
In asp.net Telerik ,Is it possible multiple selection of RadListBoxItem using clicking and dragging the Mouse only .only its possible when we press 'shif' or 'ctrl' key and try to click and dragging using mouse.
sample code for Multiple selection:
<telerik:RadListBox SelectionMode="Multiple" ID="RadListBox1" runat="server">
<Items>
<telerik:RadListBoxItem runat="server" Value="Sample1" Text="Sample1" />
<telerik:RadListBoxItem runat="server" Value="Sample2" Text="Sample2" />
<telerik:RadListBoxItem runat="server" Value="Sample3" Text="Sample3" />
</Items>
</telerik:RadListBox>
Please suggest some solution or work around for this issue along with providing some sample code also.
Any help will be great appreaciated.
<
td
>
<
asp:Panel
ID
=
"pnlDealers"
runat
=
"server"
>
<
telerik:RadListBox
ID
=
"rlbDealer"
runat
=
"server"
Height
=
"200"
Width
=
"250"
AllowTransfer
=
"true"
ButtonSettings-Position
=
"Right"
ButtonSettings-TransferButtons
=
"All"
TransferMode
=
"Copy"
SelectionMode
=
"Multiple"
TransferToID
=
"rlbDealers"
AutoPostBackOnTransfer
=
"true"
CausesValidation
=
"false"
>
<
ItemTemplate
>
<
div
>
<
telerik:RadTreeView
ID
=
"rtvDealersAvailable"
runat
=
"server"
OnLoad
=
"rtvDealersAvailable_Load"
OnNodeClick
=
"rtvDealersAvailable_NodeClick"
>
</
telerik:RadTreeView
>
</
div
>
</
ItemTemplate
>
<
Items
>
<
telerik:RadListBoxItem
/>
</
Items
>
</
telerik:RadListBox
>
<
telerik:RadListBox
ID
=
"rlbDealers"
runat
=
"server"
SelectionMode
=
"Multiple"
Height
=
"200"
Width
=
"250"
>
</
telerik:RadListBox
>
</
asp:Panel
>
</
td
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"TrackersRadGrid"
OnNeedDataSource
=
"TrackersRadGrid_NeedDataSource"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
GridLines
=
"None"
ShowFooter
=
"true"
>
<
MasterTableView
ShowGroupFooter
=
"true"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Strategy"
HeaderText
=
"Strategy"
/>
<
telerik:GridBoundColumn
DataField
=
"PortfolioNumber"
UniqueName
=
"PortfolioNumber"
Aggregate
=
"Count"
FooterText
=
"Number of Porfolios: "
HeaderText
=
"Portfolio Number"
>
<
ItemStyle
CssClass
=
"portfolioNumber"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridHyperLinkColumn
DataNavigateUrlFields
=
"PortfolioNumber"
UniqueName
=
"PortfolioName"
HeaderText
=
"Portfolio Name"
AllowFiltering
=
"false"
DataNavigateUrlFormatString
=
"./equitygrid/tracker.aspx?portfolio={0}"
DataTextField
=
"PortfolioName"
>
</
telerik:GridHyperLinkColumn
>
<
telerik:GridBoundColumn
DataField
=
"TNA"
DataFormatString
=
"{0:c}"
UniqueName
=
"TNA"
Aggregate
=
"Sum"
FooterText
=
"Total TNA: "
HeaderText
=
"TNA"
>
<
ItemStyle
CssClass
=
"numeric tna"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"InternationalRevenuePercent"
HeaderText
=
"Intl %"
UniqueName
=
"InternationalRevenuePercent"
>
<
ItemStyle
CssClass
=
"numeric intlRevPct"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"InternationalRevenue"
HeaderText
=
"International Assests"
UniqueName
=
"InternationalRevenue"
>
<
ItemStyle
CssClass
=
"numeric intlRev"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PortfolioManagers"
HeaderText
=
"Managers"
UniqueName
=
"PortfolioManagers"
>
<
ItemStyle
CssClass
=
"portfolioManagers"
/>
</
telerik:GridBoundColumn
>
</
Columns
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldAlias
=
"Strategy"
FieldName
=
"Strategy"
/>
</
GroupByFields
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"Strategy"
FieldName
=
"Strategy"
/>
</
SelectFields
>
</
telerik:GridGroupByExpression
>
<
telerik:GridGroupByExpression
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldAlias
=
"PortfolioManagers"
FieldName
=
"PortfolioManagers"
/>
</
GroupByFields
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"PortfolioManagers"
FieldName
=
"PortfolioManagers"
FormatString
=
""
HeaderText
=
"Manager"
/>
</
SelectFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
Private Sub Grid_ColumnCreated(ByVal sender As Object, ByVal e As GridColumnCreatedEventArgs)
Dim settings As ColumnSettings = Settings.AutoGeneratedColumnSettings.Find(Function([set] As ColumnSettings) Do
Return [set].UniqueName = e.Column.UniqueName End Function)
Dim column As GridColumn = e.Column
If not (settings is Nothing) Then
SetColumnSettings(column, settings)
End If
End Sub
Thanks,
Brent