Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
49 views
Radeditor doesn't show correctly when first loaded, if I refresh the page it displays correctly.

The same issue as mentioned in this post, http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-does-not-display-correct-on-first-hit.aspx

Has there been any resolve to this?

Thanks in advance.
Rumen
Telerik team
 answered on 30 Dec 2010
5 answers
114 views
I am trying to implement a similar solution to this example - http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx
However this example is with an ASMX service. I tried using exactly the same syntax with a WCF service but I just get a Javascript error saying "MyService" is not defined.

<script type="text/javascript">
 
     function pageLoad(sender, args) {
         setInterval("MyService.GetData(updateGrid)", 1000);
     }

I know I can statically data-bind to a WCF service but can I do that here? What am I missing?

Thanks
Prangadj
Top achievements
Rank 1
 answered on 30 Dec 2010
2 answers
145 views
Hi.

In our CMS we're using a RadScheduler in TimelineView mode to show schedules in our system. Recently, we've wanted to implement different time ranges for our schedule view. For our "quarter" view, we want to show 3 months.

However, as you can see by the day-resolution.png attachment, it doesn't look good because there are too many days showing at once in this mode, never mind if you resize the window to something smaller than this screenshot! Thus, we opted for a larger SlotDuration (a week), which results to looking like week-resolution.png.

This looks a lot better grid-wise, but if you compare the two, you'll see a major problem. The schedules snap to the slots! This results in an unacceptably low resolution for our schedules. If for instance you look at the third row from the top, in day-resolution.png it starts 26.10 and ends 14.11, but in week-resolution.png it appears to start on 22.10 and end on 18.11.

What I would like is a grid that looks like it does in week-resolution.png, but a schedule resolution like in day-resolution.png. I made a mock-up of this in the best-of-both.png image. Is there any way I can get the RadScheduler to behave like in best-of-both.png?

Sincerely,
Alexander
Alexander
Top achievements
Rank 1
 answered on 30 Dec 2010
3 answers
60 views
I'm using vb.net and tried to set up a Master/Detail hierarchical grid.  I followed the instructions in the documentation "Creating hierarchical grids from design-time" to the letter without success, that is to say when he program ran it looked like a Master/Detail Grid, but when it dropped down to view the detail table there was no data.  I then went back into the property builder and changed the properties for the Detail table and set the Data Source property  to the appropriate data source for the detail table and the detail grid showed up correctly.  The problem however is I could not see the field/column values for the detail table in the property builder.  I then tried to set the column values from the code behind on the load event.  I used the same syntax as in the documentation to try and set the first column visible property value to false as in : TryCast(grdTruckStatus.MasterTableView.Items(0), GridDataItem).ChildItem.NestedTableViews(0).GetColumnSafe("tID").Visible = False
Problem here is when I run the code I get a run time error telling me I have an "Argument Out of Range Exception".  I thought there may be a problem with the detail table so I added the code "MsgBox(Me.grdTruckStatus.MasterTableView.HasDetailTables())", which returned True, so I know the program knows there's a detail table.
I sent the code to support and what they send me is an example project in C#, when I'm using VB, so I was wondering if someone else has come across this problem or can tell me 1. how exactly to set up the hierarchical grid at design time so I can see and change the field/column properties or 2.  If after setting up the Master/Detail you cannot see the detail table fields what is the appropriate syntax is to set the column properties in code behind.

Thanks,
Tom
Princy
Top achievements
Rank 2
 answered on 30 Dec 2010
1 answer
58 views
Hi Telerik Support, I've created an appointment for a particular user with the following rules,

DTSTART:20100501T080000Z      
DTEND:20100502T200000Z 
RRULE: FREQ=WEEKLY;INTERVAL=3;BYDAY=SA;WKST=SA 

I want to somehow check against the date, for instance today's date (12/28/2010), to see if a user has any appointments. Then, the system will send them an email telling them so. I've been looking through the online documents, but cannot find anything.

Can you help?
Peter
Telerik team
 answered on 30 Dec 2010
2 answers
126 views
Hello - It seems that the Scrolling functionality of the RadRotator is having adverse effects on the display of my web pages. Is there a way to disable the functionality altogether? I've tried things like setting the ScrollDuration to some ridiculously high value in hopes that my frames would change but the scrolling would not occur, but that doesn't seem to work. Thanks.

