Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
88 views
Steps:

I have a Rad grid with paging enabled( Say ihave grid with 4pages into it)
Now I select first row in the page 1 then click the sortable coulmn;the grid automatically navigates to page x with the sameselected value.Say it redirects me to page 2 with the same selected row.I dont want the grid to work like this in the above scenario.

My desired output should be something like:
If I select a first row and then click sortable column,the grid should not navigate to different page,rather it should remain on the same page.
Say If I selected row is on page 2 of grid and i click the sortable coulmn.I should be on the page 2 itself and 1st row should remian as selected (may be with different value of sorting is applied).
Pavlina
Telerik team
 answered on 12 Aug 2010
1 answer
72 views
Hi Telerik Team,

We have used RadStyleSheetManager in our application. In local server Styles are applying fine. But when i deploy the application in remote server, the styles are not applying.
In web.config all the required settings are given. What is the reason for it or any extra settings needed other than HttpHandler registration and system.webServer for WebResource?

VS2008
C#

Urgent Help is apperciated,
Thanks.
T. Tsonev
Telerik team
 answered on 12 Aug 2010
5 answers
162 views

Hello Telerik Team,

I have developed a scheduler which pulls data from sharepoint list.But i could see that the end date
does not show up correctly.Please anyone can guide me .

Thank you
Smith

T. Tsonev
Telerik team
 answered on 12 Aug 2010
1 answer
96 views
I am trying to use a GridRatingColumn in a detail table in hierarchical grid. However, I am getting the following error:

FilterDelay is not supported by Telerik.Web.UI.GridRatingColumn


If I remove the rating column, the detail table loads without errors. Should this work?
Veli
Telerik team
 answered on 12 Aug 2010
5 answers
298 views
hi

I am new to telerik controls so please help me to sort out this problem.

I am using AdvanceInsert and AdvanceEdit template to save and edit the appointments. i also used resources and custome attributes in scheduler to match my requirements, but i wasn't been able to fetch the resources values on "schActivities_AppointmentInsert" event.

let me show you my code to explain the issue.

