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

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

Tervel
Telerik team
 answered on 10 Dec 2008
1 answer
131 views
I have 2 aspx pages:
One is Default.aspx page:
<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> 
another is Candidates.aspx:
<telerik:RadAjaxManager ID="CandidateAjaxManager" runat="server" OnAjaxRequest="OnMyAjaxManager_AjaxRequest"></telerik:RadAjaxManager> 
 
<telerik:RadGrid ID="RadCandidateGrid" GridLines="None" Skin="Office2007"
</telerik:RadGrid> 
 
When user click button Delete on ToolBar, how to get the CandidateAjaxManager object  in Candidates.aspx  to call the ajaxRequest function (using client API)?

Thanks.
Svetlina Anati
Telerik team
 answered on 10 Dec 2008
3 answers
231 views
We are using the latest release (2008.2 1001) and have a very simple page where users can upload files along with a Progress Handler.  Whenever there is an apostrophe in the file name (or folder name for that matter) the Progress Handler throws a "RadUpload Ajax callback error".  Below is the text of the error...

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. 

Looking at this error, it seems that for the "CurrentFileName" the apostrophe is properly escaped; however, for the "CurrentOperationText" part there is an extra escape character.

Please fix this as soon as possible.  For now, we're instructing users (as they call in with this issue) to not use apostrophe's in file or folder names.

Thanks,

Steven
Veselin Vasilev
Telerik team
 answered on 10 Dec 2008
4 answers
230 views
I'm trying to strip some formatting of text pasted into the editor.

I'm not sure where to place change or how it should be formatted???

<property name="StripFormattingOptions">"MSWordRemoveAll, Css, Font, Span"</property>

The above does not work in the config file....

Any help is appreciated.

Thanks
Lini
Telerik team
 answered on 10 Dec 2008
1 answer
126 views
Hi ,

I have a very wierd issue. I have a user control that has a Ajax Panel and a Grid inside it. After soem initial development, my designer for that user control is now blank!!! 

I can run the project and view the components and test functionality. I can also switch to the markup view and see all the controls there. But my designer is totally blank. 

If i remove the grid outside the Ajax panel it becomes visible, and then if I add a new AJAX panel that becomes visible and I can move the grid inside and everything works fine. 

But this has happened twice and was wondering what the issue might be ?

Any help would be much appreciated :)

Thanks
H
Hari
Top achievements
Rank 1
 answered on 10 Dec 2008
1 answer
86 views
Hi, I just discovered that the RadDateTimePicker control embeds all its CSS styles (almost 500 lines of code) inside the generated HTML document (see below for an example). Even worse, if I add a second RadDateTimePicker to the same page, the styles appear twice in the resulting HTML document.

Why does this happen and can it be prevented?

Regards,
Martin

Example HTML document (excerpts) from a page with just one RadDateTimePicker on it:
<!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>  


Dimo
Telerik team
 answered on 10 Dec 2008
2 answers
155 views
Hello,

I have a RadGrid with paging. After clicking on "Next" button, I want to select the 1st item on next page and render some information about this 1st selected element in Page_Load. The problem: only RadGrid1_PreRender event can tell me about new 1st element on next page, earlier - e.g. Page_Load event  doesn't know anynothing about next source ( grid.Items are still old in Page_Load). Is it possible to know about new items on next page earlier  RadGrid1_PreRender event?

Best regards,
Natali
Natali
Top achievements
Rank 1
 answered on 10 Dec 2008
2 answers
174 views
I am using Q3 Ajax beta.

I have setup a radtapstrip, I have loaded it in both code in front and dynamically via codebehind as in this example:

http://demos.telerik.com/ASPNET/Prometheus/TabStrip/Examples/ApplicationScenarios/DynamicPageView/DefaultVB.aspx

In the example, clicking the tab changes the tab panel without doing a postback. However, everytime I click one of my tabs, it does a postback.

What am I missing?

Thanks.
Moon


Moon
Top achievements
Rank 2
 answered on 10 Dec 2008
3 answers
149 views
I have a RadDatePicker instead the FormTemplate of a RadGrid.  For some reason the calendar pop-up is not working when you click on the calendar.  Any ideas?
Shinu
Top achievements
Rank 2
 answered on 10 Dec 2008
1 answer
114 views
Hi,

I'm trying to edit, insert records via editforms with dataset. After editing records and pressing update, I can change the editmode to false, however I couldn't succeed to do it with inserting records. I searched many topics with examples, forums, help files so on but I couldn't find out the solution. If I use editedItem.Edit=False in insertmode, page gives me  error as "insert item is available only when grid is in insert mode". However its working with editmode.. (I'm not using custom edit form)

Thank you for your help.

I have code like below (To keep it simple, I'm giving the necessary parts of aspx code):

<

 

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

 

Princy
Top achievements
Rank 2
 answered on 10 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?