Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
175 views
Our Requirements
How to consider following requirements?
Case 1 - How to manage different time slots for single resource?
Example 10 minutes slot between 8AM to 12PM and 20 minutes slot between 2PM and 6PM.

Case 2 - How to manage different time slots resource wise? 
Example 10 minutes slot for resource1 and 20 minutes slot for resource2.


Solution adopted to achieve requirement 1 (II) i.e. Case 2

I have some issues in Rad Scheduler for binding in run time and create events, bind menu and perform same as static control which add in design page (normal activity). 
In this case may be more than one Schedulers require to bind in panel control to display differently.

Binding Rad Scheduler in run time and create event like time slot contact menu and appointment slot menu click. Below code are events I created in run time:
RadScheduler.AppointmentContextMenuItemClicked += new AppointmentContextMenuItemClickedEventHandler(RadScheduler1_AppointmentContextMenuItemClicked);

RadScheduler.TimeSlotContextMenuItemClicked += new TimeSlotContextMenuItemClickedEventHandler(RadScheduler1_TimeSlotContextMenuItemClicked);

RadScheduler.TimeSlotCreated += new TimeSlotCreatedEventHandler(RadScheduler1_TimeSlotCreated);
Event is fire when click in menu but not reach in mention event name like click in time slot menu (RadScheduler1_TimeSlotContextMenuItemClicked). Binding menu is ok by dynamic.  These events are fired in static control which added in design page. One thing all events and activities are working fine in static control. 
Our telerik version is very old. I can't remember version.


Please help us as soon as possible.


Regards,
Jiten Mutum
Jiten
Top achievements
Rank 1
 asked on 16 May 2019
3 answers
139 views

Hi,

When I was using RadNumericTextBox, I got an error window when LMB is up over a spin button.

When I pressed LMB on increase/decrease buttons and held LMB without releasing it, everything was OK. The corresponding value could be changed correctly.

But when LMB was released, an error message box poped up. At that time, there is no postback yet. So I think the error raised from client.

I do not know which event raised when LMB is up over a spin button, so I am not able to  trace the error.

Could you provide me some ideas about how to investigate some kind of issue?

Thanks

Best regards

Zhang Rui

Rumen
Telerik team
 answered on 15 May 2019
4 answers
127 views

Hello Team,

 

Am expecting PivotGrid to display value into following order 1, 2, 12 and then 1011 but PivotGrid is displaying them into 1, 1011, 12 and then 2.

How can this be fixed?

 

Thanks,

Mohan

 

Attila Antal
Telerik team
 answered on 15 May 2019
4 answers
431 views

I have an issue while doing custom sorting( PivotGridSortOrder.None) on pivot grid using multiple columns. 

Issue: Want to use custom sorting for pivotgrid control.
* I have set both the row field (Country field) and column field (StateCode) to PivotGridSortOrder.None so that it does not use ascending or descending sorting instead it will use sorting as per data set provided.
* For country field(Row field) I have following values : Japan, Argentina, Zimbabwe and India, I want pivot grid to display them in same order too and it is working fine.
* For StateCode field (column field), I have following values: Mno, Abc, Zmp and Ctp and I want pivot grid to display them in this order only. But it is not.

* Dataset being returned by SP is attached. refer screenshot.

* Data being displayed on pivot is attached, refer screenshot.

Let me know how to fix it.

Mohan
Top achievements
Rank 1
 answered on 15 May 2019
3 answers
219 views

Hello.....

how to add Column Group for code behigh vb.net

- I Can  pic1.png
 - I want pic2.png

 

 

Vessy
Telerik team
 answered on 14 May 2019
2 answers
126 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
257 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
320 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
120 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
224 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?