Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views
Hi, a have a problem with IgnorePaging="true" is not exporting all the pages to excel.
This is my code

<telerik:RadSlidingPane ID="RadSlidingPane2" runat="server" Title="Elementos Georeferenciados" Width="600px" EnableDock="false">
 <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" ClientEvents-OnRequestStart="pnlRequestStarted">
  <telerik:RadGrid ID="gridTematico" runat="server" AllowSorting="True" GridLines="None" Skin="Office2007" AllowFilteringByColumn="True" AllowPaging="True" PageSize="50" OnItemDataBound="gridTematico_ItemDataBound" OnColumnCreated="gridTematico_ColumnCreated" OnCancelCommand="gridTematico_CancelCommand" OnEditCommand="gridTematico_EditCommand" OnSelectedIndexChanged="gridTematico_SelectedIndexChanged" OnUpdateCommand="gridTematico_UpdateCommand">
   <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
   <MasterTableView CommandItemDisplay="Bottom" ShowFooter="True" ShowGroupFooter="True" UseAllDataFields="True">
    <Columns>
     <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Nº" AllowFiltering="False" FilterControlAltText="Filter TemplateColumn column">
      <ItemTemplate>
       <asp:Label ID="fila" runat="server" Width="30px" />
      </ItemTemplate>
      <HeaderStyle Width="30px" Font-Size="X-Small" Font-Bold="True" />
     </telerik:GridTemplateColumn>
     <telerik:GridEditCommandColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column"></telerik:GridEditCommandColumn>
    </Columns>
    <CommandItemSettings RefreshText="Actualizar" ShowAddNewRecordButton="False" />
    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
     <EditFormSettings>
      <EditColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column" UniqueName="EditCommandColumn1"></EditColumn>
     </EditFormSettings>
    </MasterTableView>
    <ClientSettings EnablePostBackOnRowClick="True">
     <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
    <ExportSettings ExportOnlyData="True" FileName="ElementosGeoreferenciados" IgnorePaging="True" OpenInNewWindow="True">
     <Csv ColumnDelimiter="Semicolon" />
    </ExportSettings>
   </telerik:RadGrid>
   <table>
   <tr>
    <td style="width: 32px;">
     <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/images/iconos/File_Excel.png" ToolTip="Exportar a Excel" Visible="False" OnClick="btnExcel_Click" Width="32px" Height="32px" />
    </td>
    <td style="width: 32px;">
     <asp:ImageButton ID="btnCsv" runat="server" ImageUrl="~/images/iconos/File_Csv.png" ToolTip="Exportar a csv" Visible="False" OnClick="btnCsv_Click" Width="32px" Height="32px" />
    </td>
    <td style="width: 32px;">
     <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/images/iconos/File_Word.png" ToolTip="Exportar a Word" Visible="False" OnClick="btnWord_Click" Width="32px" Height="32px" />
    </td>
   </tr>
   </table>
  </telerik:RadAjaxPanel>
</telerik:RadSlidingPane>

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 <script type="text/javascript">
  function pnlRequestStarted(ajaxPanel, eventArgs)
  {
   if((eventArgs.EventTarget.indexOf("btnExcel")!=-1)||(eventArgs.EventTarget.indexOf("btnCsv")!=-1)||(eventArgs.EventTarget.indexOf("btnWord")!=-1))
    eventArgs.EnableAjax = false;
  }
 </script>
</telerik:RadScriptBlock>

protected void btnExcel_Click(object sender, ImageClickEventArgs e)
{
 gridTematico.ExportSettings.IgnorePaging = true;
 gridTematico.ExportSettings.ExportOnlyData = true;
 gridTematico.ExportSettings.OpenInNewWindow = true;
 gridTematico.MasterTableView.ExportToExcel();
}
Princy
Top achievements
Rank 2
 answered on 15 Feb 2011
3 answers
244 views
Tried to add radupload control to the page programmatically, the result was an error "... Controls collections cannot be modified because the control contains code blocks..."  Further down in the yellow screen of death was a suggestion that adding a RadCodeBlock may resolve the issue. So... added a RadCodeBlock, added the upload control to the codeblock and add the codeblock to the page.

