Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi Team,

I have implemented RadGrid in a Email Client scenario. Whan I click the RadGridItem I load an user conrol on the same page. Talking about this everything is ok. The problem is that RadGrid not only binds the user controll but also itself which makes everything look dummy. So how can I stop RadGrid from rebinding itself.

Best regards, Ivan.
Tsvetoslav
Telerik team
 answered on 28 Jun 2012
5 answers
208 views
Hi,

I have combo box, im loading the item on load demand. I have client selected index changed event, if i type exact text(case sensitive) and when i come out of the combobox and clicked on out side of the combobox,onclientselectedindexchanged event is firing. I don't want to fire this event when exact match is found. I want user to select the item from the combobox list then only i want this event to be fire.

I have

MarkFirstMatch

 

="false"

 

Attachment1 is firing the event.
Attachment2 is not firing the event.
Please let me know the solution for this. If this is the default behaviour of the combobox, are there any work arounds for the solution.

Thanks in Advance,
Hari.
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
1 answer
139 views
I'm not sure its possible but I'd like to be able to enter multiple numbers into a numeric textbox.
I'd like to be able to enter a string of numbers such as: 12345, 12365, 14356.
Each number must be a whole number with no decimals. Is this possible or should I use a textbox and validate each value individually after splitting the string?

Thanks
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2012
4 answers
131 views
Dear Sir
i Have a RadRotator in WebControl and i'm loading it in the page within RadAjaxPanel
in IE9 is working fine but in FF OR Safari the images not Showing in the first click button " Cmd_ReadMore " the Secound Click it's showing

how i can solve this problem

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                 <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="Cmd_ReadMore">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="Cmd_Back">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                 </AjaxSettings>
           </telerik:RadAjaxManager>
           <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server">
           </telerik:RadAjaxLoadingPanel>
<telerik:RadButton runat="server" ID="Cmd_ReadMore"  Text="Back"></telerik:RadButton>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
<asp:Panel ID="Pnl_Data"  runat="server"  Visible="false" >
<telerik:RadButton runat="server" ID="Cmd_Back"  Text="Back"></telerik:RadButton>
     <ibw:imageBrowser ID="ImgBrow" runat="server"   />
</asp:Panel>
 </telerik:RadAjaxPanel>

Code Behind
Public Sub Cmd_ReadMore_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = True
       Me.ImgBrow.LoadImages()
End Sub
Public Sub Cmd_Back_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = False
        Me.ImgBrow.ClearImages()
End Sub
Ayman
Top achievements
Rank 1
 answered on 28 Jun 2012
1 answer
135 views
I need hide the first column of the grid when user click on Edit linnk.
Where I can do this?

I attach an image.


this is part of my grid
   <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="CommunityGrid_NeedDataSource"
            OnUpdateCommand="CommunityGrid_UpdateCommand" OnInsertCommand="CommunityGrid_InsertCommand"
            AutoGenerateColumns="False" OnItemCommand="CommunityGrid_ItemCommand" OnPreRender="CommunityGrid_PreRender"
            OnItemCreated="CommunityGrid_ItemCreated" OnDeleteCommand="CommunityGrid_DeleteCommand"
            OnItemDataBound="CommunityGrid_ItemDataBound" >
            <MasterTableView DataKeyNames="Id">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="25px"
                        AllowFiltering="false" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="EditLink" runat="server" ImageUrl="~/UI/Images/pencil.png">
                            </asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn HeaderStyle-Width="25px" UniqueName="EditCommandColumn"
                        ButtonType="ImageButton" EditImageUrl="../Images/grid_edit.png" Resizable="false">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                        CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px" HeaderStyle-Width="25px"
                        Resizable="false" />

I try on item DataBound and ItemCommand and does not work.,

Shinu
Top achievements
Rank 2
 answered on 28 Jun 2012
1 answer
125 views
Hi,

I've been trying to figure out how to make the RadMenu expand on click, but close when the mouse moves away from the child item.

I have been able to get it to work with a regular RadMenuItem as a child Item.

However my child item is a custom Item Template.  With the custom item template, the Mouseover/out events just don't seem to fire.

I have found some jquery methods to put on the div's in my custom item template, however, I'm not sure how to close the menu from inside the jquery event, since I don't have a reference to the radmenu or radmenuitem.

I've searched long and hard on this site and others to figure out a solution.

Thanks,
Nona
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
5 answers
270 views
I currently have a radeditor inside of a radwindow. The radwindow pops up when a user clicks on something and then they can edit the content in the new window. I am experiencing problems with the resizing of the radwindow when opening a dialogue. The initial dialog expands the radwindow sufficiently so I can view it (see screenshot "2_hyperlink_manager.jpg"). However, when I open the document manager from within the hyperlink manager, the document manager does not resize the original radwindow again so I cannot see the entire dialog (see screenshot "3_dialog_window.jpg"). Because of this and some other issues, I would like to change how dialogs open when clicked on from the radeditor. I think that opening the dialog windows outside of the calling radwindow that contains the editor would be more the effect I am looking for. This is what I cannot figure out how to do.

