Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi there,

my query is about RadDateTimePicker.

Is there way to change the TimePicker layout to look something like following

12 PM    12 AM
1   PM     1  AM
2   PM     2 AM

Please suggest ASAP.

Thank you
Marin
Telerik team
 answered on 06 Sep 2011
2 answers
115 views

Hi,

I need to export radgrid to CSV and Excel as well as print .One particular column of the grid is a  datetime column .But in the grd_DataBound event I am changing the value of that field to either Y or null for business purpose(e.Item.Cells[4].Text = "Y";).

 This is only for showing to the user and the column is bound to datetime field.

 While exporting CSV exports the Y or null but excel exports the date time value. While print also I am getting Y or null value.

Could anybody please suggest a way to show cell text i.e. ‘Y’ in Excel also …?

grd.ExportSettings.ExportOnlyData = true;
  
        grd.ExportSettings.IgnorePaging = true;
  
        grd.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
  
        grd.ExportSettings.OpenInNewWindow = true;


Regards,
Soumya

 

Winni
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
87 views
  Hi
            Have 2 dll's in project telerik.webcontrols and telerik.web.ui  and i upgrade telerik.web.UI to latest version . Before upgradation both dll working fine simultaneously but when i upgrade the telerik.web.ui radcombobox of type telerik,webcontrols when i want to select item from dropdownlist last item of list get selected only and also mouse over effect is not working.
  
Princy
Top achievements
Rank 2
 answered on 06 Sep 2011
1 answer
53 views
Hi ,

I am using RadAsyncUpload on my application ,problem is that RadAsyncUpload is showing as flash and select button is showing white color.

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
                            MultipleFileSelection="Automatic" OnClientFileSelected="DoFrameSize"
                            ForeColor="Black">
                                </telerik:RadAsyncUpload>
                                <telerik:RadProgressArea runat="server" ID="RadProgressArea1">
                                </telerik:RadProgressArea>

Please suggest me some solutions.

Thanks
Princy
Top achievements
Rank 2
 answered on 06 Sep 2011
3 answers
177 views
Hi, I am trying to recreate the same "filter as you type" functionality in the ASP.NET AJAX TreeView control that you have in your Silverlight TreeView Control demo. See: http://demos.telerik.com/silverlight/#TreeView/FilterSearchSort

I only need the Filter capability.

Any suggestions would be greatly appreciated?

Regards
Gary

Shinu
Top achievements
Rank 2
 answered on 06 Sep 2011
1 answer
152 views
I got the bellow error (from firebug console), after I click refresh icon button and click export grid content icon to (csv or pdf in top right corenr).
and of course, there is no response to export and nothing is downloaded