In aspx
<telerik:RadScheduler ID="schActivities" Width="100%" Height="100%" runat="server"
        Skin="Office2007" SelectedView="MonthView" DayStartTime="08:00:00" DayEndTime="18:00:00"
        TimeZoneOffset="03:00:00" DataKeyField="ID" DataSubjectField="ActName" DataDescriptionField="Description" DataStartField="StartDate"
        DataEndField="EndDate" OnClientTimeSlotContextMenu="OnClientTimeSlotContextMenu"
        OnFormCreated="OnFormCreated" StartInsertingInAdvancedForm="true" StartEditingInAdvancedForm="true"
        OnTimeSlotContextMenuItemClicking="OnTimeSlotContextMenuItemClicking" OnClientFormCreated="schedulerFormCreated" AllowDelete="false" CustomAttributeNames="ActType,Priority,Location,ContactIDs,Notes">
        <AdvancedForm Modal="true" Enabled="true" Width="570" />
        <TimelineView UserSelectable="false" />
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />
        <ResourceTypes>
            <telerik:ResourceType KeyField="Value" Name="ActType" TextField="Value" ForeignKeyField="ActType" />
            <telerik:ResourceType KeyField="Value" Name="Priority" TextField="Value" ForeignKeyField="Priority" />
        </ResourceTypes>
        <ResourceStyles>
            <telerik:ResourceStyleMapping Type="Priority" Text="Low" ApplyCssClass="rsCategoryGreen" />
            <telerik:ResourceStyleMapping Type="Priority" Text="Medium" ApplyCssClass="rsCategoryOrange" />
            <telerik:ResourceStyleMapping Type="Priority" Text="High" ApplyCssClass="rsCategoryBlue" />
        </ResourceStyles>
        <AppointmentTemplate>
            <img src='<%# "../Images/Schedule" + Eval("ActType") +".gif" %>' alt=" " title='<%# Eval("ActType") %>' />
            <asp:Label ID="lblSubject" runat="server" Text='<%# Eval("Subject") %>' />
            <%--Text='<%# (Convert.ToString(Eval("Subject")).Length > 10) ? Convert.ToString(Eval("Subject")).Substring(0,10) : Eval("Subject") %>'--%>
        </AppointmentTemplate>
        <TimeSlotContextMenus>
            <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                <Items>
                    <telerik:RadMenuItem Selected="true" Text="Schedule a meeting" Value="CommandAddAppointment" />
                    <telerik:RadMenuItem Text="Schedule a call" Value="CommandAddAppointment" />
                    <telerik:RadMenuItem Text="Schedule a task" Value="CommandAddAppointment" />
                    <telerik:RadMenuItem IsSeparator="true" />
                    <telerik:RadMenuItem Selected="true" Text="Un-Scheduled activities">
                        <Items>
                            <telerik:RadMenuItem Text="Create a meeting" Value="CommandAddAppointment" />
                            <telerik:RadMenuItem Text="Make a call" Value="CommandAddAppointment" />
                            <telerik:RadMenuItem Text="Create a task" Value="CommandAddAppointment" />
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem IsSeparator="true" />
                    <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" />
                </Items>
            </telerik:RadSchedulerContextMenu>
        </TimeSlotContextMenus>
        <AppointmentContextMenus>
            <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                <Items>
                    <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Export to iCal" />
                </Items>
            </telerik:RadSchedulerContextMenu>
        </AppointmentContextMenus>
        <AdvancedInsertTemplate>
            <Scheduler:AdvancedForm runat="server" ID="ucAdvForm_Insert" Mode="Insert" Subject='<%# Bind("Subject") %>'
                Description='<%# Bind("Description") %>' ActType="Meeting" Start='<%# Bind("Start") %>'
                End='<%# Bind("End") %>' ContactIDs='<%# Bind("ContactIDs") %>' />
        </AdvancedInsertTemplate>
        <AdvancedEditTemplate>
            <Scheduler:AdvancedForm runat="server" ID="ucAdvForm_Edit" Mode="Edit" Subject='<%# Bind("Subject") %>'
                Description='<%# Bind("Description") %>' ActType="Meeting" Start='<%# Bind("Start") %>'
                End='<%# Bind("End") %>' ContactIDs='<%# Bind("ContactIDs") %>' />
        </AdvancedEditTemplate>
    </telerik:RadScheduler>


In cs file
protected void schActivities_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
        {
//code
        }
 
 
        protected void schActivities_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
        {
        }

but i wasn't been able to get resources values in insert event.  actually in my scheduler there are three kind of appointment "Meeting", "Call", "Task" and i need to set the Activity Type on insert command, but i can't find it through resources. Please help me in this.

Regards
Manmeet Singh
Veronica
Telerik team
 answered on 12 Aug 2010
3 answers
153 views
Hi,

In my scheduling application (which displays using web service based binding for the appointments and serverside bindings for the group by resource headers), I need to display different resource headers for different date ranges.

This is fine when the page is loaded for a specific date, but not when the date is changed via the date previous/next/calendar controls, which load new appointments via Ajax.

I'm thinking that I need to handle date change events such that I can reload the entire page under these circumstances, which leads me on to a couple of questions:

1) Which events do I need to override in the browser to make sure that I get control once the date is changed?

2) My schedule control is within an AjaxPanel, from my event handler, how can I force a postback that does a full page reload instead of a partial Ajax one?

3) I need to keep tabs on the date range that the scheduler is displaying throughout all this, what properties do I have to copy into hidden fields for the visible date window?

Thanks for your help.
T. Tsonev
Telerik team
 answered on 12 Aug 2010
4 answers
334 views
Hi Friends,

i have 2 asp:Panel in the RadAjaxPanel with default buttons set for each panels
i just want know how to make the default button work when i focus to its appropriate textbox and press enter.
plzz help aspd

