Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I have a modal that has a source ListBox and a selected ListBox with AllowTransfer="true". I also have AutoPostBackOnTransfer="true" because otherwise the selected items didn't persist. the problem I'm having is that when I transfer an item and there is a postback, the ListBox of selected items moves from the right side of the source to directly below it. I can't figure out why this is happening. See the attached screen shots.

Here is the modal and the button that opens it:

                                            <asp:LinkButton ID="btnDeptDCVL" runat="server" Style="cursor: pointer; text-decoration: underline; padding-left: 10px" Text="Select" />
                                            <ajaxtoolkit:ModalPopupExtender ID="mPopupDept" runat="server" PopupControlID="pnlDept"
                                                TargetControlID="btnDeptDCVL" BackgroundCssClass="modalProgressGreyBackground"
                                                DropShadow="false">
                                            </ajaxtoolkit:ModalPopupExtender>
                                            <asp:Panel ID="pnlDept" runat="server" Height="450px" Width="514px" Style="display: none; background-color: AntiqueWhite;">
                                                <div style="padding: 20px">
                                                    Select Departments from the left. Double-click, drag and drop, or click the arrows to select.<br />
                                                    <telerik:RadAjaxPanel runat="server" ID="rap1">
                                                        <telerik:RadListBox ID="rlbDeptDCVL" runat="server" Width="250" Height="350" TransferMode="Copy"
                                                            AllowTransfer="true" AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" AutoPostBackOnTransfer="true"
                                                            TransferToID="rlbSelectedDeptDCVL">
                                                            <ButtonSettings Position="Right" />
                                                        </telerik:RadListBox>
                                                        <telerik:RadListBox ID="rlbSelectedDeptDCVL" runat="server" Width="220" Height="350">
                                                        </telerik:RadListBox>
                                                    </telerik:RadAjaxPanel>
                                                    <p style="text-align: center;">
                                                        <asp:LinkButton ID="lnkOKDeptDCVL" runat="server" Text="OK" class="label" />
                                                        &nbsp;&nbsp;
                                                        <asp:LinkButton ID="lnkCancelDeptDCVL" runat="server" Text="Cancel" class="label" />
                                                    </p>
                                                </div>
                                            </asp:Panel>
Hristo Valyavicharski
Telerik team
 answered on 04 Aug 2014
1 answer
106 views
I have a SharePoint 2013 Visual Web part which I'm using with a RadHtmlChart and a RadGrid. When the user clicks on a slice of the pie chart I've created, the RadGrid ought to populate with details about that slice. The actual AJAX call itself works as it is supposed to but the RadAjaxManager object appears to not be wrapping anything in UpdatePanels when it renders the HTML. As a result, I get this message:

SCRIPT5022: Sys.InvalidOperationException: Could not find UpdatePanel with ID <panel ID related to control I attempt to attach>. If it is being updated dynamically then it must be inside another UpdatePanel.

