Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
317 views

Hi

I have RadScheduler with timeline as selected view. It works other well but when appointments are first ending and second starting at same time, it make two rows. Is there any possibility to get those to same row (and create second row only when appointments are over each others)? Times are not over to each other so I think those should be in one row and when appointment end and start is exactly same time with slot time period those might be in same row. See picture what my situation is now.

Here is Scheduler aspx snipped (code behind has tooltip generation in OnAppointmentDataBound) which is quite directly from your demo, only datasources and fields from there are changed (and done own styles to try change colors and font).

        <telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" SelectedView="TimelineView" 
            SelectedDate="2021-05-01" DayStartTime="00:00:00" DayEndTime="23:59:59" Height="100%" Width="100%" RowHeight="60" 
            DataSourceID="SqlSSAK" DataKeyField="ID" DataSubjectField="NIMIKE" DataStartField="ALKUAIKA" DataEndField="LOPPUAIKA"
            Localization-HeaderMultiDay="Work Week" GroupingDirection="Vertical" GroupBy="SakKoneNimi" 
            OverflowBehavior="Scroll" ShowFullTime="True" StartInsertingInAdvancedForm="True"
            OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" >
            <AdvancedForm Modal="true"></AdvancedForm>    
            <ResourceTypes>
                <telerik:ResourceType KeyField="SakKoneID" Name="SakKoneNimi" TextField="SakKoneNimi" ForeignKeyField="SakKoneID" DataSourceID="sqlSakitysKoneet"></telerik:ResourceType>
            </ResourceTypes>
            <ResourceStyles>
                <telerik:ResourceStyleMapping Type="SakKoneNimi" Text="SSAK1" ApplyCssClass="SSAK1Style"></telerik:ResourceStyleMapping>
                <telerik:ResourceStyleMapping Type="SakKoneNimi" Text="SSAK2" ApplyCssClass="SSAK2Style"></telerik:ResourceStyleMapping>
            </ResourceStyles>
            <TimelineView UserSelectable="false" NumberOfSlots="288" SlotDuration="0.00:15:00" TimeLabelSpan="24" ColumnHeaderDateFormat="dd.MM HH" 
                SortingMode="Global" ShowInsertArea="False" ReadOnly="False"></TimelineView>
            <MultiDayView UserSelectable="false"></MultiDayView>
            <DayView UserSelectable="false"></DayView>
            <WeekView UserSelectable="false"></WeekView>
            <MonthView UserSelectable="false"></MonthView>
            <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
            <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
        </telerik:RadScheduler>

Regards

Harri

Peter Milchev
Telerik team
 updated answer on 14 Jun 2021
0 answers
206 views

I am using Radlistview control drag and drop functionality. Radlistview items are drag and dropping into Repeater control. this functionality working in chrome older version but not working in latest chrome version. I have verified my code..args.get_destinationElement().id;  method returning repeater id   in older version  but in newer version this method returning Radlistview control id. so destination element id returning wrong in newer version. how to overcome on this issue. please help me on this. please find the below my code. 

