Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
Hello,

I have been attempting to implement a tooltip modal dialog that will display when an event happens, such as when a user clicks a link.  All is fine in my testing environment both with IE6 and IE7, but the problem occurs when I place my user control into SharePoint.  The tooltip when displayed within SharePoint shows up after all of the HTML that is already rendered on the page.  Additionally, it shows behind the grey wall that would normally appear behind the control.  I am attaching a couple of screenshots as well as the code for my user control.  If anyone can help me in getting this to render correctly in SharePoint with IE7, I would be most appreciative.  Thank you for your time and have a great night.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ToolTipTest.ascx.cs" Inherits="ToolTipTest" %> 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script type="text/javascript">  
 
    function closeToolTip(strToolTipID)  
    {  
        var ToolTip = $find(strToolTipID);  
        if (ToolTip.isVisible())  
        {  
            ToolTip.hide();  
        }  
    }  
      
    function showToolTip(strToolTipID)  
    {  
        var ToolTip = $find(strToolTipID);  
        if (!ToolTip.isVisible())  
        {  
           ToolTip.show();  
        }   
    }  
      
    var tipToolTip = '<%= tipToolTip.ClientID %>';  
      
</script> 
    <div style="height: 200px; width: 400px; text-align: center; border: solid 1px #000;">  
        This is body text. <href="#" onclick="showToolTip(tipToolTip); return false;">Click here</a> to display the tooltip.  
    </div> 
 
    <telerik:RadToolTip id="tipToolTip" runat="server" Modal="True" 
        Position="Center" RelativeTo="BrowserWindow" AutoCloseDelay="0" HideDelay="0"   
        RenderInPageRoot="True" ShowDelay="0" ShowEvent="FromCode" 
    > 
        This is my tooltip. <href="#" onclick="closeToolTip(tipToolTip); return false;">Click here</a> to close the tooltip.  
    </telerik:RadToolTip> 
Nameless
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
145 views
Hi,
In radupload and radeditor i change language with resource file, but in radgrid i can't, how i can change the language the seem way.

thx
Jhonattan
Top achievements
Rank 2
 answered on 29 Jan 2010
2 answers
228 views
Hi all
I want users to be able to use hot keys to add/update/delete rows to the radgrid. If they are adding a new row as soon as they enter the data and they press ctrl+shift+I they should be able to save the current row and a new row should be inserted where they can continue entering data for the new row. I use fireCommand to perform the insert which works fine but then if i use another firecommand statement to insert an empty row the update fails. What is interesting is that if i place an alert() statement between the 2 fireCommand calls it works in that case. See the javascript function below that i'm using

<

script type="text/javascript">

 


function

KeyPress(sender, eventArgs)

 

{

 

var grid;

 

 

var table;

 

 

grid = sender;

table = grid.get_masterTableView();


 

//CTRL+Shift+I

 

 

if (eventArgs._keyCode == 73 && eventArgs._isCtrlPressed && eventArgs._isShiftPressed)

 

{

 

 

 

eventArgs.set_cancel(

true);

 

 

 

if (table.get_isItemInserted())

 

{

    table.fireCommand(

"PerformInsert", "");
    //alert("now insert another empty row");  

    table.fireCommand("PerformInsert", "");

 

 

 

}

 

}

</

script>

 


Also after any insert/upadate/delete the focus is lost from the grid. How can i set focus back to the radgrid so that the user can continue using arrow keys in the grid. Any assistance will be greatly appreciated!

thanks
mtoori
muhammad toori
Top achievements
Rank 1
 answered on 29 Jan 2010
4 answers
153 views
I write so fast at editor and sometimes i click on backspace on editor area or focused on other areas of page. So how can i prevent accidental clicks that causing a lose of entry? :)
Ismet
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
166 views
Dear Telerik-Team.

It is possible to modifed the header element of any panelbar.

1.)
I want to show 2 Icons on each panelbar (extanded to the arrow) header an then I want to react on the events each icon can be bubble. Is this possible?

2.)
I only found one imageurl on each panelbar, but there is no event i can handle to react on it if the user click on the image. I only can  react on the "OnItemClick" of the panelbar header but there are no command or event arg to check if the header, the expand arror or my image is clicked and rise the event.

Thanks for help.

Regards
Christian

Peter
Telerik team
 answered on 29 Jan 2010
1 answer
114 views
Hi all:

I have an ASP.NET app that uses sevveral data grids, some images, etc. to create the user GUI. I am sending all of the content to a RadEditor, the idea being that the end user can then tweak the content and then use the ExportToPdf function. Does anyone know how I can grab the image from a System.Web.UI.Image control and display it in the RadEditor programatically?

Thanks!

John.
Rumen
Telerik team
 answered on 29 Jan 2010
3 answers
192 views
Hi,

I am creating a project (business objects ) with a reference to the .20 assembly. When i try to iterate over the files in the radupload.uploaded files collection, I get this exception

Unable to cast object of type 'Telerik.Web.UI.PostedFile' to type 'Telerik.Web.UI.UploadedFile'.

I am not able to fix it.

Then i tried addding the reference to the .35 assembly of Telerik.web.ui and then i got a compile time error stating

Error 271 Assembly "XXX" uses 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' which has a higher version than referenced assembly 'Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

What should i do?
Help!!

Genady Sergeev
Telerik team
 answered on 29 Jan 2010
2 answers
169 views
Is there a way to disable the delete and resize confirmation dialogs for recurring appointments?

I've set the following property for moving and it works as expected:

DisplayRecurrenceActionDialogOnMove="false"

 

 


However, there does not appear to be corresponding properties for the delete and resize events.

