Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
85 views
I used a Radpanel embedded with RadMultiPage. I used a javascript to perform some computation,  values needs to be computed when data is retrieved from the database. This causes a postback on the "panel" and the values computed by the javascript is cleared. I need to call the javascript when the postback occur. I placed a call on the page load event. This didnt work, what can I do?

Thanks in advanced
Effendi
Top achievements
Rank 1
 answered on 30 Dec 2010
5 answers
598 views
Hi All:

I have loaded my db column declared as follows:
    [Thumbnail] [varbinary](max) NULL

I have loaded the column as follow:
Dim _pdfStream As FileStream = Nothing
Dim _fileName As String = "C:\Src\Proj\trunk\Data\2010-05-May-Cover.pdf"
If My.Computer.FileSystem.FileExists(_fileName) Then
    _pdfStream = New FileStream(_fileName, FileMode.Open, FileAccess.Read)
    Dim _length As Integer = CInt(_pdfStream.Length)
    Dim _contents(_length) As Byte
    _pdfStream.Read(_contents, 0, _length)
    _pdfStream.Close()
    ' ... insert _contents into db
End If

I reference as follows:
<asp:FormView
    id="mImageFormView" runat="server"
    DataSourceID="mImageDataSource">
    <ItemTemplate>
        <telerik:RadBinaryImage ID="rbiThumbnail" runat="server" Width="180px" Height="220px"
            DataValue='<%# Eval("Thumbnail") %>' AlternateText='No image'
            />
    </ItemTemplate>
</asp:FormView>

I am getting the following:
    The provided binary data may not be valid image or may contains unknown header

Anything wrong?
How do I verify that the image data is stored correctly?

Phil
Phil
Top achievements
Rank 2
 answered on 30 Dec 2010
2 answers
154 views
Hello,
My page has 9 buttons as toolbar and all of them perform postback. 
When using radUpload in this page, it doesn't matter which one is clicked; file is always uploaded.

Is there any way to select which element does the uploading?
Lex
Top achievements
Rank 1
 answered on 29 Dec 2010
3 answers
1.0K+ views
I want to after 1 minute. RadGrid automatically refresh again.
Jimmy
Top achievements
Rank 1
 answered on 29 Dec 2010
3 answers
74 views
Telerik Developers,

I have 2 Menu Controls Menu A | Menu B.  I'm using both of them on the same page.  I've created 2 Custom Styles for each of them using the Visual Style Builder and when I add the CSS for Menu B to my CSS Folder, Menu A Text color and margins change as they're both responding to ".RadMenu".  Why  didn't all my styles change to .RadMenuX?  Is this suppose to happen?
Kevon Hayes
Top achievements
Rank 1
 answered on 29 Dec 2010
3 answers
211 views

I have an extra RadGrid as Detail Table which needs to be editable (update, insert, delete). 

I thought that DetailTable contains the needed Event Handlers for that but obviously i was wrong. 

So now, i don't know how do i do that. I am using RadGrid1_DetailTableDataBind event to bind the nested Grid to Datatable:

Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
 
 If e.DetailTableView.Name = "Payments" Then
     Dim PurchaseID As Integer = Convert.ToInt16(dataItem.GetDataKeyValue("SaleID").ToString)
     e.DetailTableView.DataSource = PurchasesAccess.GetPayments(PurchaseID)
 End If

However i still don't know how do i call UpdateCommand, InsertCommand and DeleteCommand for the grid which is detail table. 

I am not using SqlDataSource objects and such. Rather i am using classes and stored procedures. 

Thanks

Elliott
Top achievements
Rank 2
 answered on 29 Dec 2010
5 answers
121 views
After switching to Q3 dlls my advanced template modal dialog has no background. Looking at it in Chrome there seems to be another style overriding the original one but since this is all coming from axd not sure how to correct it. If I switch back to Q2 dll the dialog renders as expected. Screenshots attached.

Kamen Bundev
Telerik team
 answered on 29 Dec 2010
0 answers
109 views
I am running into an issue picking up control clientIDs when it comes to master/content pages.  For example, using $find("<%= controlName.ClientID %>") in a single page would allow me to access the controls id.  However, if I place the same code in a content page, I get a 'null' error.  It cannot find the control.  Below is the content page I am attempting to access a controls ID.  Any help would be appreciated.
<%@ Page Title="" Language="C#" MasterPageFile="~/MES.master" AutoEventWireup="true" CodeBehind="timesheet.aspx.cs" Inherits="ESPS.Timesheet.timesheet" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <asp:ScriptManagerProxy runat="server"></asp:ScriptManagerProxy>
     
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var btn = $find("<%# rBtnTest.ClientID %>");
        alert(btn);
    </script>
    </telerik:RadCodeBlock>
        
    <div style="background-color: Blue;">
    
        <telerik:RadButton runat="server" ID="rBtnTest" Text="Test" />
         
    </div>
   
</asp:Content>


Disregard this post, I have figured the out the problem. 


Marcial
Top achievements
Rank 1
 asked on 29 Dec 2010
5 answers
277 views
We have a page that primarily features a RadScheduler control. Certain actions fire an Ajax request and we refresh the Scheduler in these cases. The Scheduler always refreshes properly, but the Loading Panel only shows occasionally. I haven't been able to determine a set pattern in terms of when it shows/doesn't show yet. I believe that I have the controls set up properly. Has anyone else ran into an issue like this before? I have tried to set up events for RequestStart and RequestEnd which manually hide/show the loading panel and this works a little better, but still not consistently. Any tips would be appreciated! Below is a sample of the code that I'm using.

    <telerik:RadAjaxManager ID="ajxmgr" runat="server" OnAjaxRequest="ajxmgr_AjaxRequest"
        UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ajxmgr">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdScheduler" LoadingPanelID="lpMdl" />
                    <telerik:AjaxUpdatedControl ControlID="control1" />
                    <telerik:AjaxUpdatedControl ControlID="dtPckr" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdScheduler">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadCalendar1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="lpMdl" runat="server" Transparency="20" BackColor="#E0E0E0"
        IsSticky="false" InitialDelayTime="100">
        <div class="ldpnl">
            Please Wait...
            <br />
            <img src="images/icons/ajax-loader2.gif" alt="loading..." style="padding-top: 15px;" />
        </div>
    </telerik:RadAjaxLoadingPanel>

Thanks!

Jeff
Tsvetoslav
Telerik team
 answered on 29 Dec 2010
3 answers
150 views
Hello,

We have added the ImageManager in our Rad Editor. It's working fine, except when we try to upload images with certain 'invalid' characters (ex. '#'). Is there any work around for this? The image is not displayed when we try to insert it in the rad editor.


Thanks
Rumen
Telerik team
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?