function trackDropping(sender, args) {
    debugger;
   var dest = args.get_destinationElement();    
   if (!dest || !dest.id || dest.id.indexOf("TeamLink") < 0) {
       args.set_cancel(true); 
    }

Telerik Web UI ListView Items Drag-and-drop Demo | Telerik UI for ASP.NET AJAX

Narender
Top achievements
Rank 1
Iron
 updated question on 11 Jun 2021
15 answers
769 views

In IE, RadGrid drag-and-drop works properly, but in Chrome it works less than 1/2 the time I try to move rows up/down.
When I set a breakpoint in the RowDrop event (server side), the event fields aren't consistently populated in Chrome.

My browser is not zoomed in or out and it's easy to duplicate with your website's example:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx

Many people have had issues with this over the years but I cannot find any resolution. Some people pointed to the RadGrid being in a MasterPage or in a UserControl, but none of that should matter.

Can you please provide resolution?

Narender
Top achievements
Rank 1
Iron
 answered on 11 Jun 2021
1 answer
155 views

Hi Team,

I have recently migrated from RadGrid Classic to RadGrid Ajax suite.(R3 2020)

I am getting few errors in the Edge,IE11 and Chrome.

Do we need to replace classic RadControl js files with Ajax Control Suite js files?

Issue are captured in the screenshot.

Can you please suggest me why this issue is happening and how to resolve it?

Attila Antal
Telerik team
 answered on 11 Jun 2021
0 answers
112 views

Hello Telerik team, I have the problem that the pivot grid Olap does not run with more than 13000 records, we try to execute with 10 fields and with 2 measurement fields in total 12, however it keeps loading the page without doing something or sometimes it sends error of time out.

Framework used: ASP.NET Ajax

thank you!!

Any comment or possible solution ?

 

Edgar
Top achievements
Rank 1
 asked on 09 Jun 2021
0 answers
226 views

Hello!

I have added data to my radcombobox but when I open the combobox I can´t see data.

Does anybody has any idea about this?


<telerik:RadComboBox ID="rcbVehicleInfoMake" runat="server" Height="250px" Width="120px" Skin="Simple" EnableLoadOnDemand="True" AllowCustomText="False" ShowMoreResultsBox="True" ItemRequestTimeout="500" HighlightTemplatedItems="True" MarkFirstMatch="True" DropDownWidth="310px" SelectOnTab="True" OffsetX="0" ShowDropDownOnTextboxClick="True" ExternalCallBackPage="../RCBStreamers/VehicleMakes.aspx" OnItemsRequested="rcbVehicleInfoMake_ItemsRequested">
                                                        <HeaderTemplate>
                                                            <table style="width: 300px;">
                                                                <tr>
                                                                    <th style="width: 350px; text-align: left;">
                                                                        Description
                                                                    </th>
                                                                    <th style="width: 50px; text-align: left;">
                                                                        Code
                                                                    </th>
                                                                </tr>
                                                            </table>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <table style="width: 300px; cursor: pointer;">
                                                                <tr>
                                                                    <td style="width: 350px;">
                                                                        <%#DataBinder.Eval(Container, "Attributes['MakeDesc']")%>
                                                                    </td>
                                                                    <td style="width: 50px;">
                                                                        <%#DataBinder.Eval(Container, "Attributes['MakeCode']")%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
</telerik:RadComboBox>

Cesar
Top achievements
Rank 1
 updated question on 08 Jun 2021
1 answer
353 views

I have updated my telerik dll to 2021 version and I´m facing some problems with radcombobox. I´m not able to open the items and options arrow disappeared.


<telerik:RadComboBox ID="rcbVehicleInfoMake" runat="server" Height="250px" Width="120px" Skin="WindowsXP" EnableLoadOnDemand="True" AllowCustomText="False" ShowMoreResultsBox="True" ItemRequestTimeout="500" HighlightTemplatedItems="True" MarkFirstMatch="True" DropDownWidth="310px" SelectOnTab="True" OffsetX="0" ShowDropDownOnTextboxClick="True" ExternalCallBackPage="../RCBStreamers/VehicleMakes.aspx">
                                                        <HeaderTemplate>
                                                            <table style="width: 300px;">
                                                                <tr>
                                                                    <th style="width: 350px; text-align: left;">
                                                                        Description
                                                                    </th>
                                                                    <th style="width: 50px; text-align: left;">
                                                                        Code
                                                                    </th>
                                                                </tr>
                                                            </table>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <table style="width: 300px; cursor: pointer;">
                                                                <tr>
                                                                    <td style="width: 350px;">
                                                                        <%#DataBinder.Eval(Container, "Attributes['MakeDesc']")%>
                                                                    </td>
                                                                    <td style="width: 50px;">
                                                                        <%#DataBinder.Eval(Container, "Attributes['MakeCode']")%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
</telerik:RadComboBox>

 

Please let me know if you have any clue about this issue.

Vessy
Telerik team
 answered on 08 Jun 2021
1 answer
222 views

Hi, 

I'm trying to create a dynamic ListViewDataGroup with code-behind value for 'groupField', is that possible ?


<telerik:RadListView ID="lv_xxx"
                EnableViewState="false"
                ItemPlaceholderID="itemPlaceHolder"
                OnItemDataBound="lv_xxx_ItemDataBound"
                runat="server"  >

                <LayoutTemplate>
				.....
				</LayoutTemplate>

                <DataGroups > 
                <telerik:ListViewDataGroup GroupField='<%= this.XXX >' DataGroupPlaceholderID="groupPlaceHolder" SortOrder="Ascending"  > 
                        <DataGroupTemplate>
                            <tr>
                                <td>
                                    <%# (Container as RadListViewDataGroupItem).DataGroupKey %>
                                </td>
                            </tr>
                            <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                        </DataGroupTemplate>
                    </telerik:ListViewDataGroup>
                </DataGroups>

                <EmptyDataTemplate> 
                </EmptyDataTemplate>

                <ItemTemplate>
				......
				/ItemTemplate> 
           </telerik:RadListView> 

 

 

thanks

 
Doncho
Telerik team
 answered on 08 Jun 2021
18 answers
4.6K+ views
Hi Team,
I have a radgrid with some bound columns. In one of the bound columns, I have DataFormatString property set to call a javascript function. The same bound column shows numeric values.
I did this because I wanted to open a popup on click of the numeric values.
Now I want to find the row index of the radgrid so that I can use 
MasterTable.getCellByColumnUniqueName(MasterTable.get_dataItems()[0], "ChartOfAccountSetDetailDescription").innerHTML

Here, in MasterTable.get_dataItems()[0], I always get the values in the first row because of the [0] ,
which is the rowindex.

So, I want to find out the row index of the current cell.

Here is my aspx :
<telerik:RadGrid ID="rgProjectBudget" OnNeedDataSource="rgProjectBudget_NeedDataSource"  runat="server" AutoGenerateColumns="False" AllowSorting="True" ShowFooter="true">
       <MasterTableView>
            <Columns>                                                 
                     <telerik:GridBoundColumn DataField="ChartOfAccountSetDetailValueCode" DataType="System.String" HeaderText="Project Heads"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" UniqueName="ChartOfAccountSetDetailValueCode">                                                       
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="COARequisitionAmount" HeaderText="Commited" DataField="COARequisitionAmount" FooterText="Commited: " FooterAggregateFormatString=" {0:N}" FooterStyle-Font-Bold="true" CurrentFilterFunction="Contains"   DataFormatString="<a href='javascript:MyFunction()'>{0:N}</a>" AutoPostBackOnFilter="true" Aggregate="Sum">                                                       
                     </telerik:GridBoundColumn>
                </Columns>
       </MasterTableView>
</telerik:RadGrid>
 
<script>
function MyFunction() {
var grid = $find("<%=rgProjectBudget.ClientID %>");
var MasterTable = grid.get_masterTableView();
var contactName = MasterTable.getCellByColumnUniqueName(MasterTable.get_dataItems()[0], "ChartOfAccountSetDetailValueCode").innerHTML;
}
</script>


And, I am not using RowSelected client side event

Any help appreciated,
Thanks,
Lok..
Attila Antal
Telerik team
 answered on 04 Jun 2021
0 answers
216 views

I build custom context menus at runtime for each appointment.  The menus work fine, I get the AppointmentContextMenuItemClicked event and am able to act on the menu option chosen, but the UI drops all of the custom menus.  The next time I right-click on any appointment, it only has Edit and Delete options.  I've tried Rebind() at the end of the AppointmentContextMenuItemClicked, but it does not refresh, and even if I call databind and step through the code where it reconstructs all of the menus, they still do not show up in the browser.  Anyone dealt with this?

tbrentlong
Top achievements
Rank 1
 asked on 03 Jun 2021
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?