Same error.

A snippet of the code:

                var radCodeBlock = new RadCodeBlock();
                radCodeBlock.ID = "Block1";
                var radUpload = new RadUpload();
                radUpload.ID = "upload_" + szDbColumn;
                radUpload.MaxFileInputsCount = 1;
                radUpload.ControlObjectsVisibility = ControlObjectsVisibility.None;
                radCodeBlock.Controls.Add(radUpload);
                oControl.Controls.Add(radCodeBlock);
Genady Sergeev
Telerik team
 answered on 15 Feb 2011
2 answers
108 views
http://demos.telerik.com/aspnet-ajax/slider/examples/rangeslider/defaultcs.aspx

SelectionStart: $0
SelectionEnd: $300


I am trying to do something like the example on the link does. Use a range slider and update the selectionstart and selectionend. without doing a postback.
How can I do this? I have tried using :

This does not work since get_oldValue()  brings back the old value regardless of whether left or right handle is dragged.


function HandlePassengerValueChanged(sender, eventArgs) {
                     var myval = sender._selectionEnd;
                     if (eventArgs.get_oldValue() == $('#<%= lblPassengerNoStart.ClientID %>').html()) {
                         $('#<%= lblPassengerNoStart.ClientID %>').html(myval);
                     }
                     else  {
                         $('#<%= lblPassengerNoEnd.ClientID %>').html(myval);
                     }
                 }

tried:
1. var activeHandle = sender.get_activeHandle();
2. sender._valueOnSlideStart
3. var myval = sender.get_value();
.
.
. and lot mor options without any luck.

I have spent hours on this now. Please help.

Regards
Anup
Anup
Top achievements
Rank 1
 answered on 15 Feb 2011
3 answers
84 views
Hi 
1. select a font name from Arial to Verdana
2. select font size to 10px to 12px
3. font name reset to Arial.

my css file for radeditor:

body 
{
    font-family: Arial;
    font-size: 10px;
}

P  
{  
    margin:0px;  
}   

Is there a way not to cause the reset? same to 'Paragraph Style' tool

thank you
Charles





Rumen
Telerik team
 answered on 15 Feb 2011
3 answers
259 views
Hi

i am using File Explorer control. i want to change the order of default functional menu items (Open,Delete,Rename) and as well as add new custom menu item to Context Menus. i want to do this for Treeview,Grid Context Menus in the File Explorer Control.

Whether it is possible. and send me sample Code. 

Thanks

Thanks
Dobromir
Telerik team
 answered on 15 Feb 2011
1 answer
258 views
Does Telerik Controls work with Load Runner? If so can we get some guidance.

All your help is greatly appreciated.

Thanks
Prashant  
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Feb 2011
4 answers
164 views
I have a single radcontext menu on a page. This context menu gets filled with items from a scriptservice using the radscriptmanager.
Now the problem lies in that the screen boundary detection doesn't work, my context menu is always clipped on the bottom and on the right of the page. The scrollbars apear but the context menu doesn't scroll into view. The code to open the context menu :

DocroomPageController.prototype.ShowContextMenu = function(e, row, LoadDelegate, subparam) {
    PageController().PreventContextTimeout();
    PageController().HideContextMenu();

    var menu = PageController().GetContextMenu();
    menu.hide();

    if (menu.get_items().get_count() > 0) {
        menu.get_items().clear();
    }
    this.contextevent = e;
   
    if (!subparam) {
        LoadDelegate(row);
    }
    else {
        LoadDelegate(row, subparam);
    }
   
    menu.show(e);

    $telerik.cancelRawEvent(e);

}

