Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
165 views
Hi
I have a Grid with export options using the following code as a code behinde did not do anything when click the button... any Idea?
here is the code;
---------------------------------------------------------------

Partial Class Archive_Folder_OrdersList
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)

        Select Case DropDownList1.SelectedValue
            Case "Export to CSV"
                SetExportSettings()
                RadGrid1.MasterTableView.ExportToCSV()
                Exit Select
            Case "Export to PDF"
                SetExportSettings()
                RadGrid1.MasterTableView.ExportToPdf()
                Exit Select
            Case "Export to Excel"
                SetExportSettings()
                RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Html
                RadGrid1.MasterTableView.ExportToExcel()
                Exit Select
            Case "Export to Styled Excel"
                RadGrid1.ExportSettings.IgnorePaging = ckbxAllPages.Checked
                RadGrid1.ExportSettings.ExportOnlyData = True
                RadGrid1.ExportSettings.OpenInNewWindow = ckbxNewWindow.Checked
                RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML
                RadGrid1.MasterTableView.ExportToExcel()
                Exit Select
            Case "Export to Word"
                SetExportSettings()
                RadGrid1.MasterTableView.ExportToWord()
                Exit Select

        End Select
    End Sub
    Private Sub SetExportSettings()
        RadGrid1.ExportSettings.IgnorePaging = ckbxAllPages.Checked
        RadGrid1.ExportSettings.ExportOnlyData = ckbxDataOnly.Checked
        RadGrid1.ExportSettings.OpenInNewWindow = ckbxNewWindow.Checked
    End Sub
    Protected Sub RadGrid1_ExcelMLExportRowCreated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs)
        If e.RowType = Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.DataRow Then
            If e.Row.Cells(0) IsNot Nothing AndAlso DirectCast(e.Row.Cells(3).Data.DataItem, String).Contains("Suppliers") Then
                e.Row.Cells(0).StyleValue = "MyCustomStyle"
            End If
        End If
    End Sub
    Protected Sub RadGrid1_ExcelMLExportStylesCreated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLStyleCreatedArgs)
        For Each style As Telerik.Web.UI.GridExcelBuilder.StyleElement In e.Styles
            If style.Id = "headerStyle" Then
                style.FontStyle.Bold = True
                style.FontStyle.Color = System.Drawing.Color.Gainsboro
                style.InteriorStyle.Color = System.Drawing.Color.Wheat
                style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
            ElseIf style.Id = "itemStyle" Then
                style.InteriorStyle.Color = System.Drawing.Color.WhiteSmoke
                style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
            ElseIf style.Id = "alternatingItemStyle" Then
                style.InteriorStyle.Color = System.Drawing.Color.LightGray
                style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
            End If
        Next

        Dim myStyle As New Telerik.Web.UI.GridExcelBuilder.StyleElement("MyCustomStyle")
        myStyle.FontStyle.Bold = True
        myStyle.FontStyle.Italic = True
        myStyle.InteriorStyle.Color = System.Drawing.Color.Gray
        myStyle.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
        e.Styles.Add(myStyle)

    End Sub
End Class
------------------------------------------------------

Thanks for any help
Daniel
Telerik team
 answered on 29 Mar 2010
4 answers
113 views
When opening VS 2008 with the new release I'm occasionally getting this exception:

