Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views

Steps to reproduce:

1. Go to Editor,  open an image manager https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

2. Unload image with file name "test%image.png"

3. The preview on this image broken

miksh
Top achievements
Rank 1
Iron
 answered on 14 May 2019
5 answers
275 views
Hi,

Is there any posibility to change the message while deletion of file from file explorer gridcontext menu,

At present while deletion of record the following message is coming.
"
Are you sure you want to delete the selected item? It might still be in use. If deleted, some pages will not be displayed properly. Press "OK" to confirm deletion.

Now i want to set my custom my message.
Is it posible?if it s yes how to impliment tat?please provide me any demo application or any ideas

Thanks
Bhavani
Vessy
Telerik team
 answered on 14 May 2019
2 answers
329 views

I have a RadComboBox inside a RadListView.  When selected an item in the list, the SelectedIndexChanged event does not fire.  Here is my HTML:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" BackColor="White">
                <div class="form-group">
                        <asp:RadioButtonList ID="radioChoice" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" CssClass="inline-rb" OnSelectedIndexChanged="radioChoice_SelectedIndexChanged">
                            <asp:ListItem Value="Multiple" Text="Multiple Record Report" Selected="True" />
                            <asp:ListItem Value="Single" Text="Single Record Report" />
                        </asp:RadioButtonList>
                    </div>
                <asp:HiddenField runat="server" ID="panelCollapse" ClientIDMode="Static" />
                <asp:HiddenField runat="server" ID="SelectedItem" />
                <hr />
               
                <telerik:RadListView runat="server" ID="radlistview1" OnItemDataBound="radlistview1_ItemDataBound" >
                    <ItemTemplate>
                        <div class="panel panel-default">
                            <div class="panel-heading" style="border:none; padding:0px !important">
                                <h4 class="panel-title">
                                    <a data-toggle="collapse" href="#pnl<%#Eval("ModuleDataKey") %>" rel="popover" data-placement="top" data-content="Click to expand/collapse report list" data-trigger="hover"><i class="s7-plus"></i></a>&nbsp;<%#Eval("ModuleDataKey") %>
                                </h4>
                            </div>
                            <div id='pnl<%#Eval("ModuleDataKey") %>' class="panel-collapse collapse">
                                <div class="panel-body" style="padding:0px !important 10px 0px 10px">
                                    <div runat="server" id="multiDirections" visible="true" class="message">Click the Filter icon to select the data filter for your report and then click on the desired report.</div>
                                    <div runat="server" id="singleDirections" visible="false" class="message">Click the dropdown list to select the item for your report and then click on the desired report.</div>
                                    <div runat="server" id="noResults" style="background-color:#ED4B4B;color:white" visible="false"><asp:Label runat="server" ID="lblNoResults"></asp:Label></div>
                                    <div class="panel panel-alt3 panel-transparent" style="padding: 0px !important">
                                        <div class="panel-heading panel-heading-cg">
                                            <div class="input-group">
                                                <span runat="server" id="spFilter" visible="true">
                                                    <button type="button" data-toggle="dropdown" title="Filter List" class="btn btn-alt3"  id="btnFilter" runat="server"><i class="icon icon-left s7-filter"></i><span class="caret"></button>
                                                    <ul role="menu" class="dropdown-menu">
                                                        <asp:PlaceHolder runat="server" ID="hldFilters"></asp:PlaceHolder>
                                                    </ul>
                                                </span>
                                                               <span id="ddlLists" runat="server" visible="false" style="display:inline" >
<%--                                                    <asp:PlaceHolder runat="server" ID="moduleList"></asp:PlaceHolder>--%>
                                                    <span runat="server"  id="spJobDropDown" visible='<%# DataBinder.Eval(Container.DataItem, "ModuleDataKey").ToString().ToLower() == "job" ? true : false %>'>
    
                                                        <telerik:RadComboBox DropDownAutoWidth="Enabled" RenderMode="Lightweight" ID="qfTicket_cmbJob" EmptyMessage="Type to Select..." runat="server" Width="500px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnSelectedIndexChanged="qfTicket_cmbJob_SelectedIndexChanged" AutoPostBack="true">
                                                            <WebServiceSettings Method="GetJobs" Path="~/Portal/Ajax/COGS.asmx" />
                                                        </telerik:RadComboBox>

                                                    </span>
                                                    <span runat="server" id="spTicketDropdown" visible='<%# DataBinder.Eval(Container.DataItem, "ModuleDataKey").ToString().ToLower() == "ticket" ? true : false %>'>
      
                                                        <telerik:RadComboBox DropDownAutoWidth="Enabled" RenderMode="Lightweight" ID="cmbTicket" EmptyMessage="Type to Select..." runat="server" Width="500px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnSelectedIndexChanged="cmbTicket_SelectedIndexChanged" AutoPostBack="true">
                                                            <WebServiceSettings Method="GetTickets" Path="~/Portal/Ajax/COGS.asmx" />
                                                        </telerik:RadComboBox>
                                      
                                                    </span>
                                                </span>
                                            </div>
                                            <div runat="server" id="SelectedFilter" style="background-color:#fff2d7; color:black;padding-left:10px" ><asp:Label runat="server" ID="filterName" Font-Size="Small"></asp:Label></div>
                                        </div>
                                        <div class="panel-body" style="padding-top:10px">
                                            <br />
                                            <asp:HiddenField ID="hfModule" Value='<%#Eval("ModuleDataKey") %>' runat="server" />
                                            <asp:PlaceHolder ID="phRow" runat="server"></asp:PlaceHolder>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </telerik:RadListView>
    

            </telerik:RadAjaxPanel>