<telerik:RadScriptManager id="RadScriptManager1" runat="server" EnableTheming="True"></telerik:RadScriptManager>
<telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" Runat="server" Transparency="30" style="background:url('../Images/LoadingTitle.gif') center center no-repeat #f3f3e2;"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="CMSRadAPan" runat="server" EnableHistory="True" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
<asp:Panel ID="pnl1" runat="server" defaultbutton="Button1" style="border:1px outset #abcdef;background-color:#abcdef">
 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
 <asp:Button ID="Button1" runat="server" Text="Button1" OnClick="Button1_Click" />
</asp:Panel>

<asp:Panel ID="Panel1" runat="server" defaultbutton="Button2" style="border:1px outset #fedcba;background-color:#fedcba">   
 <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
 <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>    
 <asp:Button ID="Button2" runat="server" Text="Button2" OnClick="Button2_Click" />
</asp:Panel>

</telerik:RadAjaxPanel>


Thanks
K²

 

 

 

 

Maria Ilieva
Telerik team
 answered on 12 Aug 2010
0 answers
73 views

The text of panel item I want to format following way. How do I do this. I want to show Name of the Item + a Tab + Amount for that item.

I am bouding panel bar to a dataTable, before bounding I would like to format the text in a data table following way. I tried vbTab. It did not work.

“Name” + VBTAB + “Amount”

A K
Top achievements
Rank 1
 asked on 12 Aug 2010
1 answer
281 views
Hi,

In my page there's a RadSplitter with 3 RadGrids, 2 of them are in a SlidingPane, see aspx-code below.
I want to drag items from the two grids in the slidingPanes into the other grid. Therefore I use the RadAjaxManager with dynamically added AjaxSettings on preRender.

This is what happens:
The first time I drag an item into the grid everything works fine, except the following text appears above the grid:
"16651|updatePanel|ctl00_ContentPlaceHolderMain_ctl00_ContentPlaceHolderMain_grdPlaylistItemsPanel|"

When after that I drag another item into the grid, I get a JS error:
"Runtime-fout Microsoft JScript: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolderMain_ctl00_ContentPlaceHolderMain_grdPlaylistItemsPanel'. If it is being updated dynamically then it must be inside another UpdatePanel."

I tried adding the AjaxSettings in the aspx-page or dynamically, but that makes no difference. I even tried to use the AjaxManagerProxy instead of the AjaxManager. Then I don't get the error, but I don't see the loadingPanel.

