Hello all,
First off let me say I am using IE7 and version 2008.3 1125
I am currently working on a project with a lot of thumnails. Currently, live, we are using the RadWidnow to popup the full image into a modal window. We really would like to use a mouseover with the Radtooltip (using tooltipmanager), but are running into one major drawback. We want the tooltip to wrap the image perfectly so there is no scrollbars or empty space. If we do not set the Height/Width of the tooltip manager this works great, except that it appears the tooltip no longer can sense the screen boundaries. Images that anywhere near the top, bottom, left, or right will simply overflow off the screen. You see this same result in the following demo:
http://demos.telerik.com/aspnet-ajax/ToolTip/Examples/Default/DefaultCS.aspx
Just scroll down the page a little and hover over a product....it goes right through the top of the screen. If you set the Height and Width property then the tooltip stays within the page but then you must live with either the scrollbars or empty white space since not all the images are the same deminisions.
Is there anything that I can do to work around this? Although not ideal, maybe some sort of javascript resize on the ClientShow?
Thanks,
Chad
| <telerik:RadToolBar ID="CandidateToolBar" Style="z-index: 90001" runat="server" Skin="Office2007"> |
| <Items> |
| <telerik:RadToolBarButton ToolTip="Delete" Value="deletecandidate" ImageUrl="images/16x16/Delete.png"> |
| </telerik:RadToolBarButton> |
| </Items> |
| </telerik:RadToolBar> |
| <telerik:RadSplitter ID="RadSplitterBrowser" runat="server" > |
| <telerik:RadSplitBar ID="RadSplitBar" runat="server" CollapseMode="Forward"> </telerik:RadSplitBar> |
| <telerik:RadPane ID="radPaneContent" runat="server" Width="100%" ContentUrl="Candidates.aspx" > |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| <telerik:RadAjaxManager ID="CandidateAjaxManager" runat="server" OnAjaxRequest="OnMyAjaxManager_AjaxRequest"></telerik:RadAjaxManager> |
| <telerik:RadGrid ID="RadCandidateGrid" GridLines="None" Skin="Office2007"> |
| </telerik:RadGrid> |
| RadUpload Ajax callback error. Source url returned invalid content: |
| var rawProgressData = {InProgress:true,ProgressCounters:true,CurrentOperationText:'C:\\Board Agendas\\October\\Oct 08 Brd Mtg\\2007-\\'08 Audit Report.pdf',PrimaryTotal:'2.46MB',PrimaryValue:'128.00kB',PrimaryPercent:'5',SecondaryValue:'0',Speed:'273.44kB/s',TimeElapsed:'468',TimeEstimated:'8761',RadUpload:{RequestSize:2584036,Bytes:131072,FilesCount:0,CurrentFileName:'C:\\Board Agendas\\October\\Oct 08 Brd Mtg\\2007-\'08 Audit Report.pdf',RequestLength:2584036}}; |
| Telerik.RadUploadProgressHandler.ashx?RadUrid=22544b36-97b8-4ef8-a762-380b91ad720d |
| Did you register the RadUploadProgressHandler in web.config? |
| Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler. |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| .... |
| <body> |
| ... |
| <style type='text/css'>/*Telerik RadCalendar Default skin*/ |
| table.RadCalendar_Default |
| { |
| border-collapse:separate; |
| border:0; |
| background:#fff; |
| font:11px arial,tahoma,sans-serif; |
| width:220px; |
| } |
| /*titlebar*/ |
| .RadCalendar_Default .rcTitlebar |
| { |
| width:100%; |
| border:1px solid; |
| border-color:#101010 #090909 #171717; |
| padding:0; |
| background:#444 url('/TelerikTests2008Q3/WebResource.axd?d=Yi4p-ByImfnF95uhANtR9571aHjWR6sUWxK-qQw1ArGCDBP1B9AVIvBl555xdCsPLhCWnR8j0cUgV7lipYaYDIf33gEKSNwhTLLm5IXyj7M1&t=633631346240000000') 0 -500px repeat-x; |
| color:#fff; |
| } |
| .RadCalendar_Default .rcTitlebar table |
| { |
| width:100%; |
| border-collapse:separate; |
| border:0; |
| border-bottom:1px solid #3d3d3d; |
| font:16px/32px arial,tahoma,sans-serif; |
| } |
| .RadCalendar_Default .rcTitlebar td |
| { |
| border:0; |
| padding:2px 0 0; |
| text-align:center; |
| vertical-align:middle; |
| } |
| .RadCalendar_Default .rcTitlebar .rcTitle |
| { |
| width:100%; |
| cursor:pointer; |
| } |
| .RadCalendar_Default .rcTitlebar .rcPrev, |
| .RadCalendar_Default .rcTitlebar .rcNext, |
| .RadCalendar_Default .rcTitlebar .rcFastPrev, |
| .RadCalendar_Default .rcTitlebar .rcFastNext |
| { |
| display:block; |
| width:15px; |
| height:15px; |
| overflow:hidden; |
| margin:0 3px; |
| background:transparent url('/TelerikTests2008Q3/WebResource.axd?d=Yi4p-ByImfnF95uhANtR9571aHjWR6sUWxK-qQw1ArGCDBP1B9AVIvBl555xdCsPLhCWnR8j0cUgV7lipYaYDIf33gEKSNwhTLLm5IXyj7M1&t=633631346240000000') no-repeat; |
| text-indent:-1111px; |
| text-decoration:none; |
| color:#ccc; |
| } |
| .RadCalendar_Default .rcTitlebar .rcPrev |
| { |
| background-position:4px -48px; |
| } |
| .RadCalendar_Default .rcTitlebar .rcNext |
| { |
| background-position:4px -98px; |
| } |
| .RadCalendar_Default .rcTitlebar .rcFastPrev |
| { |
| margin-left:5px; |
| background-position:2px 2px; |
| } |
| .RadCalendar_Default .rcTitlebar .rcFastNext |
| { |
| margin-right:5px; |
| background-position:2px -148px; |
| } |
| .RadCalendar_Default .rcMain |
| { |
| width:100%; |
| border:1px solid #222; |
| border-top:0; |
| padding:0; |
| } |
| .RadCalendar_Default .rcMainTable |
| { |
| border-collapse:separate; |
| border:0; |
| width:89%; |
| margin:5px 13px 6px 11px; |
| font:11px/16px arial,tahoma,sans-serif; |
| } |
| /*header, footer*/ |
| .RadCalendar_Default .rcHeader, |
| .RadCalendar_Default .rcFooter |
| { |
| border:1px solid #222; |
| border-top:0; |
| padding:0; |
| } |
| ... (this goes on for more that 400 lines) |
| </style> |
| </body></html> |