Here is my code behind:

        protected void qfTicket_cmbJob_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ((CG.Portal.Web.DesktopMaster)Page.Master).ClearMessage();
            IdentifierId = e.Value;
        }

        protected void cmbTicket_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            ((CG.Portal.Web.DesktopMaster)Page.Master).ClearMessage();
            IdentifierId = e.Value;

        }

 

Any assistance is greatly appreciated!

 

 

 

 

 

Eric
Top achievements
Rank 1
 answered on 13 May 2019
1 answer
127 views

Hello

I need your help ,How can I replace English numbers (0,1,2,3,4,5,6,7,8,9) to Arabic number (Ù ,Ù¡,Ù¢,Ù£,Ù¤,Ù¥,Ù¦,Ù§,Ù¨,Ù©) on onkeydown

thanks

Rumen
Telerik team
 answered on 13 May 2019
2 answers
237 views

this is client side code:

<code>

  function OnClientUpdated(sender, args) {
  
  var message = "Update (check) was done!";
  var newMsgs = sender.get_value();
  if (newMsgs != 0) {
  sender.show();
  message += (newMsgs == 1) ? (" There is 1 new message!") : (" There are " + newMsgs + " new messages!");
  }
  else {

  sender.hide();
  
  }
  console.log(message);
  }

 

 

    <telerik:RadNotification ID="ClientNotification" Visible="true" runat="server" RenderMode="Lightweight" EnableRoundedCorners="false" EnableShadow="true" 
                                Width="100%" Height="90" VisibleOnPageLoad="false"
                                Animation="Slide" AnimationDuration="500" VisibleTitlebar="false" ShowTitleMenu="false" KeepOnMouseOver="true"
                                Position="BottomCenter" AutoCloseDelay="4000" LoadContentOn="TimeInterval" UpdateInterval="12000" Skin="Telerik"
                                OnClientUpdated="OnClientUpdated" OnClientUpdating="OnClientUpdating" OnCallbackUpdate="OnCallbackUpdateClient">
                       <%--         <NotificationMenu>
                                  <Items>
                                    <telerik:RadMenuItem Text="Classic" Value="Classic" />
                                    <telerik:RadMenuItem Text="Business" Value="Business" />
                                  </Items>
                                </NotificationMenu>--%>
                                <ContentTemplate>
                                <blockquote>
                               <asp:image ID="notifyIconClient" runat="server" />&nbsp;&nbsp;<asp:Literal ID="WriteMsgClient" EnableViewState="false" runat="server" />
                               <br />
              <asp:HyperLink ID="instantmsgLinkClient" EnableViewState="false" Text="Go to your TMN Members instant message page to view and respond to them now" runat="server" />
                               <br />
                               <br />
                               </blockquote>
                               </ContentTemplate>
              </telerik:RadNotification>

</code>

this is server side code:

<code>