Here's my code:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
         
    </telerik:RadAjaxManager>
    <asp:UpdatePanel runat="server" ID="UpdatePanel">
        <ContentTemplate>
            <cc1:QYNPanel ID="QynPanel" runat="server">
                <asp:Label ID="lblHeader" runat="server" CssClass="panel-header"></asp:Label>
                <table class="form">
                    <tr>
                        <td>
                            <asp:Label ID="lblName" runat="server" Text="Name"></asp:Label>
                        </td>
                        <td>
                            <uc1:QYNTextBox ID="txtName" runat="server" Name="Name" MaxLength="255" Width="500" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
                        </td>
                        <td>
                            <uc1:QYNTextBox ID="txtDescription" runat="server" Name="Description" MaxLength="255"
                                Width="500" IsValidEmpty="True" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblPickPolicy" runat="server" Text="Playback Method"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rblPickPolicy" runat="server" AutoPostBack="True">
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblArchived" runat="server" Text="Archived"></asp:Label>
                        </td>
                        <td>
                            <asp:CheckBox ID="chkArchived" runat="server" />
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <strong>Playlist Items</strong>
                <telerik:RadSplitter ID="RadSplitter1" runat="server">
                    <telerik:RadPane ID="RadPane1" runat="server">
                        <telerik:RadGrid ID="grdPlaylistItems" runat="server">
                            <MasterTableView TableLayout="Fixed">
                                <Columns>
                                    <telerik:GridTemplateColumn ItemStyle-Width="500" HeaderText="Thumbnail">
                                        <ItemTemplate>
                                            <asp:Image ID="imgThumbnail" runat="server" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="ItemName" HeaderText="Name"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PlaylistItemType" HeaderText="Type"></telerik:GridBoundColumn>
                                    <telerik:GridNumericColumn DataField="Duration" FooterText="Total Duration: " HeaderText="Duration"
                                        Aggregate="Sum"></telerik:GridNumericColumn>
                                    <telerik:GridBoundColumn DataField="SortOrder" HeaderText="SortOrder" UniqueName="SortOrder"
                                        Visible="true"></telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"
                                        ItemStyle-Width="30" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this item?"></telerik:GridButtonColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPane>
                    <telerik:RadPane ID="RadPane2" runat="server">
                        <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server">
                            <telerik:RadSlidingPane ID="SlidingPaneMessages" runat="server">
                                <div class="radGrid">
                                    <strong>Drag message to playlist</strong>
                                    <br />
                                    <telerik:RadGrid ID="grdMessages" runat="server">
                                        <MasterTableView DataKeyNames="ScalaId, Name" ShowHeader="false">
                                            <SortExpressions>
                                                <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                                            </SortExpressions>
                                            <Columns>
                                                <telerik:GridTemplateColumn>
                                                    <ItemTemplate>
                                                        <asp:Image ID="imgThumbnail" runat="server" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridBoundColumn DataField="Name" DataType="System.String" ItemStyle-Width="150px"
                                                    ItemStyle-Wrap="true">
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </div>
                            </telerik:RadSlidingPane>
                            <telerik:RadSlidingPane ID="SlidingPanePlaylists" runat="server">
                                <div class="radGrid">
                                    <strong>Drag subplaylist to playlist</strong>
                                    <br />
                                    <telerik:RadGrid ID="grdPlaylists" runat="server">
                                        <MasterTableView DataKeyNames="ScalaId, Name" ShowHeader="false">
                                            <SortExpressions>
                                                <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                                            </SortExpressions>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="Name" DataType="System.String" ItemStyle-Width="150px"
                                                    ItemStyle-Wrap="true">
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </div>
                            </telerik:RadSlidingPane>
                        </telerik:RadSlidingZone>
                    </telerik:RadPane>
                </telerik:RadSplitter>
                <table width="100%">
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblValidationMessages" runat="server" Text="" CssClass="errorMessage"></asp:Label>
                        </td>
                    </tr>
                    <tr align="right">
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="OnSaveClick" />
                            <asp:Button ID="btnApply" runat="server" Text="Apply" OnClick="OnApplyClick" />
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" Visible="false" OnClick="OnDeleteClick"
                                CausesValidation="false" OnClientClick="return confirm('Are you sure this playlist must be deleted?')" />
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="OnBackClick" CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </cc1:QYNPanel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
There is a MasterPage, but there's no Ajax or RadControls in it.

OnPreRender:
protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);
 
    //add AjaxManager settings
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(grdPlaylistItems, grdPlaylistItems, RadAjaxLoadingPanel1);
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(grdMessages, grdPlaylistItems, RadAjaxLoadingPanel1);
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(grdPlaylists, grdPlaylistItems, RadAjaxLoadingPanel1);
 
     //set height of Splitter dynamically
    RadSplitter1.Height = (LoadedPlaylistItems.Count * 57) + 60;
}


Thanks!
Maria Ilieva
Telerik team
 answered on 12 Aug 2010
3 answers
143 views
Using Q1 2010 and IE7. I have a RadTabStrip which is dynamically loaded on Page_Load. Each of the pageviews is created at this time with a user control. One of the user controls has a radSlider, which loads OK. However, when I mouse over one of the tabs, the rad slider just disappears. The slider's div is still there in the page source with the proper dimensions, but the slider is gone. When I change to another tab, it reappears until I mouse over a tab again. This only happens in IE7. The pageviews have already been setup with relative positions, so the slider does move when the pageview is scrolled.

Here is the code for the slider:
<telerik:RadSlider runat="server" ID="RadSlider1" Orientation="Horizontal" EnableAjaxSkinRendering="false"
                Skin="WebBlue" Height="40" TrackPosition="BottomRight" ItemType="Item" EnableServerSideRendering="false" TrackMouseWheel="False">
            </telerik:RadSlider>

The width is set on page_load when the items are loaded.
Tsvetie
Telerik team
 answered on 12 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?