I have also tried intercepting the "recurrence action dialog showing" event (OnClientRecurrenceActionDialogShowing) and cancelling it.  However, it cancels all subsequent events. I.e., I was hoping that it would simply cancel the display of the dialog and then I would recieve an OnClientAppointmentDeleting  or OnClientAppointmentResizeEnd event.  But that does not appear to be the case.

Any ideas?

Thanks.

Kevin

 

 

 

Kevin Flynn
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
137 views
I created a sub to create the new row from the edit form, however, the error "conversion type from dbnull to type boolean is not valid" pops up instead of the form.  I though it to be a null input to the checkbox, which I have 4 on the form.  But even forcing a 'true' value does not work.  Can anyone find my error?

Protected

 

Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.InsertCommand

 

 

Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)

 

 

Dim userControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

 

 

 

 

Dim newRow As DataRow = Me.Ntable.NewRow

 

 

 

 

Dim newValues As Hashtable = New Hashtable

 

newValues(

"N") = CType(userControl.FindControl("NTextBox"), RadTextBox).Text

 

newValues(

"DNumber") = CType(userControl.FindControl("PNUMBER"), RadTextBox).Text.Take(13)

 

newValues(

"PNUMBER") = CType(userControl.FindControl("PNUMBER"), RadTextBox).Text

 

newValues(

"Title") = CType(userControl.FindControl("Title"), RadTextBox).Text

 

newValues(

"worder") = 0

 

newValues(

"SMRB") = CType(userControl.FindControl("SMRB"), RadTextBox).Text

 

newValues(

"SCAR") = CType(userControl.FindControl("SCAR"), RadTextBox).Text

 

newValues(

"Dposition") = CType(userControl.FindControl("Dposition"), RadTextBox).Text

 

newValues(

"LItems") = CType(userControl.FindControl("LItems"), RadTextBox).Text

 

newValues(

"QTY") = CType(userControl.FindControl("QTY"), RadTextBox).Text

 

newValues(

"AffectedA") = CType(userControl.FindControl("AffectedA"), RadTextBox).Text

 

newValues(

"Slier") = CType(userControl.FindControl("Slier"), RadTextBox).Text

 

newValues(

"Parer") = CType(userControl.FindControl("Parer"), RadTextBox).Text

 

newValues(

"QApp") = CType(userControl.FindControl("QApp"), RadTextBox).Text

 

newValues(

"Eer") = CType(userControl.FindControl("Eer"), RadTextBox).Text

 

newValues(

"Lon") = CType(userControl.FindControl("Lon"), RadTextBox).Text

 

newValues(

"Stus") = CType(userControl.FindControl("Stus"), RadTextBox).Text

 

newValues(

"Dancy") = CType(userControl.FindControl("Dancy"), RadTextBox).Text

 

newValues(

"cause") = 0

 

newValues(

"CAction") = CType(userControl.FindControl("CAction"), RadTextBox).Text

 

newValues(

"Subtion") = CType(userControl.FindControl("Subtion"), RadTextBox).Text

 

newValues(

"actiondate") = Date.Now

 

newValues(

"compsn") = CType(userControl.FindControl("compsn"), RadTextBox).Text

 

newValues(

"drcode") = 0

 

newValues(

"reworkordno") = CType(userControl.FindControl("reworkordno"), RadTextBox).Text

 

newValues(

"corractionreqyes") = CType(userControl.FindControl("corractionreqyes"), CheckBox).Checked

 

newValues(

"corractionreqno") = CType(userControl.FindControl("corractionreqno"), CheckBox).Checked

 

newValues(

"purchsig") = CType(userControl.FindControl("purchsig"), RadTextBox).Text

 

newValues(

"shipperno") = CType(userControl.FindControl("shipperno"), RadTextBox).Text

 

newValues(

"shop1") = CType(userControl.FindControl("shop1"), RadTextBox).Text

 

newValues(

"qainsp1") = CType(userControl.FindControl("qainsp1"), RadTextBox).Text

 

newValues(

"shop2") = CType(userControl.FindControl("shop2"), RadTextBox).Text

 

newValues(

"rqainsp2") = CType(userControl.FindControl("qainsp2"), RadTextBox).Text

 

newValues(

"reworkinst") = CType(userControl.FindControl("reworkinst"), RadTextBox).Text

 

newValues(

"min") = CType(userControl.FindControl("min"), CheckBox).Checked

 

newValues(

"maj") = CType(userControl.FindControl("maj"), CheckBox).Checked

 

 

 

newValues(

"N_ID") = (CType(Me.Ntable.Rows((Me.Ntable.Rows.Count - 1))("N_ID"), Integer) + 1001)

 

 

Try

 

 

For Each entry As DictionaryEntry In newValues

 

newRow(

CType(entry.Key, String)) = entry.Value

 

 

Next

 

 

Me.Ntable.Rows.Add(newRow)

 

 

Me.Ntable.AcceptChanges()

 

 

Catch ex As Exception

 

 

Dim lblError As Label = New Label()

 

lblError.Text =

"Unable to insert N. Reason: " + ex.Message

 

lblError.ForeColor = System.Drawing.Color.Red

RadGrid1.Controls.Add(lblError)

e.Canceled =

True

 

 

End Try

 

 

End Sub

 

C O
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
130 views
I am trying to figure out how to access the value of the selected item in a combo box on the client side. I am trying to do this from inside another javascript function where I am building an array of the information on the screen.

All of the examples I have found so far show assigning the value during an event firing. I need to find the value outside of one fo the combobox events firing. If I were using an HTML dropdown I wold just ask for the control.value. But when I try that with the telerik control I get the text of the selected item rather than the assigned value of the selected item. I have been unsuccessful in figuring this out from the help file. Can someone point me to a place that explains how to do this simple task?
Schlurk
Top achievements
Rank 2
 answered on 29 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?