Apologies if this has already been addressed.
Is there a way to intercept and access the dialog box that opens when Rename or New Folder is clicked? I'd like to select the text in the textbox (minus file extension if applicable) when the dialog box opens.
I've gotten feedback from my users who are frustrated with the current text box behavior of inserting text before "New Folder" or "[Existing File/Folder Name]" rather than replacing it when they begin typing after hitting Rename/New Folder as they expect because that's the behavior they're used to with Windows Explorer.
I have a RadGrid. In the RadGrid I have some GridTemplateColumns. In the EditItemTemplate I have a RadDropDownList. The GridTemplateColumn has a DataField defined. My expectation is that when the page loads that the RadDropDownList in the EditItemTemplate should have a SelectedValue that matches the DataField. But the SelectedValue is the default (blank) first item in the dropdown list. As soon as I select something from the dropdown list everything is happy including the Label that is in the ItemTemplate shows the text value for the item I selected from the dropdown list.
It works if I use a GridDropDownColumn instead, but I cannot in this case as I need to trigger javascript stuff based on an item selected from the dropdown.
How do I make sure that when the page loads the dropdown list's selected value matches the column's DataField value? It seems it should work this way automatically.
<
telerik:RadGrid
ID
=
"grdAddresses"
runat
=
"server"
AutoGenerateColumns
=
"false"
DataKeyNames
=
"Uid"
OnNeedDataSource
=
"grdAddresses_NeedDataSource"
OnBatchEditCommand
=
"grdAddresses_BatchEditCommand"
OnPreRender
=
"grdAddresses_PreRender"
EnableViewState
=
"true"
AllowSorting
=
"false"
AllowPaging
=
"false"
>
<
MasterTableView
EditMode
=
"Batch"
BatchEditingSettings-EditType
=
"Row"
>
<
Columns
>
<
telerik:GridButtonColumn
CommandName
=
"Delete"
ButtonType
=
"ImageButton"
UniqueName
=
"DeleteColumn"
ImageUrl
=
"~/Images/clear-button-24x24.png"
HeaderStyle-Width
=
"4%"
></
telerik:GridButtonColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Type*"
DataField
=
"TypeUid"
UniqueName
=
"Type"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"ddlType"
runat
=
"server"
DataTextField
=
"DropDownListText"
DataValueField
=
"Uid"
DataFied
=
"TypeUid"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Address*"
DataField
=
"Address"
/>
<
telerik:GridBoundColumn
HeaderText
=
"Supplemental Address"
DataField
=
"AddressSupplemental"
/>
<
telerik:GridBoundColumn
HeaderText
=
"City/Locality"
DataField
=
"LocalityName"
/>
<
telerik:GridTemplateColumn
HeaderText
=
"Country"
DataField
=
"CountryUid"
UniqueName
=
"Country"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
Text='<%# Eval("CountryUid") %>' />
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"ddlCountry"
runat
=
"server"
DataTextField
=
"DropDownListText"
DataValueField
=
"Uid"
OnClientSelectedIndexChanged
=
"countrySelectedIndexChanged"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"State"
DataField
=
"StateUid"
UniqueName
=
"State"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
Text='<%# Eval("StateUid") %>' />
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"ddlState"
runat
=
"server"
OnClientItemsRequesting
=
"stateItemsRequesting"
OnClientSelectedIndexChanged
=
"stateSelectedIndexChanged"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Postal Code"
DataField
=
"PostalCode"
/>
<
telerik:GridTemplateColumn
HeaderText
=
"County"
DataField
=
"CountyUid"
UniqueName
=
"County"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
Text='<%# Eval("CountyUid") %>' />
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"ddlCounty"
runat
=
"server"
OnClientItemsRequesting
=
"countyItemsRequesting"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi,
I have just moved ComponentArt to Telerik so please pardon my ignorance.
I am trying to have a radgrid inside a panelbar item and was just wondering if its possible to load the radgrid only when the panelbar item is expanded/clicked?
I do not want to bring it from server unless the user clicks the panelbar item.
Can you please show me an example which achieves this effect?
Thank you
Hi,
We have a RadSearchBox that get populated using DataTable. We also have a RadListview on the same page. Our requirement is when data is loaded into Search dropdown, if the data is already in RadListview, that value should appear as BOLD in search drop down. Attached is an example. If Alabama Power is in the search box it should appear as bold.
Can anyone please help me with that.
Me.RTLGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML
Me.RTLGrid1.ExportSettings.ExportOnlyData = True
Me.RTLGrid1.ExportSettings.OpenInNewWindow = True
Me.RTLGrid1.MasterTableView.ExportToExcel()
'Me.RTLGrid1.MasterTableView.ExportToCSV()
<telerik:GridTemplateColumn DataField="role" HeaderText="Role" UniqueName="Role"> |
<EditItemTemplate> |
<asp:DropDownList ID="ddlRoles" runat="server" DataTextField="Role" DataValueField="Role" |
Width="125px"> |
</asp:DropDownList> |
</EditItemTemplate> |
<ItemTemplate> |
<asp:Label ID="lblRole" runat="server" Text='<%# Bind("role") %>'></asp:Label> |
</ItemTemplate> |
<ItemStyle Wrap="False" /> |
</telerik:GridTemplateColumn> |
protected void rgUserAdmin_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item.ItemType == GridItemType.EditItem) |
{ |
GridEditableItem edtItem = (GridEditableItem)e.Item; |
DropDownList ddl = (DropDownList)edtItem.FindControl("ddlRoles"); |
if (null != ddl) |
{ |
ddl.DataSource = ForecastUtils.GetAllMetricUserRoles(); |
ddl.DataTextField = "role"; |
ddl.DataValueField = "role"; |
// this is where I need to set the value of this ddl to the value |
// from the Label on the ItemTemplate. |
ddl.SelectedIndex = -1; |
ddl.DataBind(); |
} |
} |
} |
What would be a good approach to allow for rich content editing for each slide, basically want to have a dynamic amount of slides depending on images in a folder that will be a background image for the slide. Then each slide needs to have a layer of rich content that can be edited per slide.
Can i create slides (server side) per images in folder and inside the slide dynamically create a radeditor that has the image as background and store the content in my database and make sure i pause the slide on mouseover (when editor is in edit mode) to allow for editing. or is there any better approach to this? anyone done something similar?
Christian