Can you please either redirect me to instructions or provide assistance for how to accomplish this? Or even put the radeditor into another control (not sure which one) that could behave like a popup window so that the dialogs open in a new radwindow on their own. I really like the "modal" features in the radwindow though.

Thank you kindly for your assistance.
Waseem
Top achievements
Rank 1
 answered on 28 Jun 2012
1 answer
179 views
Hi,

I am using telrik grid having 'EnableHeaderContextFilterMenu' enabled. I want to customize header context filter menu in order to add custom combo box instead of text box in filter menu  option. I am using 'GridTemplateColumn' having rad combo box in 'FilterTemplate' as mentioned below:-

<telerik:GridTemplateColumn DataField="UserType" InitializeTemplatesFirst="false"
                                    HeaderText="User Type" HeaderStyle-Width="100px" UniqueName="UserType" SortExpression="UserType"
                                    AllowFiltering="true" AutoPostBackOnFilter="true" FilterControlWidth="80px">
                                    <HeaderTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:LinkButton ID="lnkSort2" runat="server" CommandArgument="UserType" CommandName="Sort"
                                                        Text="User Type"></asp:LinkButton>
                                                </td>
                                                <td>
                                                    <img src="App_Themes/Default/img/fillter_icon.png" style="vertical-align: middle;
                                                        margin-left: 5px; cursor: pointer" onclick='ShowColumnHeaderMenu(event,"UserType")'
                                                        alt="Show context menu" />
                                                </td>
                                            </tr>
                                        </table>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblUserType" runat="server" Text='<%# Eval("UserType")%>'></asp:Label>
                                    </ItemTemplate>
                                    <FilterTemplate>
                                        <telerik:RadComboBox runat="server" ID="radCmbUserType" DataValueField="UserType"
                                            AutoPostBack="true" DataTextField="UserType" Width="90px">
                                        </telerik:RadComboBox>
                                    </FilterTemplate>
                                </telerik:GridTemplateColumn>

Below is the function which binds rad combo box with the values:-

private void LoadFilterCombo()
        {
            if (null != grdAccounts && grdAccounts.MasterTableView.GetItems(GridItemType.Item).Count() > 0)
            {
                RadComboBox cboUserType = ((RadComboBox)((GridFilteringItem)grdAccounts.MasterTableView.GetItems(GridItemType.FilteringItem)[0])["UserType"].FindControl("radCmbUserType"));           

                foreach (int index in Enum.GetValues(typeof(CampaignService.UserType)))
                {
                    RadComboBoxItem item = new RadComboBoxItem();
                    item.Value = index.ToString();
                    item.Text = Enum.GetName(typeof(CampaignService.UserType), index);
                    cboUserType.Items.Add(item);
                }

            }
        }

I want this rad combo box to be displayed in 'HeaderContextFilter Menus' instead of default textbox as shown in attached image in order to apply filter as per selected values in combo box.

can you please suggest any solution on this?

Thanks and Regards,
Deepti



Pavlina
Telerik team
 answered on 27 Jun 2012
1 answer
269 views
Hello.
I have a MasterPage setup in a Web Application.
Based on different button clicks i load dynamically different usercontrols in a contentplaceholder.

ContentPlaceHolder cph = this.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
      UserControl uc = this.LoadControl("~/UserControls/" + strName + ".ascx") as UserControl;
 
      if ((cph != null) && (uc != null))
      {
          uc.ID = strName;
          cph.Controls.Clear();
          cph.Controls.Add(uc);
          IsControlAdded = true;
          ViewState[IDS_USERCONTROL] = strName;
      }

The problem is that i need in Site.Master to use some js code that exists in a dynamically loaded usercontrol.
That seems to be no problem for the first loaded usercontrol because the usercontrols html is included in the master page html.
The problem arrises when i dynimically load the second usercontrol i find out that the html and js from the first usercontrol loaded persists in the master page and the second usercontrol's js and html is not loaded.

If i add EnableAJAX="false" to the radajaxmanager it solves my problem .. but then again .. that beats the purpose of using ajaxmanager.
 
switch (index) {
 case 0: //Person
     var arr = GetSelectedPerson();                            
     args.set_cancel(true);
     break;
 case 1: //Company
     break;
 case 2: //Group
     var arr = GetSelectedGroups();
    break;

This is a code snipplet from Site.Master
GetSelectedPerson and GetSelectedGroups are two js methods that exist in different usercontrols.

Maria Ilieva
Telerik team
 answered on 27 Jun 2012
9 answers
709 views
Is there a property for the RadNumericTextBox equivalent to the "Validation-IsRequired" property of the RadInputManager control?
Maria Ilieva
Telerik team
 answered on 27 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?