I removed the AjaxSettings part of the RadAjaxManager object entirely to make sure that the rest of the page was running OK and it was (of course, it didn't render anything but the method executed successfully). I tried pointing the AjaxUpdatedControl attribute ControlID at any number of things: the original RadGrid, an ASP Panel wrapped around the RadGrid, an empty panel elsewhere on the page, and a button I'd created to test the code behind. In each and every one of these cases, I received the message above. I also explicitly set the RadGrid's "Visible" property to "true", even though in the code behind the OnNeedDataSource event feeds it an empty set and I have a NoRecordsTemplate setting (so it should be visible on its own at all times anyway) but the issue persists.

Below is my ASP page:

01.<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2014.2.618.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
02. 
03.<div id="webpart">
04.<telerik:RadAjaxManager runat="server" ID="radAjaxManager1" OnAjaxRequest="radAjaxManager1_AjaxRequest">
05.    <AjaxSettings>
06.        <telerik:AjaxSetting AjaxControlID="radAjaxManager1">
07.            <UpdatedControls>
08.                <telerik:AjaxUpdatedControl ControlID="rgPhaseDetails"></telerik:AjaxUpdatedControl>
09.            </UpdatedControls>
10.        </telerik:AjaxSetting>
11.    </AjaxSettings>
12.</telerik:RadAjaxManager>
13. 
14.<telerik:RadCodeBlock ID="codeBlock" runat="server">
15.    <script type="text/javascript">
16.        function FillDealsRadGrid(sender, args) {
17.            var phase = args.get_category();
18.            $find("<%= radAjaxManager1.ClientID %>").ajaxRequest(phase);
19.        }
20. 
21.    </script>
22.</telerik:RadCodeBlock>
23. 
24.<div id="chartpaneldiv">
25.    <telerik:RadHtmlChart runat="server" ID="rhcDealsByPhase" Width="900" Height="500" Transitions="true" OnClientSeriesClicked="FillDealsRadGrid">
26.        <Appearance>
27.            <FillStyle BackgroundColor="White" />
28.        </Appearance>
29.        <ChartTitle Text="Deals By Phase">
30.            <Appearance Align="Center" BackgroundColor="White" Position="Top"></Appearance>
31.        </ChartTitle>
32.        <Legend>
33.            <Appearance BackgroundColor="White" Position="Right" Visible="true"></Appearance>
34.        </Legend>
35.        <PlotArea>
36.            <Appearance>
37.                <FillStyle BackgroundColor="White" />
38.            </Appearance>
39.        </PlotArea>
40.    </telerik:RadHtmlChart>
41.</div>
42. 
43.<telerik:RadGrid runat="server" ID="rgPhaseDetails" OnNeedDataSource="rgPhaseDetails_NeedDataSource" AutoGenerateColumns="false" EnableAjaxSkinRendering="true" Visible="true" Enabled="true" >
44.    <MasterTableView Visible="true">
45.        <NoRecordsTemplate>
46.            <asp:Label runat="server" Text="No records to display. Please click on a slice of the pie chart above to view this control."></asp:Label>
47.        </NoRecordsTemplate>
48.        <Columns>
49.            <telerik:GridHyperLinkColumn HeaderText="Deal Name" DataTextField="TextField" DataNavigateUrlFields="TextlURL" DataNavigateUrlFormatString="{0}"></telerik:GridHyperLinkColumn>
50.        </Columns>
51.    </MasterTableView>
52.</telerik:RadGrid>
53. 
54.<telerik:RadAjaxLoadingPanel runat="server" ID="rlpLoadingPanel" Height="77px" Width="113px" Skin="Metro"></telerik:RadAjaxLoadingPanel>
55.</div>
Maria Ilieva
Telerik team
 answered on 04 Aug 2014
1 answer
137 views
Hi

I have a pivotgrid with for levels of rows. Is it possible to have sub totals at only certain levels such as the first and second levels? The third and fourth levels are information only.

Thanks in advance for your time.
Chris 
Maria Ilieva
Telerik team
 answered on 04 Aug 2014
1 answer
103 views
Hi

I added some snippets containing HTML5 elements, such as a quote:

<figure>
   
<blockquote>Inset quote</blockquote>
   
<figcaption>Insert source</figcaption>
</figure>

These were wrapped in CDATA tags but when used in the editor, all I got in the source code was <div></div>.

I then wrapped my snippet in <div> tags and got the expected result.


So, should snippets always be wrapped in <div> tags, or this only necessary for those containing HTML5 tags?

Thanks
Ianko
Telerik team
 answered on 04 Aug 2014
9 answers
160 views
Hi,

I am trying to show a tool tip on resource header just like the one on appointment. I am grouping my scheduler by TechNames and would like to show  some information when a user hovers over a  technician. I have multiple resources in scheduler(TechName, TicketStaet,...).Following code executes multiple times and slows my application. Is there a way to know if a tooltip is already assigned to a tech?
 protected void rsTicketsSchedule_ResourceHeaderCreated(object sender, ResourceHeaderCreatedEventArgs e)
    {
        ((Label)e.Container.FindControl("ResourceLabel")).Text = e.Container.Resource.Text;
        
        if (e.Container.Resource.Type == "TechName")
        {
            //need to avoid duplicate items in the list
            //Register control for tooltip:
        ToolTipTargetControl tooltipTargetControl = new ToolTipTargetControl(e.Container.FindControl("ResourceLabel").ClientID, true);
        if(RadToolTipManagerUserName.TargetControls.Contains(tooltipTargetControl)  == false)
            RadToolTipManagerUserName.TargetControls.Add(e.Container.FindControl("ResourceLabel").ClientID, true);
       }
    }

}
 
