Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,

How to disable the download option if folder does not have files on right click of rad file explorer gridview context menu.
Please send me the code
Thanks
sandhya.
Dobromir
Telerik team
 answered on 28 Jun 2011
3 answers
146 views
Hello,

I was trying to use the Mac skin for the RadGrid control. Unfortunatley I do not see it listed in the drop down list box for Skin property. Is the Mac skin still supported? I see the Mac skin listed in the help files.
I am currently using the latest release of the Rad Tools for ASP.NET for AJAX.

      Thanks in advance,
      Tim
Georgi Tunev
Telerik team
 answered on 28 Jun 2011
5 answers
137 views
Hi ,


I m using Sp RadEditor in my web control control is display after deploy webpart but i cant see header toolbar in this speditor and give javascript error

Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: width Actual value was NaN.

please help to solve this issue..

Thanks in advance....
Stanimir
Telerik team
 answered on 28 Jun 2011
2 answers
77 views
Hi,

I have a page with a radgrid, scrolled down to a specfic row. I click on the row and make my window visible by setting the "VisibleOnPageLoad"-property to True and I center it using the "OnClientAutoSizeEnd"-clientevent.
The window is positioned correctly at this moment but is then automatically repositioned lower on the page.
Any ideas which setting could be causing this?

This is the definition of my window:
<telerik:RadWindow ID="wdwDetail" Modal="true" Skin="Telerik" Width="800px" AutoSize="true" AutoSizeBehaviors="Height" OnClientAutoSizeEnd="OnClientShowCenterOnly" runat="server" VisibleOnPageLoad="false" VisibleStatusbar="false" IconUrl="~/img/favicon.ico" ShowContentDuringLoad="true" Title="Detailed Info" DestroyOnClose="false" EnableShadow="true" Behaviors="Close">
    <ContentTemplate>
        ...
    </ContentTemplate>
</telerik:RadWindow>

Note that it isn't defined inside a RadWindowManager as I want to use a asp updatepanel inside it.

Thanks in advance,

Wim
Wim
Top achievements
Rank 1
 answered on 28 Jun 2011
2 answers
101 views
Hello,

I am looking forward to draw some interactive charts from the data present in my website. I have seen Telerik RadCharts very useful in this and want to implement them for my website. Can I freely implement them in my site?

Thanks.
Georgi Tunev
Telerik team
 answered on 28 Jun 2011
4 answers
317 views
error the requested url returned 500 error
hi i have used ajax gridview..after updating sometime it is showing above error and some times json did not return requested url  error....before loading from a particular controller two times it is coming to the controller..
please help me out....i have read your documents nothing worked for me...
Iana Tsolova
Telerik team
 answered on 28 Jun 2011
1 answer
134 views
Is there any plans for a asp.net ajax map control? I know google maps is widely used but it would be nice to have something similar to the silverlight map control in asp.net.
Sebastian
Telerik team
 answered on 28 Jun 2011
3 answers
548 views
Hi,

I have grid with GridEditCommandColumn and OnItemDataBound i am adding Javascript on this GridEditCommandColumn but nothing happening. Can anyone tell what i am doing wrong ? Following is my code
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditImageUrl="~/Images/Edit.gif"
                                        ButtonType="ImageButton">
                                    </telerik:GridEditCommandColumn>
 
if (e.Item is GridDataItem)
           {
               GridDataItem item = (GridDataItem)e.Item;
               ImageButton edit = (ImageButton)item["EditCommandColumn"].Controls[0];
               //edit.Attributes.Add("OnClick", " onContactRowSelected('" + sender + "','" + e + "');");
               edit.Attributes["onClick"] = "alert('test');return false;";
           }


One more thing my Grid has following thing as well
<ClientEvents OnCommand="radContactGrid_Command" OnRowCreated="onContactGridRowCreated"
                                    OnRowCreating="onContactGridRowCreating" OnRowSelected="onContactRowSelected" />



Thanks,
--Jai
Tsvetoslav
Telerik team
 answered on 28 Jun 2011
3 answers
78 views
Hai,