Protected Sub OnCallbackUpdateClient(sender As Object, e As RadNotificationEventArgs)

        Dim getClientFirstName_Parameter As SqlParameter
        Dim NotifyClientIMCount_Parameter As SqlParameter
        Dim MyClientName As String = String.Empty
        Dim MsgCntClient As Integer
        Dim globalLog As LoginView = CType(Page.Master.FindControl("globalinmsge"), LoginView)
        Dim ClientNotify As RadNotification = CType(globalLog.FindControl("ClientNotification"), RadNotification)


        Using getClientFirstName_conn = New SqlConnection(ConnectionStrings("TMNall").ConnectionString)
            Using getClientFirstName_cmd = New SqlCommand("dbo.getTMNClientFristName", getClientFirstName_conn)

                getClientFirstName_cmd.CommandType = CommandType.StoredProcedure
                getClientFirstName_cmd.CommandTimeout = 0
                getClientFirstName_cmd.CommandText = "dbo.getTMNClientFristName"

                getClientFirstName_Parameter = getClientFirstName_cmd.CreateParameter()
                getClientFirstName_Parameter.ParameterName = "@username"
                getClientFirstName_Parameter.Direction = ParameterDirection.Input
                getClientFirstName_Parameter.SqlDbType = SqlDbType.NVarChar
                getClientFirstName_Parameter.Value = "badboy69" 'Membership.GetUser(Page.User.Identity.Name).ToString()

                getClientFirstName_cmd.Parameters.Add(getClientFirstName_Parameter)

                getClientFirstName_conn.Open()

                Using getClientFirstName_Reader = getClientFirstName_cmd.ExecuteReader()

                    If getClientFirstName_Reader.Read() Then

                        MyClientName = getClientFirstName_Reader("TMNmem_FirstName").ToString()

                    End If

                End Using
            End Using
        End Using

        Using NotifyClientIMCount_conn = New SqlConnection(ConnectionStrings("TMNall").ConnectionString)
            Using NotifyClientIMCount_cmd = New SqlCommand("dbo.getClientNotifyIMmsgCnt", NotifyClientIMCount_conn)

                NotifyClientIMCount_cmd.CommandType = CommandType.StoredProcedure
                NotifyClientIMCount_cmd.CommandTimeout = 0
                NotifyClientIMCount_cmd.CommandText = "dbo.getClientNotifyIMmsgCnt"

                NotifyClientIMCount_Parameter = NotifyClientIMCount_cmd.CreateParameter()
                NotifyClientIMCount_Parameter.ParameterName = "@username"
                NotifyClientIMCount_Parameter.Direction = ParameterDirection.Input
                NotifyClientIMCount_Parameter.SqlDbType = SqlDbType.NVarChar
                NotifyClientIMCount_Parameter.Value = "badboy69" 'Membership.GetUser(Page.User.Identity.Name).ToString()

                NotifyClientIMCount_cmd.Parameters.Add(NotifyClientIMCount_Parameter)

                NotifyClientIMCount_conn.Open()

                Using NotifyClientIMCount_Reader = NotifyClientIMCount_cmd.ExecuteReader()

                    If NotifyClientIMCount_Reader.Read() Then
                        If CInt(NotifyClientIMCount_Reader("NotifyIMClientCnt").ToString()) <> 0 Then

                            MsgCntClient = CInt(NotifyClientIMCount_Reader("NotifyIMClientCnt").ToString())

                        Else

                            MsgCntClient = 0

                        End If

                    End If

                End Using
            End Using
        End Using

        Dim clientmesg As Literal = CType(ClientNotify.ContentContainer.FindControl("WriteMsgClient"), Literal)
        Dim linkclient As HyperLink = CType(ClientNotify.ContentContainer.FindControl("instantmsgLinkClient"), HyperLink)
        Dim ClientImg As Image = CType(ClientNotify.ContentContainer.FindControl("notifyIconClient"), Image)

        clientmesg.Text = [String].Concat(New Object() {MyClientName.ToString(), " you have ", MsgCntClient, " new instant message(s)!"})
        linkclient.NavigateUrl = "~/Account/clientsMain"
        ClientNotify.Value = MsgCntClient.ToString()
        ClientImg.ImageUrl = "~/images/radlaerticon.jpg"


    End Sub

 

</code>

thanks guys

Vessy
Telerik team
 answered on 13 May 2019
6 answers
1.3K+ views

Currently trying to show and hide a loading panel on a button that exports a grid using AjaxExportManager. I have it so the panel will show on the button click and once it has been exported, I use the property "OnClientPdfExported" to call a function that hides my loading panel.

It works for a single time and when I press export once again, my loading panel doesn't appear. Any idea why?

I do not wish to use  <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> beceause I'm on a content page and I only have access to the proxy manager. I had it working with the proxy manager but my case requires me to avoid it.

Rumen
Telerik team
 answered on 13 May 2019
1 answer
432 views

Hi, looking for some best practice

Need to offer multi language support to our existing application, and the first job is the framework and menu.

We currently use a sitemap for our menu datasource,  would you have a separate sitemap containing the translations, or use resource files, and change the text on load fro the resource files.

Or any other ideas would be welcome.

Also have Rad grids to do too, but was going to use Resource files here.

Andy

Rumen
Telerik team
 answered on 13 May 2019
7 answers
294 views

Hello, can the TabStrip control alter it's orientation based on the viewport/device it's presented on? Let's say I have 5 tabs on a page and when I view this page on an iPhone or Android phone can the tabs align themselves in a stacked fashion (all-closed state). In short, how mobile-friendly is this control - we don't want users to have to scroll horizontally on a mobile device. if this is possible can it be achieved through configuration of the control or is it more of a hand-coded task?

 

Thanks.

Rumen
Telerik team
 answered on 13 May 2019
3 answers
446 views
Hi

When I upload a jpg image using RadAsyncUpload. The image is rotated

http://demos.telerik.com/aspnet-ajax/imageeditor/examples/imageupload/defaultcs.aspx?product=asyncupload

Thanks
Vessy
Telerik team
 answered on 10 May 2019
1 answer
365 views

Hello,

I want the rad menu to appear when i hover on it and immediately after clicking on a item, it should hide the menu.

Is there any built in property for this?

 

Thanks in advance

 

 

Rumen
Telerik team
 answered on 10 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?