Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 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
209 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
194 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
143 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
433 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
96 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
181 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
2 answers
103 views
The documentation make reference to the above function in the general "Clientside Basics" section, bu7t the function doesn't appear top be properly documented anyplace else.

So, questions:
  1. Where can I find the documentation for this?
  2. Are there any other clever functions that we might benefit from knowing about?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 05 Sep 2011
1 answer
84 views
I need to change the colors on pie chart.code is here.if success then green color, for failure red,for Not applicable fill with gray color.
And I have attached the screen shot.please reply me.

Protected Sub GetLatestBackup()
        Try
            'To bind the Latest Backup Chart
            rcLatestBackup.Series.Clear()
            Dim dbNutBackupModel As New NutBackupModel
            Dim dashlist As List(Of DashBoardList)
 
            dashlist = (From objdashboardlist In dbNutBackupModel.Getbackupstatus _
                       Select New DashBoardlist With {.CntSuccessful = (CInt(objdashboardlist(4))), .CntFailure = (CInt(objdashboardlist(5))), .CntNA = (CInt(objdashboardlist(6)))}).ToList()
            ' Dim intSuccessful As Integer = dashlist.IndexO
            Dim dtList As New DataTable("StatusList")
            dtList.Columns.Add("Count", GetType(Integer))
            dtList.Columns.Add("Status", GetType(String))
            Dim drowSuccess As DataRow = dtList.NewRow()
            Dim drowFailed As DataRow = dtList.NewRow()
            Dim drowNA As DataRow = dtList.NewRow()
            drowSuccess("Count") = dashlist.Item(0).CntSuccessful
            drowSuccess("Status") = "Successful"
            dtList.Rows.Add(drowSuccess)
            dtList.AcceptChanges()
 
 
            drowFailed("Count") = dashlist.Item(0).CntFailure
            drowFailed("Status") = "Failed"
            dtList.Rows.Add(drowFailed)
 
            drowNA("Count") = dashlist.Item(0).CntNA
            drowNA("Status") = "N/A"
            dtList.Rows.Add(drowNA)
            dtList.AcceptChanges()
 
            rcLatestBackup.DataSource = dtList
            rcLatestBackup.IntelligentLabelsEnabled = True
            rcLatestBackup.DataManager.LabelsColumn = "Status"
            rcLatestBackup.DataBind()
            rcLatestBackup.Series(0).Name = "Status"
            rcLatestBackup.Series(0).Appearance.LegendDisplayMode = Telerik.Charting.ChartSeriesLegendDisplayMode.ItemLabels
            rcLatestBackup.Series(0).ActiveRegionToolTip = "#ITEM: #%"
            rcLatestBackup.ChartTitle.TextBlock.Text = " Latest backup status- " & " Success : " & dashlist.Item(0).CntSuccessful & "  " & " Failure : " & dashlist.Item(0).CntFailure
            rcLatestBackup.Series(0).Appearance.LabelAppearance.Visible = True
        Catch ex As Exception
            CommonFunctions.ErrorLog("Dashboard.aspx.vb", "GetLatestBackup", ex)
        End Try
 
    End Sub
<telerik:RadChart ID="rcLatestBackup" runat="server" DefaultType="Pie" AutoTextWrap="true" SeriesOrientation="Vertical">
                                 
                                   <Appearance Dimensions-Width="710px" ImageQuality="HighQuality">
                                 </Appearance>
                                <Series>
                               <telerik:ChartSeries Name="Series 1" Type="Pie" DataYColumn="">
                               <Appearance LegendDisplayMode="SeriesName">
                            </Appearance>
                </telerik:ChartSeries>
            </Series>
                        </telerik:RadChart
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Sep 2011
3 answers
104 views
Hi,

I've been using  the ItemsRequested event on a Radcombo, this worked fine when I was using IE8 both locally, production and live. I''ve recently upgarded to IE9 and the ItemRequested no longer works on production and live. But does work fine locally?

Am I missing something? Do you know why this might be?

Thanks
Ivana
Telerik team
 answered on 05 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?