I have a Radwindow like this :

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
                                                        ReloadOnShow="true" runat="server" Skin="Web20" Style="z-index: 20002" >
                                                        <Windows >
                                                            <telerik:RadWindow ID="RadWindowPopup"
                                                                EnableShadow="true" DestroyOnClose="true" Visible="true"
                                                                Behaviors="Resize, Close, Maximize"
                                                                VisibleOnPageLoad="false" runat="server" Title="Local Item Request" Skin="Web20">
                                                            </telerik:RadWindow>
                                                        </Windows>
                                                       
                                                    </telerik:RadWindowManager>

In Code behind, I have called this radwindow like this :

if (!ClientScript.IsStartupScriptRegistered("popupWindow"))
                     System.Web.UI.ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "popupWindow", "showWindow();", true);

showWindow() javascript is

 

function showWindow() {

 

 

var varMealOrderID = document.getElementById('ctl00_CphMaster_hidMealOrderId').value;

 

 

var oWnd = radopen('FKMS_CTRL_Local_Item_Request.aspx?MealOrderId=' + varMealOrderID + '&popup=true' + '&Mode=NEW', 'RadWindowPopup');

 

oWnd.setSize(1100, 750);

oWnd.moveTo(75, 50);

 

}


This code works fine in my local development computer. But When I hosted in a server, it is showing the following javascript error in the radopen portion of showWindow() method.

Microsoft JScript runtime error: Object doesn't support this property or method

Please help me.
Marin Bratanov
Telerik team
 answered on 28 Jun 2011
5 answers
375 views
Hi all:
    I try to display the file ( txt, image , PDF , word..etc format) using tooltip. ( just like the sameple
http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultvb.aspx)

the issue is that when I mouse over the record, I got the following error : "RadTootipManager response error. ...the message received from server could not parsed..."

what I did is to read the files then use the response.write to generate the file content.please see code below:

'on parent page which has tooltip with it
  
    Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)
        Dim ctrl As Control = Page.LoadControl("WidgetControls/WidgetSupportDocument.ascx")
        panel.ContentTemplateContainer.Controls.Add(ctrl)
        Dim details As WidgetSupportDocument = DirectCast(ctrl, WidgetSupportDocument)
        details.SupportDocumentID = elementID
        details.DisplayData()
  
    End Sub


on WidgetSupportDocument.ascx control:
Public Sub DisplayData()
      Dim dsData As DataSet
      Dim strFileName As String
      Dim byteData() As Byte
      Dim strDocumentType As String
      Dim arrSplit() As String
      'load data from database
      dsData = LoadData(Me.SupportDocumentID)
      byteData = CType(dsData.Tables(0).Rows(0).Item("FileContent"), Byte())
      arrSplit = Split(dsData.Tables(0).Rows(0).Item("Filename").ToString, ".")
      intLastValue = arrSplit.Length
      strDocumentType = arrSplit(intLastValue - 1)
      SetControlData(strDocumentType, byteData)
  End Sub
  Private Sub SetControlData(ByVal strDocumentType As String, ByVal byteView() As Byte, Optional ByVal strFileName As String = "")
      Dim strContentType As String = String.Empty
      Select Case UCase(strDocumentType)
          Case "HTML", "HTM"
              strContentType = "text/HTML"
          Case "BMP"
              strContentType = "image/BMP"
          Case "JPG"
              strContentType = "image/JPEG"
          Case "GIF"
              strContentType = "image/GIF"
          Case "PDF"
              strContentType = "application/pdf"
          Case "XLS"
              strContentType = "application/vnd.ms-excel"
          Case "DOC"
              strContentType = "application/msword"
          Case "TXT", "LOG"
              ' .txt file (such as a report tab delimited export) should open inline rather then directly in the browser 
              If strFileName = "" Then
                  strFileName = "ViewDocument.txt"
              End If
              With Response
                  .ClearContent()
                  .ClearHeaders()
                  strContentType = "text/unknown"
                  .AddHeader("Content-Length", CType(byteView.Length, String))
                  .AddHeader("Content-Disposition", "inline; filename=" & strFileName)
              End With
          Case Else
      End Select
      If strContentType.Length > 0 Then
          With Response
              .Clear()
              .ContentType = strContentType
              .BinaryWrite(byteView)
              .Flush()
          End With
      Else
          Response.Write("<font color='red'>The selected attachement cannot be displayed. </font>")
                End If
  End Sub


Thanks
Helena
Marin Bratanov
Telerik team
 answered on 28 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?