Hi all,
I am using rad editor with a dynamic dropdown.
While adding several values from dropdown, sometimes it starts placing newly added values in start of the editor (Control moves to beginning of the document automatically), instead of where the cursor was previously set.
Can anybody suggests, how to get rid of this?
Regards,
Yasir
| <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" |
| GridLines="Horizontal" |
| OnNeedDataSource="RadGrid1_NeedDataSource" |
| AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" > |
| <MasterTableView DataKeyNames="Key" EditMode="InPlace" CommandItemDisplay="Top"> |
| <Columns> |
| <telerik:GridEditCommandColumn> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridBoundColumn DataField="Name"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="GridLoadingPanel" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="GridLoadingPanel" runat="server" Transparency="30"> |
| <img alt="Loading..." |
| style="margin-top: 100px; border-width: 0px;" |
| src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' /> |
| </telerik:RadAjaxLoadingPanel> |
| public class Foo |
| { |
| #region public string Key |
| private string _key; |
| public string Key |
| { |
| get { return _key; } |
| set { _key = value; } |
| } |
| #endregion |
| #region public string Name |
| private string _name; |
| public string Name |
| { |
| get { return _name; } |
| set { _name = value; } |
| } |
| #endregion |
| } |
| <asp:Button ID="btnShowModal" runat="server" Text="Show Modal Popup" /> |
| <asp:Panel ID="pnlModal" runat="server" CssClass="modalpopup" style="width:450px;display:none;"> |
| <div style="margin-top:5px;"> |
| <telerik:RadColorPicker ID="RadColorPicker1" runat="server" style="margin-left:5px;"></telerik:RadColorPicker> |
| </div> |
| </asp:Panel> |
| <ajaxToolkit:ModalPopupExtender ID="ModalPopup1" runat="server" TargetControlID="btnShowModal" PopupControlID="pnlModal" |
| X="200" Y="250"></ajaxToolkit:ModalPopupExtender> |
Hi,
I am filtering My grid with dropdownlist. It is working fine. but while i am using Itemtemplate in MyCustomeFilteringColumn
getting Parser Error Message: Type 'FilteringTemplateColumns.MyCustomFilteringColumnVB' does not have a public property named 'itemtemplate'.
Please help me out.
Thanks & Regards,
Pravat Sharma
<custom:MyCustomFilteringColumnVB DataField="Country" FilterControlWidth="180px" HeaderText="Custom TemplateColumn Country">
<headerstyle width="25%" />
<itemtemplate>
<asp:LinkButton ID="lnkProducts" runat="server" ForeColor="black"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ContentID") %>'
Font-Underline="false" CssClass="labelText" CommandName="Select">
<%#DataBinder.Eval(Container.DataItem, "Title")%>
</asp:LinkButton>
</ItemTemplate>
</custom:MyCustomFilteringColumnVB>
<
telerik:RadPageView ID="rpvOwnerAndPets" runat="server">
<telerik:RadGrid ID="rgOwnerAndPets" runat="server" OnNeedDataSource="rgOwnerAndPets_NeedDataSource"
GridLines="None" BorderWidth="0px" CellPadding="0" ShowHeader="False" OnItemCommand="rgOwnerAndPets_ItemCommand"
AllowMultiRowEdit="True" OnItemCreated="rgOwnerAndPets_ItemCreated">
<MasterTableView Width="100%" AllowMultiColumnSorting="false" EditMode="InPlace">
<ItemTemplate>
<asp:HiddenField ID="hfOwnerName" runat="server" Value='<%# Bind("OwnerName") %>' />
<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[0].OwnerName") %>' />
<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[1].OwnerName") %>' />
...
Could someone help me out?
Grts!
<telerik:GridButtonColumn
ButtonType="ImageButton"
CommandName="Delete"
Text="Delete"
UniqueName="DeleteColumn"
ConfirmDialogType="RadWindow"
ConfirmText="Are you sure?"
ConfirmTitle="Delete Record">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
</telerik:GridButtonColumn>
The aspx page with the RadGrid is actually a Content page (partial class), using the Master / Content construct in ASP.NET. I have a RadAjaxManager on the Master and a RadAjaxManagerProxy on the Content page. The Delete button in the grid eventually times out and is throwing the following error:
"Microsoft JScript runtime error: Out of stack space"
If I set the ConfirmDialogType back to "Classic", all is fine and the RadGrid's OnDeleteCommand event fires as expected. Any ideas how to get the "RadWindow" ConfirmDialogType to work correctly? I think this control may be having trouble using the AjaxManagerProxy to find the true AjaxManager on the Master page...I'll appreciate any help.
Here is the Peace of code which I am using…
<telerik:RadComboBox ID="rcRFQRef" runat="server" Height="190px" Width="153px" HighlightTemplatedItems="true" MarkFirstMatch="true" EnableLoadOnDemand="true" DataTextField="RFQNo" DataValueField="RFQNo" DropDownWidth="420" OnPreRender="rcRFQRef_PreRender" CssClass="RadComboBox_Default" AutoPostBack="True" OnSelectedIndexChanged="rcRFQRef_SelectedIndexChanged" onitemcreated="rcRFQRef_ItemCreated" onitemdatabound="rcRFQRef_ItemDataBound">
<HeaderTemplate>
<table style="width: 200px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 150px;"> Agent Name</td>
<td style="width: 150px;"> RFQ No</td>
</tr>
</table>
</HeaderTemplate>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<ItemTemplate>
<table style="width: 350px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 150px;">
<div><%# DataBinder.Eval(Container.DataItem, "Agent_Name")%>
</div>
</td>
<td style="width: 150px;">
<div>
<%# DataBinder.Eval(Container.DataItem, "RFQNo")%>
</div></td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
In the “rcRFQRef_SelectedIndexChanged” Event I want to capture the AgentName along with RFQ NO.
Please help me in this regards…
Note:- I don’t want to cahange any Value/Text Field property.
Waiting for response…
Regards,Ranganath.
| <radTS:GridBoundColumn DataField="LastName" HeaderText="LastName" ReadOnly="True" UniqueName="LastName"> |
| </radTS:GridBoundColumn> |
| rgdContact.DataSource = dt |
| rgdContact.DataBind() |
| For Each GDItem As GridDataItem In rgdContact.Items |
| GDItem.Edit = True |
| Next |
| rgdContact.Rebind() |
| Private Sub rgdContact_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgdContact.ItemDataBound |
| If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then |
| Dim gridEditFormItem As GridEditableItem = CType(e.Item, GridEditableItem) |
| Dim strLastName As String = gridEditFormItem.Item("LastName").text |
| 'strLastName "nbsp;" for some reason! |
| End If |
| End Sub |