<
telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" AllowMultiRowSelection="True"
AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" Skin="Vista" Style="z-index: 148; left: 24px; position: absolute; top: 376px" Width="748px" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True">
<MasterTableView DataKeyNames="TeknikServisIslemId" CommandItemDisplay="Top" EditMode="EditForms">
Dim
taTeknikServis As New dsCrmTableAdapters.TeknikServisTableAdapter
Dim taTeknikServisDetay As New dsCrmTableAdapters.TeknikServis_DetayTableAdapter
Dim taTeknikServisYapilanIslemler As New dsCrmTableAdapters.TeknikServis_YapilanIslemlerTableAdapter
Dim dvTeknikServis, dvTeknikServisYapilanIslemler As DataView
Dim mRow As DataRowView
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
taTeknikServis.FillByTeknikServisId(ds.Tables(
"TeknikServis"), Request.Params("Id"))
taTeknikServisYapilanIslemler.FillByTeknikServisId(ds.Tables(
"TeknikServis_YapilanIslemler"), Request.Params("Id"))
End If
If Request.Params("Id") = 0 Then
dvTeknikServis =
New DataView(ds.Tables("TeknikServis"))
mRow =
CType(dvTeknikServis.AddNew, DataRowView)
Else
dvTeknikServis =
New DataView(ds.Tables("TeknikServis"))
mRow =
CType(dvTeknikServis(0), DataRowView)
End If
dvTeknikServisYapilanIslemler = mRow.CreateChildView(
"FK_TeknikServis_YapilanIslemler_TeknikServis")
SetControlsText()
End Sub
Private
ReadOnly Property ds() As DataSet
Get
Dim obj As Object = Me.ViewState("_Dataset")
If (Not (obj) Is Nothing) Then
Return CType(obj, DataSet)
Else
Dim mdsCrm As New dsCrm
Me.ViewState("_Dataset") = mdsCrm
Return mdsCrm
End If
End Get
End Property
Protected
Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
RadGrid1.DataSource = dvTeknikServisYapilanIslemler
End Sub
Private Sub RadGrid1_UpdateCommand(ByVal source As System.Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editMngr As GridEditManager = editedItem.EditManager
Dim column As GridColumn
Dim changedRow As DataRow = dvTeknikServisYapilanIslemler.Item(editedItem.ItemIndex).Row
changedRow.BeginEdit()
For Each column In e.Item.OwnerTableView.Columns
If TypeOf column Is IGridEditableColumn Then
Dim editableCol As IGridEditableColumn = CType(column, IGridEditableColumn)
If (editableCol.IsEditable) Then
Dim editor As IGridColumnEditor = editMngr.GetColumnEditor(editableCol)
Dim editorType As String = CType(editor, Object).ToString()
Dim editorText As String = ""
Dim editorValue As Object = Nothing
If (TypeOf editor Is GridTextColumnEditor) Then
editorText =
CType(editor, GridTextColumnEditor).Text
editorValue =
CType(editor, GridTextColumnEditor).Text
End If
If (TypeOf editor Is GridBoolColumnEditor) Then
editorText =
CType(editor, GridBoolColumnEditor).Value.ToString()
editorValue =
CType(editor, GridBoolColumnEditor).Value
End If
If (TypeOf editor Is GridDropDownColumnEditor) Then
editorText =
CType(editor, GridDropDownColumnEditor).SelectedText & "; " & CType(editor, GridDropDownColumnEditor).SelectedValue
editorValue =
CType(editor, GridDropDownColumnEditor).SelectedValue
End If
Try
changedRow(column.UniqueName) = IIf(editorValue =
"", System.DBNull.Value, editorValue)
Catch ex As Exception
RadGrid1.Controls.Add(
New LiteralControl("<strong>Unable to set value of column '" & column.UniqueName & "'</strong> - " + ex.Message))
e.Canceled =
True
End Try
End If
End If
Next
changedRow.EndEdit()
editedItem.Edit =
False
End Sub
Private Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editMngr As GridEditManager = editedItem.EditManager
Dim newRow As DataRowView = dvTeknikServisYapilanIslemler.AddNew
For Each column As GridColumn In e.Item.OwnerTableView.RenderColumns
If TypeOf column Is IGridEditableColumn Then
Dim editableCol As IGridEditableColumn = (CType(column, IGridEditableColumn))
If editableCol.IsEditable Then
Dim editor As IGridColumnEditor = editMngr.GetColumnEditor(editableCol)
Dim editorText As String = ""
Dim editorValue As Object = Nothing
If TypeOf editor Is GridTextColumnEditor Then
editorText = (
CType(editor, GridTextColumnEditor)).Text
editorValue = (
CType(editor, GridTextColumnEditor)).Text
End If
If TypeOf editor Is GridBoolColumnEditor Then
editorText = (
CType(editor, GridBoolColumnEditor)).Value.ToString
editorValue = (
CType(editor, GridBoolColumnEditor)).Value
End If
If TypeOf editor Is GridDropDownColumnEditor Then
editorText = (
CType(editor, GridDropDownColumnEditor)).SelectedText + "; " + (CType(editor, GridDropDownColumnEditor)).SelectedValue
editorValue = (
CType(editor, GridDropDownColumnEditor)).SelectedValue
End If
Try
If column.UniqueName <> "TeknikServisId" Then
newRow(column.UniqueName) = IIf(editorValue =
"", System.DBNull.Value, editorValue)
End If
Catch ex As Exception
RadGrid1.Controls.Add(
New LiteralControl("Unable to insert. Reason: " + ex.Message))
e.Canceled =
True
End Try
End If
End If
Next
newRow.EndEdit()
editedItem.Edit =
False '*****If I hide this line, code does not return any error, but it resides to show adding mode*******
RadGrid1.Rebind()
End Sub