Matt
Princy
Top achievements
Rank 2
 answered on 30 Dec 2010
5 answers
167 views
When ever we are filtering or doing any operation on UnAssignedTasks, the loading panel does not appear on the tab. It only appears on AssignedTasks tab. Are we doing or missing anything?

Please note that when we switch between the tabs, loading panel appears as expected. The only issue is within the unassignedTasks tabs where the loading panel is not shown when performing any action within that user control.

<%@ Page Language="C#" MasterPageFile="~/Platform/Interface/Default.master" AutoEventWireup="true"
    CodeFile="ConsolidatedView.aspx.cs" Inherits="Interface_PendingTask_ConsolidatedView"
    Title="" %>
 
<%@ Register Src="~/WebControls/PendingTask/Tasks.ascx" TagName="Tasks" TagPrefix="rei" %>
<%@ Register Src="~/WebControls/PendingTask/TaskDetails.ascx" TagName="TaskDetails"
    TagPrefix="rei" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <rei:REIRadAjaxManagerProxy ID="rampPendingTasks" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="lnkViewType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTaskHeader" LoadingPanelID="TaskLoadingPanel" />
                     
                     
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rtsTasks">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTasks" LoadingPanelID="TaskLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
<%--            <telerik:AjaxSetting AjaxControlID="reiSearchPanel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTaskHeader" LoadingPanelID="TaskLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
            <telerik:AjaxSetting AjaxControlID="UnAssignedTasks">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTasks" LoadingPanelID="TaskLoadingPanel" />
                     
                     
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </rei:REIRadAjaxManagerProxy>
    <rei:REIRadAjaxLoadingPanel ID="TaskLoadingPanel" runat="server">
    </rei:REIRadAjaxLoadingPanel>
    <telerik:RadCodeBlock runat="server" ID="rdCodeBlock">
 
        <script language="javascript" type="text/javascript">      
         function OnClientItemChecked(sender, eventArgs)
         {    
            var lstBoxControl;      
            lstBoxControl = $find(sender.get_id());
            var items = lstBoxControl.get_items();        
            if(eventArgs.get_item().get_index() == 0)
            {
                var firstIndex = eventArgs.get_item().get_checked();
                for(var i=0;i<lstBoxControl.get_items().get_count();i++)
                {
                     
                    items.getItem(i).set_checked(firstIndex);
                }
            }
            else
            {
                   items.getItem(0).set_checked(false);
            }       
         }
        </script>
 
    </telerik:RadCodeBlock>
    <rei:REISearchPanel ID="reiSearchPanel" runat="server" ValidationGroup="ValGroupSearchDates">
        <rei:BasicSearchPanel ID="BasicSearchPanel" runat="server">
            <table width="100%" border="0" class="module_tb" summary="Basic Search Filters">
                <tr>
                    <td width="12%" scope="row">
                        <rei:REIASPLabel ID="lblTrackingNumber" runat="server" Text="Tracking #" />
                    </td>
                    <td width="28%">
                        <rei:REIASPTextBox ID="txtTrackingNumber" runat="server" MaxLength="20" Width="150px" />
                    </td>
                    <td width="12%" valign="middle">
                        <rei:REIASPLabel ID="lblRole" runat="server" Text="Role" />
                    </td>
                    <td width="48%">
                        <rei:REIRadListBox ID="lstRole" EnableEmbeddedSkins="false" CheckBoxes="true" SelectionMode="Multiple"
                            Width="250px" Height="70px" runat="server" OnClientItemChecked="OnClientItemChecked">
                        </rei:REIRadListBox>
                    </td>
                </tr>
                <tr>
                    <td width="12%" scope="row" valign="middle">
                        <rei:REIASPLabel ID="lblDocument" runat="server" Text="Document" />
                    </td>
                    <td width="48%" class="searchvertalign">
                        <rei:REIRadListBox ID="lstDocument" EnableEmbeddedSkins="false" CheckBoxes="true"
                            Width="250px" Height="70px" SelectionMode="Multiple" runat="server" OnClientItemChecked="OnClientItemChecked">
                        </rei:REIRadListBox>
                    </td>
                    <td width="12%" valign="middle">
                        <rei:REIASPLabel ID="lblTask" runat="server" Text="Task" />
                    </td>
                    <td width="48%">
                        <rei:REIRadListBox ID="lstTasks" EnableEmbeddedSkins="false" CheckBoxes="true" SelectionMode="Multiple"
                            Width="250px" Height="70px" runat="server" OnClientItemChecked="OnClientItemChecked">
                        </rei:REIRadListBox>
                    </td>
                </tr>
                <tr>
                    <td width="12%" valign="middle" scope="row">
                        <rei:REIASPLabel ID="lblStatus" runat="server" Text="Status" />
                    </td>
                    <td width="48%" class="searchvertalign">
                        <rei:REIRadListBox ID="lstStatus" EnableEmbeddedSkins="false" CheckBoxes="true" SelectionMode="Multiple"
                            Width="250px" Height="70px" runat="server" OnClientItemChecked="OnClientItemChecked">
                        </rei:REIRadListBox>
                    </td>
                    <td width="12%">
                        <rei:REIASPLabel ID="lblDisplayView" runat="server" Text="Display View" />
                    </td>
                    <td width="48%">
                        <rei:REIASPRadioButtonList ID="rbListDisplay" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Consolidated" Value="Consolidated" Selected="True" />
                            <asp:ListItem Text="Detailed" Value="Detailed" />
                        </rei:REIASPRadioButtonList>
                    </td>
                </tr>
            </table>
        </rei:BasicSearchPanel>
        <rei:AdvancedSearchPanel ID="AdvancedSearchPanel" runat="server">
            <table width="100%" border="0" class="module_tb" summary="Basic Search Filters">
                <tr>
                    <td width="8%" class="searchvertalign" scope="row">
                        <rei:REIASPLabel ID="lblAssignedDateFrom" runat="server" Text="Assigned On" />
                    </td>
                    <td class="searchvertalign">
                        <rei:REIASPLabel ID="lblDateFrom" runat="server" Text="Between" AssociatedControlID="dpAssignedDateFrom" />
                        <rei:REIRadDatePicker ID="dpAssignedDateFrom" runat="server" Width="100px" EnableEmbeddedSkins="false"
                            Skin="HrsaTheme">
                            <Calendar>
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Bisque" />
                                </SpecialDays>
                            </Calendar>
                        </rei:REIRadDatePicker>
                        <rei:REIASPLabel ID="lblAssignedDateTo" runat="server" Text="and" AssociatedControlID="dpAssignedDateTo" />
                        <rei:REIRadDatePicker ID="dpAssignedDateTo" runat="server" Width="100px" EnableEmbeddedSkins="false"
                            Skin="HrsaTheme">
                            <Calendar>
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Bisque" />
                                </SpecialDays>
                            </Calendar>
                        </rei:REIRadDatePicker>
                    </td>
                    <td width="8%" class="searchvertalign" scope="row">
                        <rei:REIASPLabel ID="lblCompledOn" runat="server" Text="Completed On" />
                    </td>
                    <td class="searchvertalign">
                        <rei:REIASPLabel ID="lblCompletedDateFrom" runat="server" Text="Between" AssociatedControlID="dpCompletedDateFrom" />
                        <rei:REIRadDatePicker ID="dpCompletedDateFrom" runat="server" Width="100px" EnableEmbeddedSkins="false"
                            Skin="HrsaTheme">
                            <Calendar>
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Bisque" />
                                </SpecialDays>
                            </Calendar>
                        </rei:REIRadDatePicker>
                        <rei:REIASPLabel ID="lblCompletedDateTo" runat="server" Text="and" AssociatedControlID="dpCompletedDateTo" />
                        <rei:REIRadDatePicker ID="dpCompletedDateTo" runat="server" Width="100px" EnableEmbeddedSkins="false"
                            Skin="HrsaTheme">
                            <Calendar>
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Bisque" />
                                </SpecialDays>
                            </Calendar>
                        </rei:REIRadDatePicker>
                    </td>
                </tr>
            </table>
        </rei:AdvancedSearchPanel>
        <rei:DisplaySearchOptions ID="parsortbyCombo" runat="server" SearchPanelID="reiSearchPanel">
            <Fields>
                <rei:Field Name="Role" Value="RoleAbbr" />
                <rei:Field Name="Document" Value="ProcessName" />
                <rei:Field Name="Task" Value="TaskType" />
            </Fields>
            <SortItems>
                <rei:SortItem DefaultFieldName="Role" DefaultSortOrder="Ascending" />
                <rei:SortItem DefaultFieldName="Document" DefaultSortOrder="Ascending" />
                <rei:SortItem DefaultFieldName="Task" DefaultSortOrder="Descending" />
            </SortItems>
        </rei:DisplaySearchOptions>
    </rei:REISearchPanel>
 
    <script type="text/javascript">
            showDetailedViewClick.subscribe(function(sender, eventArgs) {
                javascript: __doPostBack('ctl00$MainContent$lnkViewType', '');
            }
        );
    </script>
 
    <asp:Panel ID="pnlTaskHeader" runat="server">
        <table width="100%">
            <tr>
                <td align="right">
                    <rei:REIASPLinkButton ID="lnkViewType" runat="server" Text="Task Detailed View" Visible="false" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlTasks" runat="server">
            <div class="tabout">
                <div class="tabsstrip">
                    <rei:REIRadTabStrip ID="rtsTasks" runat="server" SelectedIndex="0" Width="100%" BorderStyle="None"
                        OnTabClick="rtsTasks_OnTabClick">
                        <Tabs>
                            <rei:REIRadTab runat="server" Text="Assigned" SelectedIndex="0" />
                            <rei:REIRadTab runat="server" Text="Unassigned" SelectedIndex="1" />
                            <rei:REIRadTab runat="server" Text="Recently Completed" SelectedIndex="2" />
                        </Tabs>
                    </rei:REIRadTabStrip>
                </div>
                <asp:Panel ID="pnlConsolidatedView" runat="server" Visible="false">
                    <div class="tabins">
                        <asp:Panel ID="pnlConsolidatedAssigned" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div3">
                                    <rei:Tasks ID="AssignedTasks" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlConsolidatedUnassigned" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div8">
                                    <rei:Tasks ID="UnAssignedTasks" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlConsolidatedRecentlyCompleted" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div11">
                                    <rei:Tasks ID="CompletedTasks" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </asp:Panel>
                <asp:Panel ID="pnlDetailedView" runat="server" Visible="false">
                    <div class="tabins">
                        <asp:Panel ID="pnlDetailedAssigned" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div5">
                                    <rei:TaskDetails ID="AssignedTaskDetails" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlDetailedUnassigned" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div13">
                                    <rei:TaskDetails ID="UnAssignedTaskDetails" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlDetailedRecentlyCompleted" runat="server" Visible="false">
                            <div class="rmpHiddenView">
                                <div id="Div22">
                                    <rei:TaskDetails ID="CompletedTaskDetails" runat="server" />
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </asp:Panel>
            </div>
        </asp:Panel>
    </asp:Panel>
