Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
128 views
Hello,
    When deleting a recurrence appointment, I want to pop up another confirmation dialog before pop up the original delete confirmation dialog using OnClientAppointmentDeleting event.

<telerik:RadScheduler  ID="uxTimeOfDayRadScheduler" ..  
OnClientRecurrenceActionDialogShowing="uxTimeOfDayRadScheduler_OnClientRecurrenceActionDialogShowing">

function 
uxTimeOfDayRadScheduler_OnClientRecurrenceActionDialogShowing(sender, eventArgs){
    if (eventArgs.get_recurrenceAction() == 2) {
    eventArgs.set_cancel(true);    
    //Pop 
a confirmation window     
    var confirmMessage = 
"Deleting this appointment may affect other scripts. Do you want to delete this appointment?";     
    radconfirm(confirmMessage,
 
        function (arg)
{   
            if (arg)
{      
            eventArgs.set_cancel(false);
            }
        },
330, 100, null, 'Delete Appointment');
    }
}

But, when on the OnClientAppointmentDeleting event, I put a radconfirm, it doesn't wait for an answer from the client and pop up the original delete confirmation dialog before I could choose.

I tried to call set_cancel(true) before calling my own radconfirm, but if I call set_cancel(false) after clicked 'ok' in my own radconfirm, it doesn't pop up the original delete confirmation dialog. Can anyone Help ?


Thanks
Jully
Top achievements
Rank 1
 asked on 12 Feb 2011
1 answer
38 views
Hai
I am using update panel in radgrid. It works fine with update panel Now i want to show loading panel to the user when he do any action in the grid. So i changed it with rad ajax manager. But its not working . The page is loaded for the long time and no action is performed. I used the following code to show loading pane.  Is there any issue in code? How can i show the loading pane to user?

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
    <div>
    <h2>Latest Events</h2>
    <div>
      <telerik:RadAjaxLoadingPanel ID="Loadingpane" runat="server" Skin="Default">
      </telerik:RadAjaxLoadingPanel>
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grdLatestEvents">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdLatestEvents" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"/>


        <asp:Panel ID="pnlLatestEvents"  GroupingText="Latest events"  runat="server" Width="95%">
            <table width="100%" align="center">
                <tr>
                    <td>
<telerik:RadToolTipManager ID="LatestEvents" runat="server" 
            AutoTooltipify="true" width="200px"  ShowCallout="true" Skin="Web20" />
                        <telerik:radgrid ID="grdLatestEvents" runat="server" Width="100%" 
                            Skin="Vista" 
                            AllowSorting="True" AllowPaging="True" 
                             GridLines="None"  TabIndex="1"  AlternatingItemStyle-BackColor="#ecf5ff"
                            AutoGenerateColumns="False" PageSize="10" 
                            ondeletecommand="grdLatestEvents_DeleteCommand" 
                            oninsertcommand="grdLatestEvents_InsertCommand" 
                            onneeddatasource="grdLatestEvents_NeedDataSource" 
                            onupdatecommand="grdLatestEvents_UpdateCommand" 
                            onitemcreated="grdLatestEvents_ItemCreated" onitemdatabound="grdLatestEvents_ItemDataBound" 
                              >
                            <MasterTableView   EditMode="EditForms" EditFormSettings-EditColumn-UpdateText="Save"  EditFormSettings-EditColumn-InsertText="Save" 
                               CommandItemDisplay="Top" NoMasterRecordsText="No Events to display" TableLayout="Fixed" 
                               DataKeyNames="LatestEventID"  >
                                   <CommandItemSettings AddNewRecordText="Add Event" />
                                        <Columns>
                                            <telerik:GridEditCommandColumn  UniqueName="EditCommandColumn1" 
                                                 ButtonType="ImageButton" HeaderStyle-Width="5%">
                                                     <HeaderStyle >
                                                     </HeaderStyle>
                                             </telerik:GridEditCommandColumn>
                                             <telerik:GridButtonColumn ConfirmText="Are you sure you want to Delete the Event?"
                                               ConfirmDialogType="RadWindow" ConfirmTitle="Delete"
                                                         ButtonType="ImageButton" CommandName="Delete" 
                                                      UniqueName="DeleteColumn" HeaderStyle-Width="5%">
                                             </telerik:GridButtonColumn>
                                             <telerik:GridBoundColumn HeaderText="Title" HeaderButtonType="TextButton"  HeaderStyle-Width="15%" 
                                                UniqueName="LatestEventTitle" MaxLength="50"  DataField="LatestEventTitle"  >
                                                                                         
                                            </telerik:GridBoundColumn>  
                                            <telerik:GridTemplateColumn HeaderText="Description" HeaderButtonType="TextButton"  HeaderStyle-Width="15%" 
                                                UniqueName="LatestEventDescription">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblLatestEventDescription" runat="server"  
                                                      Text='<%#Eval("LatestEventDescription")%>' ToolTip='<%#Eval("LatestEventDescription")%>' > </asp:Label>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadTextBox ID="txtLatestEventDescription" MaxLength="500"   TextMode="MultiLine"   Width="352px"
                                                     Height="150px"  runat="server"></telerik:RadTextBox>
                                                </EditItemTemplate>
                                           </telerik:GridTemplateColumn>
                                           <telerik:GridDateTimeColumn HeaderText="Event date" UniqueName="LatestEventDate"
                                            HeaderStyle-Width="15%" DataField="LatestEventDate"  >
                                           </telerik:GridDateTimeColumn>
                                           <telerik:GridCheckBoxColumn DataField="IsActive" UniqueName="IsActive"  HeaderText="Active" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                                        </telerik:GridCheckBoxColumn>
                                       </Columns>
                                  <PagerStyle Mode="NumericPages" Font-Bold="True" HorizontalAlign="Justify"></PagerStyle>
                           </MasterTableView>
                        </telerik:radgrid>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblError" CssClass="lblError" EnableTheming="false"  runat="server" ></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
       
    </div>
 