Unhandled Exception at
Telerik.VSX.AssemblyDiscovery.AssemblyLister.Init
Telerik.VSX.Helpers.UpdateChecker.VersionAvailabilityGetter_Complete
Telerik.VSX.LatestVersionPRocessing.BaseMonitoredProcess`1.DoAsyncJobAndRaiseCompleteEvent
System.Threading.ThreadHelper.ThreadStart_Context
System.Threading.ExecutionContext.Run
System.Threading.TheradHelper.ThreadStart

After one or two restarts it goes away.
Jeremy
Top achievements
Rank 1
 answered on 29 Mar 2010
2 answers
113 views
In FF the grid doesn't seem to 'grey out' like it does in IE. I successfully implemented the disable code as explained in:
http://www.telerik.com/help/aspnet-ajax/grdenabledconventions.html and it disables the grid (and child controls) in both IE and FF.   I haven't found anything in the support forums or knowledge base about this.  Is this a known issue?  I'm using the WebBlue skin if that makes a difference.

Daryl


Iggy
Top achievements
Rank 1
 answered on 29 Mar 2010
4 answers
120 views
Hi,

I have a page which has a RadGrid, one of the columns has a imagebutton which opens a RadWindow by javascript.
The RadWindow has a bing map usercontrol within it.

 <telerik:RadWindow ID="SiteMapDialog" runat="server" Title="Site Location Map" Width="400" 
            Height="400" VisibleOnPageLoad="false" Behaviors="Move, Resize,Close" 
            OffsetElementID="siteGrid"> 
            <ContentTemplate> 
                    <uc2:LE_Map ID="LE_Map1" runat="server" /> 
            </ContentTemplate> 
        </telerik:RadWindow> 

When the radwindow appears the map seems to only partially render some map tiles or the tiles are shifting to the top left. You can only see one tile in the top left of the map itself. See image attached.

The map displays fine if i just place it on the page underneath the grid.

I am using Q1 2010

Any help would be great thanks


Darren
Top achievements
Rank 1
 answered on 29 Mar 2010
3 answers
122 views
Hi

I am opening a radwindow with the radopen command and cannot figure out how to exercise control over the appearance of the resulting window. For instance, I am trying to hide the status bar.

Here is the code

<

 

telerik:RadWindowManager ID="RadWindowManagerPartPicker" ShowContentDuringLoad="false" VisibleStatusbar="false"

 

 

ReloadOnShow="true" runat="server" Skin="Vista" Opacity="50" KeepInScreenBounds="true" DestroyOnClose="true">

 

 

<Windows>

 

 

<telerik:RadWindow ID="PartsListWindow" runat="server" Behaviors="Close" OnClientClose="OnClientClose" VisibleStatusbar="false"

 

 

NavigateUrl="../Editor.aspx" Skin="Vista">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

<

 

script type="text/javascript">

 

 

//<![CDATA[

 

 

function openWin() {

 

 

var oWnd = radopen("Editor.aspx", "PartsListWindow");

 

}

 

 

 

//]]>

 

 

</script>

 



Whatever I try to do, I cannot get the Status bar not to appear. Can anyone help?

Thanks in Advance
Georgi Tunev
Telerik team
 answered on 29 Mar 2010
0 answers
186 views
Hi Team,

Could you explain how to use RadUpload using this S3 ContentProvider. Thanks.

http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/amazon-s3-filebrowsercontentprovider.aspx
Pierre
Top achievements
Rank 1
 asked on 29 Mar 2010
1 answer
212 views
Hi,
i am using Telerik.Web.UI  version: 2009.2.826.35
I have a sql DataTable which contains id,startDate,End date and text.
basically i want to display all text between the date range in RadScheduler. this is only view purpose.
I could not find any good example to use SQL DataTable.
Can any one help me please...

here is my code to get data from SQL Database

private DataTable GetSelectedCitations(string strCitationIDs)
        {
            DataTable objDT = null;
            using (SqlConnection objConn = new SqlConnection(DBConnectionString))
            {
                SqlCommand objCmd = new SqlCommand("uspCITGetCitationInfo", objConn);
                objCmd.CommandType = CommandType.StoredProcedure;
                objCmd.Parameters.AddWithValue("@ID", m_ID);
                objCmd.Parameters.AddWithValue("@CitationID", strCitationIDs);

                SqlDataAdapter objDA = new SqlDataAdapter(objCmd);
                objDT = new DataTable();
                objDA.Fill(objDT);

                objDA.Dispose();
            }
            return objDT;
        }

thanks
Ramnaa
Peter
Telerik team
 answered on 29 Mar 2010
1 answer
233 views
 Hello,
   I'm having a bit of a problem placing an upload control on an aspx page that's being used inside a Sharepoint site.  I added all the web.config settings accordingly:
    <httpHandlers>       
        <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" validate="false" /> 
      <add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />             
    </httpHandlers> 
         and... 
   <httpModules>         
        <add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" /> 
    </httpModules> 
 In my ASPX page, I have
<rad:RadProgressManager id="Radprogressmanager1" runat="server" /> 
<rad:RadProgressArea id="RadProgressArea1" runat="server" /> 
* 
* 
*             
  <rad:RadProgressManager id="Radprogressmanager1" runat="server" />             
<rad:RadProgressArea id="RadProgressArea1" runat="server" /> 
 
<rad:RadUpload ID="RadUpload1" Runat="server" ControlObjectsVisibility="All"  
 InitialFileInputsCount="3" MaxFileInputsCount="5" MaxFileSize="1000000"  
            TargetFolder="~/Files" /> 

I have both RadUpload.Net2.dll and RadAjax.Net2.dll in the bin.
 
However when I open my page, I keep getting this error:

The control type 'Telerik.WebControls.RadProgressManager' is not allowed on this page. The type is not registered as safe.  
                <rad:RadProgressManager id="Radprogressmanager1" runat="server" />
                 <rad:RadProgressArea id="RadProgressArea1" runat="server" />

 Any help is greatly appreciated.
Thanks you Roland
Chip
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
65 views
Sorry for the confusing title.  I'm using the editor as part of a CMS package for my church's website.  The problem I have is that when the html content is displayed in the editor none of the images appear.  I know why they don't - the urls for the images are pointing at locations that would only make sense if the page was at the root of the website.  Since the editor is located in a secured directory and not the root none of the image urls work.  Is there a setting in the grid that would let me fake where it should be thinking it's loading from?  Or something like that I guess.  Thanx!

Eric
Rumen
Telerik team
 answered on 29 Mar 2010
3 answers
128 views
I have a custom form to add appointments.  When I click on the Scheduler's All day row, I need some type of flag to know that the user clicked this row so I can create an All Day appointment.  What indicates this?

Thanks.
Peter
Telerik team
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?