</asp:Content>
Iana Tsolova
Telerik team
 answered on 30 Dec 2010
5 answers
175 views
Hi Telerik,

I want to use a list view control with an user control as its data item. I want to add user control and bind to the list view each time a button is clicked. I also want paging for the list view. Please reply me asap.

Thanks in advance
Iana Tsolova
Telerik team
 answered on 30 Dec 2010
5 answers
258 views
HI,

I have rad grid and it has list of records, when i click on one record it shows detail information on popup page.
For pop up page I show the rad list view control and show the detail record.
in rad list view also have RadDataPager for showing the next previous record.
my problem was i need to show my selected record in the rad list view control as a first page.
that's mean when i pass the id of my record how should i show that record in first page.

How should i do it, please help me as soon as possible, this is urgent.

thanks
Waruni
Iana Tsolova
Telerik team
 answered on 30 Dec 2010
1 answer
159 views
Hi,

I want to add items in a specific category to my RadListBox Control. But I don't know how it would be done. I would like to give an example that how my RadListBox should appears. Fruits and Vegetables are categories and the items appear in each category should appear in a sorted manner in each category. Any help regarding this really appreciated.

Fruits
Apple
Grapes
Orange
Vegetables
Cucumber
Okra
spinach

Princy
Top achievements
Rank 2
 answered on 30 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?