Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
209 views
We are planning to convert windows application to web apps, like to use editor control do display currently stored  Text field in windows RTF format  in Editor. I would appreciate if you could assist us with a solution. See below the text in RTF format, we would like to display  "39 rolls repaired with edge damage" editor control.

Thanks,Praveen.

{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}{\f1\fnil MS Sans Serif;}} \viewkind4\uc1\pard\lang1033\f0\fs20 39 rolls repaired with edge damage 1230 lbs\par \par rolls pt120704c/20704g/10619b/10620b/20615a/10619g/10619a/10619e\par 20703a/20703g/20702f/20703f/20704f/20704a/10623c/20702g/\par 20703b/20703e/20702d/20702b/10624g/10623d/10623a\tab\f1\par }
Rumen
Telerik team
 answered on 20 Oct 2008
3 answers
227 views
Hi..
I have the following code on a SAVE button.. but
the Rad Window never appears.
How do I make it modal before redirecting?
thanks!


 

this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function()

 

{radalert('Information Added!', 250, 100);})"

 

);

 

 

// Redirect to Pending......

 

Response.Redirect(

"~/pages/Correspondence.aspx");

 

Georgi Tunev
Telerik team
 answered on 20 Oct 2008
5 answers
229 views
I have a few buttons that open the dialogs using:

function

 

triggerdialog(dialog){

var editor = $find("<%=RadEditor1.ClientID%>");
editor.fire(dialog);

}


I created a custom .ascx dialog to upload and convert videos. I want to use the same triggerdialog function to open my new dialog window.

However, when I pass in my custom dialog name it give me an error and will not open.

How can this be accomplished?
I looked at showExternalDialog  but it seems that this is used for aspx files. I have an ascx file.

code below:

 

<

 

script type="text/javascript">

 

 

 

 

 

Telerik.Web.UI.Editor.CommandList[

"VideoUpload"] = function(commandName, editor, args)

 

{

args.destid = document.getElementById(

'HiddenFieldDestId').value;

 

args.username = document.getElementById(

'HiddenFieldUserName').value;

 

args.HiddenPageID = document.getElementById(

'HiddenPageID').value;

 

 

editor.get_dialogOpener().set_additionalQueryString(

"&username=" + args.username + "&destid=" + args.destid);

 

 

 

var myCallbackFunction = function(sender, args)

 

{

 

 

var insertvideo = '<object type="application/x-shockwave-flash" data="FlowPlayerWhite.swf"'

 

 

 

 

+

'width="320" height="240">'

 

 

 

 

+

'<param name="allowScriptAccess" value="sameDomain" />'

 

 

 

 

+

'<param name="movie" value="FlowPlayerWhite.swf" />'

 

 

 

 

+

'<param name="quality" value="high" />'

 

 

 

 

+

'<param name="scale" value="Scale" />'

 

 

 

 

+

'<param name="wmode" value="transparent" />'

 

 

 

 

+

'<param name="flashvars" value="config={videoFile: ' + args.video + ' , showMenu: false , loop: false , showLoopButton: false}" />'

 

 

 

 

+

'</object>';

 

 

editor.pasteHtml(insertvideo);

}

 

editor.showDialog(

"VideoUpload", args, myCallbackFunction);

 

};

 

 

 

 

//]]>

 

 

 

 

 

</script>

 

 

 

 

 

 

Serverside_____


 

 

Dim editHTMLDefinition As New DialogDefinition("./VideoUpload.ascx", New DialogParameters())

 

editHTMLDefinition.Modal =

True

 

 

 

editHTMLDefinition.VisibleTitlebar = True

 

 

 

editHTMLDefinition.VisibleStatusbar = True

 

 

 

editHTMLDefinition.Width = Unit.Pixel(570)

 

editHTMLDefinition.Height = Unit.Pixel(380)

editHTMLDefinition.VisibleStatusbar =

False

 

 

 

RadEditor1.AddDialogDefinition("VideoUpload", editHTMLDefinition)

 

 



 

Rumen
Telerik team
 answered on 20 Oct 2008
1 answer
194 views
Hi,

How to change background of radgrid filter menu?

Thanks,
Vaibhav



Daniel
Telerik team
 answered on 20 Oct 2008
6 answers
985 views
i have a  telerik:GridTemplateColumn in grid in which i put a  <ItemTemplate> that contains <asp:ImageButton>. i want to change the image in the function onClick.

