Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
219 views
Hi,
I have managed to open a Rad Window from the code behind, and it does everything I want, however I would like to be able to set the size, as currently it is tiny.
The code I currently have is...
Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Session("Selected") = "Selected"
            Session("ID") = strid
 
            Dim newwidow As New RadWindow
            newwidow.NavigateUrl = "MessageForm1.aspx"
            RadWindow1.Windows.Add(newwidow)
 
 
 
 
        Next
    End If
End Sub

How do I set the size of this window?
And How do i name it?

Thanks for your help
Ryan
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
2 answers
199 views
Hi Telerik folks,

I have a RadAsyncUpload in an iframe, which works fine with most browsers, but customers started complaining that it won't work in Internet Explorer - I guess the reason is that most people have the Silverlight plugin only in IE and that the issue is only in the Silverlight uploader.

The Telerik Version I was using when the issue was first reported is v.2012.1.411.40 Dev, but I upgraded to v.2012.2.815.40 Dev, which didn't solve the problem.

Fortunately, I can reproduce the issue: In IE 9.0.8112.16421 with Silverlight 64 bit, Version: 5.1.10411.0, the following Error is shown in the script console:

SCRIPT5022: Error while uploading, [net_uri_BadPort]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=System.dll&Key=net_uri_BadPort
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=MultiUploader1_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3ae14a8175-7690-4143-b148-b58185d12a46%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aebfa5361-1bb0-4d72-bf6d-db0befdf104a%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a52af31a4, line 2211 character 8

SCRIPT16389: System.InvalidOperationException: [ScriptObject_InvokeFailed]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=8.1.10411.0&File=System.Windows.Browser.dll&Key=ScriptObject_InvokeFailed
   at System.Windows.Browser.ManagedObjectInfo.Invoke(ManagedObject obj, InvokeType invokeType, String memberName, ScriptParam[] args)
   at System.Windows.Hosting.ManagedHost.InvokeScriptableMember(IntPtr pHandle, Int32 nMemberID, Int32 nInvokeType, Int32 nArgCount, ScriptParam[] pArgs, ScriptParam& pResult, ExceptionInfo& pExcepInfo)
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=MultiUploader1_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3ae14a8175-7690-4143-b148-b58185d12a46%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aebfa5361-1bb0-4d72-bf6d-db0befdf104a%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a52af31a4, line 2650 character 1

SCRIPT5022: Unhandled Error in Silverlight Application [ScriptObject_InvokeFailed]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=8.1.10411.0&File=System.Windows.Browser.dll&Key=ScriptObject_InvokeFailed   at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args)
   at UploadPrototype.EventManager.FilesSelected(Int32 filesCount)
   at UploadPrototype.MainPage.OpenDialog()
   at UploadPrototype.MainPage.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
UploaderIframe.aspx?UploaderInstance=Ini-1, line 1 character 1


Best Regards,
Sascha

PS: Is there a possible workaround by telling the RadAsyncUpload not to use Silverlight, even if the browser supports it?
chrbra
Top achievements
Rank 1
 answered on 31 Aug 2012
1 answer
87 views
Hi,

How can I disable RadButton 10 seconds after the PageLoad?

Sigma.
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
3 answers
250 views
Hi,
I'm trying to change the color of the border of the sectors in this pie chart from the light-blue it seems to be defaulting to.
How do I access the property to make the change?
Evgenia
Telerik team
 answered on 31 Aug 2012
10 answers
1.0K+ views
Hi
In order to get better performance i want to use client side binding in data grid . i read numerous articles and also see demos
and read this thread

but the problem is in demo no method is using  masterTable.set_dataSourc but actually they provide demo for web services or with LinQ to SQLClasses
if i want to use following method as described in documentation
function assignDataSource()
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
  masterTable.set_dataSource(<some_data_source_of_the_specified_type_above>);
masterTable.dataBind();
}

i want to know how pass JSON data to this method. What would be written in class either it pass data set or data table and how it will be converted toJSOn. Please give me complete sample code for this
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
3 answers
140 views
Hello,

I have a sharepoint page on which i am using third party control(QuestWEbpart) which uses teleric controls. So from javascript i want to set the date of date picker control?
how to do this? 

as i have seen posts to get datepicker like below but i could not find this id and in Content Editor webpart this syntax was giving error.
var datepicker = $find("<%= RadDatePicker1.ClientID %>");

So can you please suggest me how to set the date using javascript in SharePoint environemnt

Thanks-
Galin
Telerik team
 answered on 31 Aug 2012
1 answer
139 views

Hey Community,

 

i hope you can help me.

 

I use the RadListView Control. In that I have the asp.net image control.

I try to bind a path from my Database at the image in the RadListView Control.

 

But it doesn’t work…

I found this code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
       For Each item As RadListViewDataItem In rlvGalerie.Items
            Dim fcimgGalerie As Image = DirectCast(item.FindControl("imgGalerie"), Image)
            Dim Verzeichnis As String = Hilfsfunktion.GetCRTUploadVerzeichnisZuordnung(13, "Dateisystem")
            fcimgGalerie.ImageUrl = Verzeichnis & "\" & SlidewayGalerie.GETDateiName(13)
        Next
End Sub

Thats the control definition:

        <telerik:RadListView ID="rlvGalerie" runat="server" DataSourceID="sdsGalerie" Skin="Windows7">
            <LayoutTemplate>
                <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
            </LayoutTemplate>
            <ItemTemplate>
                <div style="float: left; margin: 5px; padding: 2px; background: #eeeeee;" class="myClass"
                    onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">
                    <asp:ImageButton ID="imgGalerie" ImageUrl="" Width='<%# ImageWidth %>'
                        Height='<%# ImageHeight %>' runat="server" OnClientClick="openRWGalerie(window.location.pathname;)"
                        Style="margin: 0; padding: 0;" />
                </div>
            </ItemTemplate>
        </telerik:RadListView>

I hope you can help my

Greetings Daniel
Sorry for my Englich

Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
83 views
Hi,

I want to show only the close button in the tittle bar of RadWindow. How can I remove all other buttons in the title bar of RadWindow?

Thanks in advance
Sigma
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
48 views
Pie.htc (html component used for border-radius in IE8 and lower versions of IE).
not working inside of Telerik RadGrid in IE8.(its working perfectly outside of radgrid)

Please find the attached image file.
How can I solve this?
Please help me.

Jayesh Goyani
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
60 views
I am trying to create an inbox service for my companies product, Everything works however for better use for users i would like them to be able to click on an item in a radgrid like they do below
Where i carry a piece of information to the redirected page (strid)

Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Response.Redirect("MessageForm1.aspx?id=" + strid)
        Next
    End If
End Sub

But what i want to be able to do is open it in a new radwindow such as i do in the code below
function Message() {
    var ow = window.radopen('MessageForm1.aspx');
    ow.setSize(600, 1000);
    ow.set_title("MessageForm");
    ow.moveTo(400, 0);
 
    return false;
}

but still carry over the piece of information that i can get when i redirect

To clarify...
I currently use response.redirect because it allows me to transfer information, but I want to open a whole new rad window, and still transfer the information, is there any way to do this?
Thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?