</div>
</asp:Content>



Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Feb 2011
2 answers
91 views
I have one radgrid for that I have set one property AutoGenerateColumns="true".
But I want one column align to right.
Because by default all the column has align left.

Below is the code snipt.
<radG:RadGrid ID="rdgAccEntriesReconcileReport" AllowFilteringByColumn="false" runat="server" AutoGenerateColumns="true"
  AllowPaging="true" PageSize="40" AllowSorting="true" GridLines="None" Skin="Telerik"
   MasterTableView-Visible="true" Width="100%" OnItemCommand="rdgAccEntriesReconcileReport_ItemCommand" OnItemDataBound="rdgAccEntriesReconcileReport_ItemBound"
   SortingSettings-SortedAscToolTip="Click to sort in ascending or alphabetic order"
    SortingSettings-SortedDescToolTip="Click to sort in descending or reverse alphabetic order" OnSortCommand="sortlist">
      <MasterTableView Width="100%">
  </MasterTableView>
      <ClientSettings>
         <Scrolling AllowScroll="true" UseStaticHeaders="true" />
           <Selecting AllowRowSelect="true" />
              </ClientSettings>
               </radG:RadGrid>

Please help if any additional coding or property need to be set.
nirbhay giri
Top achievements
Rank 1
 answered on 12 Feb 2011
2 answers
113 views

Hello!

I am in the initial stages of development of an application that will use Telerik's RADControls for ASP.NET AJAX. The web pages will interact with a WCF web service, which will be accessing a relational database management system.

Considering that this will be my first experience with Telerik components, I would appreciate whether someone could provide some assistance in regard to the most adequate component to use.

I have run some of the RADControls for ASP.NET AJAX Q3 2010 Live Examples and noticed that the Scheduler component might offer the features I am looking for. Could you please confirm this component can interact with a WCF web service?

In the "Scheduler / Resource Availability" example, rooms "Meeting room 201" and "Meeting room 202" are displayed side by side. I was wondering how the Scheduler component would handle a scenario where 10 or 15 rooms would have to be managed. Would it be possible for someone from Telerik to add a few rows to the Room table so that I could check the lay out of the page in the Live Example?

Please, let me know if there is another component that could also be used to track availability of resources.
Thank you in advance.

PTM

Paulo
Top achievements
Rank 1
 answered on 12 Feb 2011
1 answer
52 views
Hai


I am exporting the grid values to pdf,Excel and Word. when i am exporting the grid with the value "0" it displayed as "0.00" in Excel. But when i am exporting the same grid to word or PDF  the value "0" it displayed as "0". How Can i display the value as "0.00" in pdf and word also.



Thanks
Daniel
Telerik team
 answered on 11 Feb 2011
7 answers
666 views
I am using RadRotator, RadWindow and AjaxManager on Single Page with RadScriptManager and radStyleSheetManager on MasterPage.The problem is , the page creates a huge WebResource.axd file (arounf 450KB).I have enabled ScriptCombine and Compression in RadScriptManager and StyleSheetManagers but still 450KB is huge enough for using these controls.I have debug=false in my Web.config file with IIS Compression. Does RadControls add separate script files for each control or is there a way that I can reduce the size of overall compressed WebResource.asd file?


Thanks
Neha
Top achievements
Rank 1
 answered on 11 Feb 2011
2 answers
49 views
Based on the value of one of the columns in each row I need to change the text color (or background) in order to indicate what type of record this is. I'm guessing I can do this in item created or pre render but haven't been able to find any examples? Can someone point me in the right direction?

Thanks

Bill
wdudek
Top achievements
Rank 1
 answered on 11 Feb 2011
2 answers
97 views
Could someone point me in the right direction as to how to format the root items of a panelbar so that there is some horizontal space between all the collapsed root items? I dont want all the items to appear touching each other when they are collapsed

Any assistance would be greatly appreciated
Alan Fisher
Top achievements
Rank 1
 answered on 11 Feb 2011
1 answer
54 views
the text filter on dropdownlist template column on radgrid doesn't work for me.
It returns error "is neither a DataColumn nor a DataRelation for table Table."
Is there any special things need to do for the template column filter?

Thanks!
JJ
Top achievements
Rank 1
 answered on 11 Feb 2011
5 answers
182 views
Hi,

I am using RadGrid and it was working fine, but from yesterday I am getting an error like this "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server." I am getting this when I expand to see the child grid and afterwards when I am contracting that. I ahd put EnablePartialrendering=true on script manager. I tried with setting false also but then I am getting this same error on load of grid itself. Can any one help??
Jack Voss
Top achievements
Rank 1
 answered on 11 Feb 2011
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?