Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views
Hello

I have a problem with getting my edit mode in the grid working (the edit mode is in a custom usercontrol).
when i load the grid programmaticly in page_load everything works fine.
the problem begins when i want a button to create the grid, and give it the datasource.
when i press the button the grid shows up fine, and when i click the edit mode in a row, the grid just disappear.
if i refresh the page , the grid appear again with the edit control.

Please Help.

Thank Youy.
Myriam
Top achievements
Rank 1
 answered on 29 Mar 2010
0 answers
60 views
Did the GridItemEventArgs change for the edit click in the ItemDataBound event?  I copied some code from a project that was using 2009 Q3 and after a couple minor changes, it didnt work the same.  There is an ItemDataBound If statement that checks the e.Item type where it is of type GridEditFormItem (I beleive it uses GridEditableItem also in that project), but now in the 2010 Q1 version it seems to always be passing a GridDataItem (edit and insert clicks) 

Was there a change, or am I just misunderstanding what the GridItemEventArgs object type is supposed to be?



EDIT:  nm I am an idiot, my "minor changes" I replaced the editMode="InPlace" and it needs to be "EditForms" to pass the GridEditFormItem
Ryan
Top achievements
Rank 1
 asked on 29 Mar 2010
3 answers
143 views
2009.3.1210.35
My OnRowSelecting launches the URL contained in the row.   If I link contextual menu to it, it would execute RowSelecting then pop up the menu.  

Is there a way to determine that the Contextual Menu will be fired (or right click) in the OnRowSelecting event code so I can prevent the launch of the URL?
Lenny_shp
Top achievements
Rank 2
 answered on 29 Mar 2010
2 answers
84 views
I have created a custom module for the editor that allows me to insert a data figure.  What I want to insert is a custom HTML tag that is replaced at runtime (via regex) with content from the figure table.  Here is what I initially input...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</figure>  

The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506" />[Figure: This is a test figure title...] 
This causes my entire figure insert protocol to fail and the users now see '[Figure: This is a test figure title...]" instead of an image and a legend.  As far as I can tell the issue appear to be specific to IE as I was successfully working with this process in FF.

Is there any way I can turn off the auto-formatting that is happening?
The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

The Stormm
Top achievements
Rank 1
 answered on 29 Mar 2010
2 answers
56 views
I have created a custom module for the editor that allows me to insert a data figure.  What I want to insert is a custom HTML tag that is replaced at runtime (via regex) with content from the figure table.  Here is what I initially input...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</figure> 

The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

<figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506" />[Figure: This is a test figure title...] 

This causes my entire figure insert protocol to fail and the users now see '[Figure: This is a test figure title...]" instead of an image and a legend.  As far as I can tell the issue appear to be specific to IE as I was successfully working with this process in FF.

Is there any way I can turn off the auto-formatting that is happening?
The Stormm
Top achievements
Rank 1
 answered on 29 Mar 2010
1 answer
235 views
Hello,
on my develop computer the program works (fine). the deployment-test fails with some errors in the ScriptResource. 
How can I find the reason - and get rid of the fault?

Thanks, 
Otto
The error- message are: 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.5.21022; InfoPath.2; SLCC1; .NET CLR 1.1.4322)
Timestamp: Mon, 29 Mar 2010 13:30:14 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970


Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/WebWeb/ScriptResource.axd?d=42atbNSSoyl2DMCIHpVYIdwLn0qmF8rrosvQBLNy4fYD9qstifgD583R76ZKbAQfzx7-seYcNSFZ6wh1g362RN2tMoRCz3QxOFiOsB-NnP81&t=ffffffffec2d9970
Peter
Telerik team
 answered on 29 Mar 2010
1 answer
149 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
107 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
104 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
117 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?