Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
81 views
Is there a way to expand the nodes on mouse over without clicking?
Tina
Top achievements
Rank 2
 answered on 19 Mar 2015
3 answers
219 views
Hello,

I've a problem with overlapping appointments. When filtering appointments with three employers, there is no problem. But when I reduce the count to 2 employers, I have empty spaces for the appointment in the display, but three appointments overlap. Shown in the attached pictures.

The Binding is normal - only colours will be set on the event appointment creation event.

The datasource is like (with additional Properties, that doesn't matter here)

Incorrect: Filtering over two Agents (17-18.02.2015)
---------------------------------------------------------------------

ID      olStarttime             olAllDayEvent     olEndtime                   Displayshort        Agent

115755    2015-02-17 12:00:00.000    0                2015-02-17 17:30:00.000    NG | XXX3 - Fix        NG
115757    2015-02-17 09:00:00.000    0                2015-02-17 11:00:00.000    MF | XXX5 - Fix        MF
115776    2015-02-17 09:15:00.000    0                2015-02-17 09:30:00.000    NG | XXX1 - Fix        NG
115778    2015-02-17 09:15:00.000    0                2015-02-17 09:30:00.000    MF | XXX1 - Fix        MF
115779    2015-02-17 09:00:00.000    0                2015-02-17 10:00:00.000    MF | XXX2                MF

Correct: Filtering over three Agents (17-18.02.2015)
---------------------------------------------------------------------

ID      olStarttime             olAllDayEvent     olEndtime                   Displayshort        Agent

115755    2015-02-17 12:00:00.000    0                2015-02-17 17:30:00.000    NG | XXX3 - Fix        NG
115757    2015-02-17 09:00:00.000    0                2015-02-17 11:00:00.000    MF | XXX5 - Fix        MF
115775    2015-02-17 09:15:00.000    0                2015-02-17 09:30:00.000    MH | XXX1 - Fix        MH
115776    2015-02-17 09:15:00.000    0                2015-02-17 09:30:00.000    NG | XXX1 - Fix        NG
115778    2015-02-17 09:15:00.000    0                2015-02-17 09:30:00.000    MF | XXX1 - Fix        MF
115779    2015-02-17 09:00:00.000    0                2015-02-17 10:00:00.000    MF | XXX2                MF

Scheduler Options are:

  <telerik:RadScheduler ID="MainScheduler" runat="server" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
            Skin="Office2007" Font-Names="Arial, Helvetica, sans-serif" AllowDelete="False"
            AllowEdit="true" AllowInsert="False" OverflowBehavior="Scroll" Width="100%"
            EnableViewState="false" OnClientAppointmentContextMenu="appointmentContextMenu"
            OnClientTimeSlotContextMenu="timeSlotContextMenu" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
            CustomAttributeNames="Displayshort,_ROWLAYOUT,CanBeEdit,DisplayStartTime,DisplayEndTime,Owner,TerminTyp,MoveAllowed"
            OnClientAppointmentMoveStart="MainScheduler_OnClientAppointmentMoveStart" OnClientNavigationCommand="OnClientNavigationCommand"
            OnClientAppointmentMoveEnd="MainScheduler_OnClientAppointmentMoveEnd" MonthVisibleAppointmentsPerDay="10"
            OnClientAppointmentEditing="OnClientAppointmentEditing"
            OnClientAppointmentResizeStart="OnClientAppointmentEditing"
            meta:resourcekey="MainSchedulerResource1">
            <AppointmentTemplate>
                <div style="padding: 0px 1px 0px 1px">
                    <%#Eval("DisplayStartTime")%><%#Eval("Displayshort")%><%#Eval("DisplayEndTime")%></div>
            </AppointmentTemplate>
            <TimelineView UserSelectable="false" />
            <MonthView VisibleAppointmentsPerDay="10" />
            <Localization AllDay="Ganzt&#228;gig" Cancel="Abbrechen" HeaderDay="Tag" HeaderMonth="Monat"
                HeaderNextDay="n&#228;chster Tag" HeaderPrevDay="vorheriger Tag" HeaderToday="Heute"
                HeaderWeek="Woche" Show24Hours="Den ganzen Tag anzeigen" ShowBusinessHours="Arbeitszeit anzeigen"
                ShowMore="mehr..." />
        </telerik:RadScheduler>

Has anyone an idea why the scheduler overlapping these appointments on filtering of appointments of two agents but not on three agents???

Thanks a lot for any ideas.
Boyan Dimitrov
Telerik team
 answered on 19 Mar 2015
1 answer
205 views

hello,

i'm testing out 2 controls, the radgrid and the RadComboBox, i'm created a custom edit form using web form user control (ascx) onto which i add labels, textboxes and and dropdownlists, however i'm getting a weird behaviour, this is the expected behaviour:

 --- the first dropdown(1) needs to be filled with for example "None,A,B,C,D,E,F,G" while the second dropdown(2) needs to be filled with for example "None,F1,F2,F3,F4,F5,F6"

however what i'm getting is:
 --- the first dropdown(1) is filled with "None,F1,F2,F3,F4,F5,F6" and has the correct index while the second dropdown(2) is also filled with "None,F1,F2,F3,F4,F5,F6" and has the correct selected item, which means that the data binding i made to the first dropdown list is overwritten somewhere with the items from the last dropdown created.

if i run the application on debug mode, everything's ok but when the custom edit form opens, all the combos have the exact same items in them, here's my code for creating and adding controls


details.ascx

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Details.ascx.vb" Inherits="Project.Details" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<div id="template_edit" style="background-color:red" runat="server">
<%-- div onto which all my controls are addded --%> </div>   
<div id="editfooter">
         <asp:Button ID="Button_aceitar" Text="Update" runat="server" CommandName="Update" Visible="true"></asp:Button>
        <asp:Button ID="Button2" Text="Insert" runat="server" CommandName="PerformInsert" Visible="true"></asp:Button> &nbsp;
        <asp:Button ID="Button_cancelar" Text="Cancelar" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
        <asp:Label ID="LabelLOG" runat="server" Text="Label" Visible="False"></asp:Label>
</div>


details.ascx.vb (this is just the essential bit of the code because the entire code is very very long on account that the controls are created and added based on metadata tables)

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack Then
Try
                    sOper = Session("OPERACAO_Edit")
                    gPeriodo = Session("PERIODO_Edit")
                    gClasse = Session("CLASSE_Edit")
                    gSistema = Session("SISTEMA_Edit")
                Catch ex As Exception
  
                End Try
  
gEG = Session("EntidGest")
                Select Case gClasse & gSistema
                    Case 11
                        gMNID = 1
                    Case 12
                        gMNID = 2
                    Case 21
                        gMNID = 3
                    Case 22
                        gMNID = 4
                    Case 31
                        gMNID = 5
                    Case 32
                        gMNID = 6
                End Select
  
                Add_Controls(sOper)
  
Else
                gPeriodo = Request.QueryString("periodo")
                gClasse = Request.QueryString("classe")
                gSistema = Request.QueryString("sistema")
                gEG = Session("EntidGest")
                Select Case gClasse & gSistema
                    Case 11
                        gMNID = 1
                    Case 12
                        gMNID = 2
                    Case 21
                        gMNID = 3
                    Case 22
                        gMNID = 4
                    Case 31
                        gMNID = 5
                    Case 32
                        gMNID = 6
                End Select
            End If
        Catch ex As Exception
  
        End Try
  
    End Sub
  
  
Private Sub Detail_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        Try
  
            gVALIDATETEXT = "a-záâàãéêèíîìóôòõúûùçA-ZÁÂÀÃÉÊÈÍÎÌÓÔÒÕÚÛÙÇ .,;:/+\?!0-9<>_=&-"
            gVALIDATETEXT = gVALIDATETEXT.Replace("a-z", "")
            gVALIDATETEXT = gVALIDATETEXT.Replace("A-Z", "")
            gVALIDATETEXT = gVALIDATETEXT.Replace("0-9", "")
  
        Catch ex As Exception
            gText = System.Reflection.MethodBase.GetCurrentMethod().Name & " Erro: " & Me.Page.ToString & " " & ex.Message
            Add2LogFile(glogpath, gText)
        End Try
    End Sub
  
  
  
  
    Private Sub Add_Controls(ByVal bOper As String)
  
  
'this bit of code is inside a loop that goes through some metadata, creates and adds controls to a div
        Dim oCmb As New RadDropDownList
        Dim oTextBox As New TextBox
        Dim gSqlCMB As New SqlDataSource
        Dim sValue as String
  
        oCmb = New RadDropDownList
        oCmb.ID = 'something dynamic
  
        gSQL = "select c,t from table" 'the query is different for each dropdownlist
        gSqlCMB.SelectCommand = gSQL
        oCmb.DataSource = gSqlCMB
        oCmb.DataValueField = "C"
        oCmb.DataTextField = "T"
        oCmb.DataBind()
        ocmb.SelectedIndex = sValue '"1", "2", "3"....
        template_edit.controls.Add(oCmb)


am i missing some dropdownlist event after binding or setting the selectedindex?

Hristo Valyavicharski
Telerik team
 answered on 19 Mar 2015
4 answers
68 views
Hello,

I have a content page where I have RadAutoCompleteBox with Token mode.

<telerik:RadAutoCompleteBox ID="rCitation" runat="server" Width="350px" MaxResultCount="20"
                    MinFilterLength="2" InputType="Token" TextSettings-SelectionMode="Multiple" OnClientEntryAdding="OnClientEntryAddingHandler"
                    AllowCustomEntry="true" WebServiceSettings-Path="~/AutoComplete.aspx" WebServiceSettings-Method="SearchAutoCompleteCitation" 
                    OnEntryAdded="rtb_EntryAdded" />

On Entry Added, I am trying to auto populate another control asynchronously. for that I have added the following AjaxSetting.

<telerik:AjaxSetting AjaxControlID="ractCitation" EventName="EntryAdded">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rtbCaseName" LoadingPanelID="RadAjaxLoadingPanel1">
                </telerik:AjaxUpdatedControl>
            </UpdatedControls>
</telerik:AjaxSetting>

After adding a token, the async event is fired. However, after returning from async-callback, my pages is scrolling in such way that the autocompletebox comes to the bottom.

Interestingly, I have nother dropdownlist with similar behavior. But, the page position is intact after async-callback. The issue is with only autocompletebox.

Any solution?




SS









Hristo Valyavicharski
Telerik team
 answered on 19 Mar 2015
1 answer
75 views
Hi,
We're wanting to wrap the TreeMap control in our own client side object. We've done this successfully for the RadGrid and RadHtmlChart. We've got the TreeMap working great, but not we want to extend the functionality to handle the tooltips like in your demo... to do that we want to bind the onItemCreated event in javascript. Can someone provide the syntax for this? We've tried:
var test = map.get_kendoWidget();
test.bind("itemCreated", function (e, d, k) {
                alert('test');
});
but to no avail!

Any help appreciated.
Peter Filipov
Telerik team
 answered on 19 Mar 2015
1 answer
88 views
I want to bind a grid to a linqdatasource. The date in the db as stored as an integer like so 20070205 (YearMonthDay).
When I try toconvert the int to a date in the linq query like so
var q = from i in ICILOCs
select i.LASTRCPTDT.ToString("MM/dd/yyyy");
I get an error:
Method 'System.String ToString(System.String)' has no supported translation to SQL.

I can load the results into memory with ToList() and then parse it. The problem is I will loose the efficient paging with the grid. 
Or I can parse it on ItemDatabound, the problem is that how will I set the filter for this field in the grid? It should a calendar dropdown, not an integer textbox.
Do you have any solution for this?
Kostadin
Telerik team
 answered on 19 Mar 2015
1 answer
66 views
Hello,
is there a way to select some text and highlight them in editor from code behind?

i am facing this problem for many days, so any help is much appreiated.
Ianko
Telerik team
 answered on 19 Mar 2015
3 answers
52 views
In a current visual studio.net 2010 application that uses a Telerik tool to allow users to autogenerate letters, there is an html problem. When there is an  area where the user places has option 1 and option 2, the requestor wants a description of what the meaning is for each option. The user wants the wording to appear on one line. However the wording scrolls down the page like it is filling up an cell in excel spreadsheet.
The following is the auto generated html:

<table style="border: currentColor; border-image: none; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p>&nbsp;</p>
            <p>Option 1</p>
            <p><span style="font-size: 11pt;">I have scheduled a collaborative plan</p>
            </td>
        </tr>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p>&nbsp;&nbsp;</p>
            <p>Option 2</p>
            </td>
        </tr>
        <tr>
            <td valign="top" style="border-color: #f0f0f0; padding: 0in 5.4pt; background-color: transparent;">
            <p><span style="font-size: 11pt;">No meeting required.&nbsp; <br />
            </span></p>
            </td>
        </tr>
    </tbody>
</table>
 Would you tell me what can be done to solve this problem? Does the user need to click somewhere special inside of the editor?
Ianko
Telerik team
 answered on 19 Mar 2015
6 answers
169 views
Hello.
I have this issue: I have grid. When I try to add new record by EditForm I need to catch keydown. If Enter was pressed - save record, if Esc - Cancel.
if (e.keyCode == 13) {
     varmasterTable = $find("<%= grd.ClientID %>").get_masterTableView();
    masterTable.fireCommand("PerformInsert", "");
}

if (e.keyCode == 27) {
    var masterTable = $find("<%= grd.ClientID %>").get_masterTableView();
    masterTable.fireCommand("Cancel", "");
}

All that relates to saving is OK: I call fireCommand("PreformInsert", "") from javascript, in code behind grd_ItemCommand function gets command.
But when I press Esc grd_ItemCommand doesn't get command (but postback fires).

Could you help me by any advice?
Radoslav
Telerik team
 answered on 19 Mar 2015
6 answers
445 views
Hi,
How can I convert a radeditor into byte[]?
I need to pass something to my webservice and then save it as docx.
Is it possible?
Thanks
Ianko
Telerik team
 answered on 19 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?