DocroomPageController.prototype.ContextCompleteCallback = function(ResponseObject, ResponseAsXml, ResponseAsText) {

    var menu = this.GetContextMenu();
    var i;

    for (i = 0; i < ResponseObject.length; i++) {
        var childItem
        var exists = false;
        if (menu.get_items().getItem(i)) {
            exists = true;
            childItem = menu.get_items().getItem(i);
            childItem.set_text(ResponseObject[i].Text);
            childItem.set_value(ResponseObject[i].Value);

        }
        else {
            childItem = new Telerik.Web.UI.RadMenuItem();
            childItem.set_text(ResponseObject[i].Text);
            childItem.set_value(ResponseObject[i].Value);

        }
        if (ResponseObject[i].isSeparator == true) {
            childItem.set_isSeparator(ResponseObject[i].isSeparator);
        }

        if (ResponseObject[i].Image) {
            // alert(ResponseObject[i].Image);
            childItem.set_imageUrl('./Images/' + ResponseObject[i].Image);
        }
        if (!exists) {
            menu.get_items().add(childItem);
        }
        childItem.set_navigateUrl(ResponseObject[i].NavigateUrl);

        if (!childItem.get_visible()) {
            childItem.show();
        }
    }

}

with an example of a loaddelegate :

 

DocroomPageController.prototype.LoadContextItems =

function(item) {

 

ContextMenus.GetObjectContextMenuItems(item, delegate(PageController(), PageController().ContextCompleteCallback), delegate(PageController(), PageController().ErrorCompleteCallback));

}



We are using the context menu within pages loaded in a radpane.
Kate
Telerik team
 answered on 15 Feb 2011
1 answer
101 views

hi,

i have this in the <ItemTemplate>
...
<asp:LinkButton ID="DelCom" runat="server" Visible="true" CommandName="TOTO"></asp:LinkButton>
...

in the itemdatabound i have this 
...
    Dim DD As String = Session("CLE_REF_LANGUAGE")
            Dim cle_lien_com As String = CType(DataBinder.Eval(CType(e.Item, RadListViewDataItem).DataItem, "CLE_LIEN_COMMENTAIRE"), String)

            Dim LnkDelCom As LinkButton = CType(e.Item.FindControl("DelCom"), LinkButton)
            LnkDelCom.Text = TClass.TRAD_OBJ("TXT_SUPPRIMER", DD)
            LnkDelCom.CssClass = "Del_LnkCom"
            LnkDelCom.Visible = True
            LnkDelCom.CommandArgument = cle_lien_com
            LnkDelCom.CommandName = "DelCom"
            AddHandler LnkDelCom.Command, AddressOf LnkDelCom_Click
...

the linkbutton appear ok !
but when i click on the link in IE, i have no event...

normaly listview start this event ???

Private Sub RAD_LV_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListViewCommandEventArgs) Handles RAD_LV.ItemCommand

        Dim z As String = e.CommandName
        Dim v As String = e.CommandArgument

    End Sub

Veli
Telerik team
 answered on 15 Feb 2011
1 answer
77 views
Hey we are using Telerik controls for our site. We use HP QTP for recording our test scripts . Our research gave solutions for RADCombo but just wanted to check if all Telerik controls are now supported for HP QTP. If this is not the right place to ask the question can you guide us to the right place.


Thanks
Prashant  
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Feb 2011
4 answers
164 views
Hi,
I was exploring how to highlight correct 'today' in scheduler depending on the time zone (my application is set up in a way that the admin sets in which time zone the application is being used, enabling the application to be hosted in one time zone and used in another) and came across this help page. I feel the TimeZoneOffset property does not offer perfect solution to display events according to the time zone.

Consider the following scenario, where you have two events:
(a) at 11AM, 2nd April 2011
(b) at 11AM, 4th April 2011

Your time zone is Brisbane, Australia, which is UTC+10
Upon setting the TimeZoneOffset to timespan of 10 hours, you'll see both the events at their correct times.

But say your time zone is Melbourne, Australia which is UTC+10, but it practices daylight saving (whereas Brisbane does not). At the time of (a), DST is on, and at the time of (b), DST is off. (Note that DST for Melbourne will be switched off on 3rd April 2011)
If you set the TimeZoneOffset to 11 hours, only event (a) will be displayed correctly.
If you set the TimeZoneOffset to 10 hours, only event (b) will be displayed correctly.

Hence I feel it does not handle DST's correctly in the scheduler. Did I miss anything here?

Best regards,
Anuruddha



Nikolay Tsenkov
Telerik team
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?