Compiler Error Message: CS0123: No overload for 'OnClick matches delegate 'System.Web.UI.ImageClickEventHandler', When i change the Onclick(sender, EventArgs) it runs ok, but i dont get the methods to change the image url of that templete column.


 

muhammad
Top achievements
Rank 1
 answered on 20 Oct 2008
2 answers
75 views
I have a tooltip manager which I'm using to load-on-demand items in a list for preview. however, i'm encountering an issue where if you move from one item to another, instead of starting blank and showing a loading panel inside the tooltip, it's showing the previous entries content while loading, then replaces that content with the correct data...

here is the page that is doing it: www.mcallen.net/default.aspx.

i'm THINKING it might have something to do with the ajaxpanel in the center that is asynchronously loading, but why should that have any effect on the tooltipmanager? the two controls are in separate contentplaceholders, so communication between them shouldn't occur should it?

any help in fixing this would be greatly appreciated!

thanks
Svetlina Anati
Telerik team
 answered on 20 Oct 2008
2 answers
83 views
hi friends

can anyone help me in calling javascript function from the update command

Protected

Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand

javscript(function()) ?????

end sub

thanks in advance

K²

kiran
Top achievements
Rank 1
 answered on 20 Oct 2008
3 answers
146 views
I've been having trouble downloading version 826 of Telerik.  I have a high speed connection but the download after 15 minutes drops to a 10KB/sec rate and after about 2 hours, it resets the connection.  I've tried to download about 15 times and have not been able to get a successful download.  Are the servers taxed?

Is there another place I can download version 826?

Thanks,
John
Georgi
Telerik team
 answered on 20 Oct 2008
1 answer
131 views
Found a bug with the RadCombo. Here is how it happens:
1 - I drop down the combo box and select a value. It fires the selection changed event as expected.
2 - I drop it down again and select the same item. It agains fires the selection event, which is good for me even though the selected value hasn't really been changed.
3 - Now I drop down the combo but dont select anything.. basically expanding it and then collapsing it.
4 - Now when I drop it down one more time and select the same value again, it no longer fires the selection changed event. 

Somehow by dropping it down and back up again keeps the selection changed event from firing anymore afterwards unless I select a unique value. I have no way to know when the user has selected the same item again as I could before the no selection step occurs.

Levi

Helen
Telerik team
 answered on 20 Oct 2008
6 answers
284 views
Hi,
I have two template check boxes in the row and header of the grid.
I have been able to change the row color on the server side with this code:
        
        CheckBox chkApprove = (CheckBox)sender;
        CheckBox chkDeny = (CheckBox)chkApprove.NamingContainer.FindControl("chkDeny");
        GridDataItem current = (GridDataItem)chkApprove.NamingContainer;
        if (chkApprove.Checked)
        {
            current.CssClass = "ApproveRow";
            chkDeny.Checked = false;
        }
        else
        {
            if (current.ItemIndex % 2 == 0)
            {
                current.CssClass = "GridRow_WebBlue";
            }
            else
            {
                current.CssClass = "GridAltRow_WebBlue";
            }
        }

This is the style sheet info:

.ApproveRow

td
{

 

 

background-color: #A7CDB0 !important;
}

 


I want to do this on the client side to avoid the server delay.
This code will change the check boxes but will not change the row color:

 function ApproveClick(index,ApproveChkID,DenyChkID) 
 { 
    //alert("In approveclick " + index + " " + ApproveChkID + " " + DenyChkID);
    var grid= $find("<%=radAbsence.ClientID %>");   
    var gridRow=grid.get_masterTableView().get_dataItems()[index];  
    var chkApprove=document.getElementById(ApproveChkID); 
    var chkDeny=document.getElementById(DenyChkID); 
    if(chkApprove.checked==true)
    {  
        chkDeny.checked = false;
        alert("chkApprove checked");
        grid.get_masterTableView().get_dataItems()[index].className= "ApproveRow";
        //alert(" approve index: " + index);
    }
    else
    {
        //alert("chkApprove unchecked");
        //deselect row
        grid.get_masterTableView().get_dataItems()[index].set_selected = false;
        if (index % 2 == 0)
        {
            grid.get_masterTableView().get_dataItems()[index].className = "GridRow_WebBlue";
        }
        else
        {
            grid.get_masterTableView().get_dataItems()[index].className = "GridAltRow_WebBlue";
        }
    }

 }


Can you see what is missing, why the row color is not changing?
Steve H.
Yavor
Telerik team
 answered on 20 Oct 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?