this is the error:
uncaught exception: [Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: resource://firebug_rjs/net/spy.js :: callPageHandler :: line 796"  data: no]

Line 0


here is my code:

                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gvViolation">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gvViolation" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

     <script type="text/javascript">
         function onRequestStart(sender, args) {
             if (args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
                 args.set_enableAjax(false);
             }
         }
    </script>








<telerik:RadGrid ID="gvViolation" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center" Visible="false"
                                            AllowSorting="True" AutoGenerateColumns="true" AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" AutoGenerateHierarchy="false"
                                            AllowPaging="True" PageSize="5" runat="server" GridLines="None"
                                            OnNeedDataSource="gvViolation_NeedDataSource" Skin="Sunset">

                                                <ExportSettings HideStructureColumns="true" OpenInNewWindow="true" >
                                                     <Pdf Author="WheelTrack" Creator="WheelTrack" />
                                                 </ExportSettings>
                                                 <MasterTableView Width="100%" CommandItemDisplay="Top"    >

                                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

                                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                            



                                                    <EditFormSettings>
                                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                                                    </EditFormSettings>


                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                    <CommandItemSettings ShowExportToWordButton="false" ShowExportToExcelButton="false" ShowExportToPdfButton="true" ShowAddNewRecordButton="false"
                                                        ShowExportToCsvButton="true"    />
                                                </MasterTableView>

                                                <FilterMenu EnableImageSprites="False"></FilterMenu>

                                                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Sunset"></HeaderContextMenu>
                                                </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 06 Sep 2011
2 answers
107 views
I am building a time tracking app for a client and one of their requests is to show a calendar (where I can use Day_Render to show individual items on a per-day basis with the month view) and they would like to add a column to the right of each row (next to Saturday) where it shows weekly totals. Is this possible to do?
digitall
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
371 views
hi

It seems that when creating the button control in code behind, the click event never gets fired, or am i doing something wrong? Here's the code

Dim

 

 

btn As New RadButton

btn.ButtonType =

 

RadButtonType.LinkButton

btn.EnableEmbeddedSkins =

 

False

btn.Skin = Common.

 

Constants.SkinDefault

btn.CausesValidation =

 

False

btn.Text = Common.Resources.

 

Messages.RibbonVergaderingen

btn.CommandArgument = Common.PadNaarVergaderingenLijstPagina

 

AddHandler btn.Click, AddressOf btn_Click


Private

 

 

Sub btn_Click(ByVal sender As Object, ByVal e As EventArgs)

 

Me.Presenter.Model.RefererUrl = DirectCast(sender, RadButton).CommandArgument


end sub
Shinu
Top achievements
Rank 2
 answered on 06 Sep 2011
2 answers
74 views
Hi,
I am having trouble hooking into the client events of the RadSlidingPane. Specifically :

onclientcollapsed


Basically, I want to trigger some javascript when the user collapses the sliding pane to hide the contents.
So I have :
<telerik:RadSlidingZone ID="rszExtraInfo" runat="server" ClickToOpen="True"
            SlideDirection="Left" SkinID="Vista">
            <telerik:RadSlidingPane ID="RadSlidingPane1" Runat="server"
                EnableResize="False" onclientexpanding="FetchExtraInfo" Title="More Info"
                Width="400px" onclientcollapsed="HideExtraInfo">
                <asp:Panel ID="pnlExtraInfo" runat="server" Height="100%" Width="100%">
                </asp:Panel>
            </telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
With my HideExtraInfo declared as :
function HideExtraInfo(sender) {
    
                    document.getElementById('<%= pnlExtraInfo.ClientID%>').style.display = 'none';
 
            }

The javascript works well enough, the issue is that the onclientcollapsed event is triggered not only when the pane is collapsed, but also when it is docked.
Is this by design?
I have tried to use the accessors of the sender (sliding pane) such as :
sender.get_collapsed()
sender.get_docked()
sender.get_expanded()
But, no matter what, all of these values return false.
Is there a way to achieve the outcome I am after?
Thanks,
Steele.

-- Edit : I am using Telerik version 2011.2.712.40
Steele
Top achievements
Rank 1
 answered on 06 Sep 2011
3 answers
143 views
Hi all i am using a datatable to populate data for the radmenu.
i have a column LINK in my datatable which is used for DataNavigateUrlField, But my problem is i have put my files into  a directory say "Sales"
i.e
sales/ManageCustomer.aspx

but i am inserting only ManageCustomer.aspx in the table. as datatable also contain the ManageCustomer.aspx.
I don't want to give full path Like Sales/ManageCustomer.aspx in the table.
if i give the full path Sales/ManageCustomer.aspx it is working fine.
for this reason i am having problem in case of navigation.
So, What i will do provide the Relative Path for Navigation

 

DataTable

 

dt = _presenter.GetAllMenu();

 

 

radMenu1.DataFieldParentID =

"ParentMenuId";

 

radMenu1.DataFieldID =

"MenuId";

 

radMenu1.DataNavigateUrlField =

"Link";

 

radMenu1.DataTextField =

"MenuName";

 

radMenu1.DataValueField =

"MenuId";

 

radMenu1.DataSource = dt;

radMenu1.DataBind();

 

Please help.

Neel

Gotcha
Top achievements
Rank 1
 answered on 06 Sep 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?