Any idea?

Regards,
Prava
Plamen
Telerik team
 answered on 04 Aug 2014
1 answer
292 views
I'm checking to see if this functionality is available in the RadScheduler control.  The two images I have attached show what I have been able to accomplish, and what I wish to accomplish. 

My application has a daily note table that is date specific, not appointment or resource specific.  I can modify the CssClass attributed to the RadScheduler's TimeSlots for a date that has a note in the database but that's really unsightly, as you see in the image.

I would really like to be able to modify the CssClass for the Date Header if that date has an entry in the notes table.  Even better would be a small link so I can popup the note for viewing, or even a tooltip situation for hovering to see the note.

Thanks!
Greg
Plamen
Telerik team
 answered on 04 Aug 2014
1 answer
265 views
Hello,

1. open a hyper link manager and insert the following link: http://google.com?a=1&b=2
2. click ok and check the resulted HTML in the editor (html view)

ampersand in the href attribute is encoded:

Is there a way to make it not encode query string separator.
Ianko
Telerik team
 answered on 04 Aug 2014
1 answer
117 views
Hi,

we have some serious problems after migrating from Windows 7 to Windows 8.1. The excel export is not working the way it should anymore.

We get the following behavior:
- we trigger the export method without any error
- excel is opening from the browser
- we see an excel sheet but not the way we want it to be. It seems like the export method did a print of the whole page. We get all elements from our site in our excel sheet. all filters that where applied previously on the grid don't show any effect. We see the whole amount of possible results.

Do you have any suggestions?

Thanks in advance!
Maximilian Morlock
Daniel
Telerik team
 answered on 04 Aug 2014
5 answers
286 views
I'm trying to set up a yearly calendar and have a muti view of months 2X6, so all 12 months show, pretty simple.

 <telerik:RadCalendar ID="radCalendarYear" runat="server" MultiViewColumns="6" ShowRowHeaders="False"  MultiViewRows="2" 
         EnableNavigation="False" EnableMonthYearFastNavigation="false"
         UseColumnHeadersAsSelectors="false" ShowOtherMonthsDays="false" Width="99%">
    </telerik:RadCalendar>

Now, I want to run through the whole year and set the absent dates for the year. I want to replace the month day with an "E" for excused, and a "U" for Unexcused , and set the background color to red or yellow.

I looked at the Day render process, example, and it does what I want, but I cannot get it to work for a multiview. So, am i using the wrong method? Should I use the Special Days process instead? And if so, how would I replace the cell text in this process?

Could anyone help me with a subroutine example of looping through a datatable (or an iList), and setting the text and color of a multi-view calendar for the corresponding matching dates (calendar date to datatable date)?

Special days? or DayRender?

Thanks so much
,
~bg
Eyup
Telerik team
 answered on 04 Aug 2014
2 answers
126 views
On my site i have a page called schedule.aspx :

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="schedule.aspx.cs" Inherits="aro.Schedule" MasterPageFile="~/UI/Templates/Default.Master" Theme="Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Below tha i have 2 asp:content (headers).
After that a asp:content holding 2 dropdown lists and then a radscheduler and a raddock.

The masterpage holds a menu which is shown at the top and a footer shown at the bottom.

Now what i would like to do is when pressing a button show the radscheduler full screen.
So no more dropdowns, no menu's etc, just the radscheduler.

Would it be an idea to put the scheduler inside a dock and resize that dock when pressing a button ?
Of open a new dock and putting the scheduler in that dock ?

After this i want to do the same thing with a page holding a raddock.
In both cases it is related to mobile use, where i want to make optimal use of the room on the screen.

Any ideas would be helpfull :)

Plamen
Telerik team
 answered on 04 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?