Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
80 views
Hi,

I have grid that uses OpenAccessLinqDataSource with automatic insert, update and delete. I'm trying to implement insert but with following scenario.

Data table (as class) has 4 properties. ID, IdFirm, Number and Activity. I have set invisible property for ID and IdFirm colum. For ID is clear why I hide it. As for IdFirm I dont wont to display it because it must be connected to some othe class on page and user MUST NOT enter that information.

How to implement automatic insert and intersept that call to add IdFirm property to object and then save it database.

I use command item (AddNewRecordButton)

Marko
Marko Gluhak
Top achievements
Rank 1
 answered on 29 Feb 2012
4 answers
42 views
How come the calendar demos don't work? There used to be a full featured, or close to it, demo with code samples
Erik
Top achievements
Rank 1
 answered on 29 Feb 2012
2 answers
103 views
Most end-users, if they recognise the word "Ajax" at all, prolly still think it is a product to clean the bathtub with.

Consider changing the default text for the Spell Check button from "AJAX Spellchecker to "Spellchecker"

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Feb 2012
2 answers
102 views

Should showtext="false" work when I also have size="large"?

If "yes" then it's broken as I have...

<tools name="Proofing" tab="Home">
    <tool name="AjaxSpellCheck" size="large" showtext="false"/>
</tools>

but see screenshot.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 29 Feb 2012
1 answer
53 views
After updating to Q1 2012 shadow is not shown in any browser. EnableShadow="true". Previous releases was OK.
Marin Bratanov
Telerik team
 answered on 29 Feb 2012
1 answer
112 views
Hi,
i am getting following exception when i type characters in filter column.

  "No property or field 'jghjghj' exists in type 'DataRowView'


  <MasterTableView AllowPaging="true" AllowFilteringByColumn="true" CommandItemDisplay="Top"
                Width="100%">
                <PagerStyle Mode="NextPrev" AlwaysVisible="true"/>
                <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" />
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="Budget ID" DataField="budhdrtky" UniqueName="BudgetID"
                        Visible="true" ReadOnly="true">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkBtnBudgetId" runat="server" Text='<%#Eval("budhdrtky")%>'></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="130px" />
                        <ItemStyle Width="130px" />
                    </telerik:GridTemplateColumn>
</Columns>

What changes do i need to do ??

Regards,
Akki
Richard
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
81 views
i am new to this I would like to help me please I have a RadAsyncUpload and RadBinaryImage when loadinga picture from the photo RadAsyncUpload shown in the image RadBinaryImage but when I choose another image that shows nothing I RadBinaryImage I have this code
                   <telerik: RadAsyncUpload runat = "server" ID = "BtnExmaminarLogo"
                                               MaxFileInputsCount = "1" OnClientFileUploaded = "fileUploaded"
             OnFileUploaded = "BtnExmaminarLogo_FileUploaded" AllowedFileExtensions = "jpeg, jpg, gif, png, bmp"
                                               OnClientValidationFailed = "validationFailed" Width = "100%" Height = "100%">
             Select="Elegir <Localization Logo" Remove="Elegir Otra" Cancel="Cancelar" />
I want that when elgir "Choose Other" in the RadAsyncUpload not show the image the bone RadBinaryImagethis blank that do not know how please help  
Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
244 views

Hello ,

We are facing a sporadic issue when using the RadUpload control in our website.

The application is hosted    in a load balanced server and the session is stateless.

This is what is happening. If the user uploads 10 files (then it creates 10 temp files on the server in RadUploadTemp folder.)We have 2 app servers and when the user access the server, it might get connected to appserver1. But there is no guarentee that for all the 10times it tries to access the server, it will always go to appserver1 as they are loadbalanced. The moment it hits appserver2, we get file not found exception. If it always hits appserver1 then all the files will be uploaded successfully

We are get the error every now and then. Is there any configuration that can be set in the control that would make the control work without issues in case where the load balancing is set and the session is stateless?


Thank you
Regards
Pankaj

Peter Filipov
Telerik team
 answered on 29 Feb 2012
1 answer
143 views
I am trying to get jquery to handle the delivery of a message if the user tries to upload a file that is open. I am using the sample from here to work with. I know I must have missed something because the example from the link does what I want it to do but I am getting the script errors from below from my page.

Microsoft JScript runtime error: Exception thrown and not caught
Microsoft JScript runtime error: Unhandled Error in Silverlight Application [ScriptObject_InvokeFailed]

confusing because this is not a silverlight application but an ASP.NET

here is my client side code from the .ascx file.

<telerik:RadCodeBlock ID="RadFileUploadCodeBlock" runat="server">
 
    <script type="text/javascript">
        //<![CDATA[
        function validationFailed(sender, eventArgs) {
            $(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
        }
        function closeDataContainer() {
            $('div[id$=datacontainer]').hide('slow');
        }
        //]]>
    </script>
 
</telerik:RadCodeBlock>
 
 
<div id="container">
    <div id="content-container">
        <div id="content">
            <telerik:RadProgressManager runat="server" ID="RadProgressManager1" />
            <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Disabled"
                OnClientValidationFailed="validationFailed" AllowedFileExtensions="xls, xlsx"
                AutoAddFileInputs="True" Height="25px" Width="250px">
                <FileFilters>
                    <telerik:FileFilter Description="*.xls; *. xlsx" Extensions="xls, xlsx"></telerik:FileFilter>
                </FileFilters>
            </telerik:RadAsyncUpload>
            Select files to upload (xls, xlsx)
        </div>
        <div id="aside">
            <asp:Button runat="server" ID="BtnSubmit" Text="Process File" OnClick="BtnSubmit_OnClick" />
        </div>
        <telerik:RadProgressArea runat="server" ID="RadProgressArea1" Width="582px">
        </telerik:RadProgressArea>
        <div id="Div1">
            <asp:PlaceHolder ID="MessagePlaceHolder" Visible="false" runat="server"></asp:PlaceHolder>
        </div>
        <!-- this is used for client side delivery of AsyncUpload Failure messages -->
        <div class="ErrorHolder">
        </div>
    </div>
</div>


Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
97 views
I have an existing site and Im starting to use telerik controls in the site but Im getting this javascript error.

this.get_tree() is null


Im using an existing ajaxControlToolkit.TabContainers. 
  1. On the first tab you click a button and it displays a third tab containing a RadFileExplorer 
  2. now you click on the first tab the 3rd tab goes away
  3. then click on the second tab and the javascript error occurs.


This is some sample code to reproduce it (VB.net 4.0)

Protected Sub tabContainer1_ActiveTabChanged(sender As Object, e As System.EventArgs)
    If (tabContainer1.ActiveTabIndex = 0 Or tabContainer1.ActiveTabIndex = 1) Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub Page_Load(sender As Object, e As System.EventArgs)
    If Not IsPostBack Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub OpenNewTab_Click(sender As Object, e As System.EventArgs)
    With tabContainer1.Tabs(2)
        .Enabled = True
        .Visible = True
    End With
    tabContainer1.ActiveTab = tabContainer1.Tabs(2)
End Sub


<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" ScriptMode="Release" AsyncPostBackTimeout="60000" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    </Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
 <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <ajaxControlToolKit:TabContainer ID="tabContainer1"  runat="server"
                ActiveTabIndex="0" AutoPostBack="True"
                     onactivetabchanged="tabContainer1_ActiveTabChanged">
        <ajaxControlToolKit:TabPanel ID="Tab1" runat="server">
            <HeaderTemplate>
                One 
            </HeaderTemplate>
            <ContentTemplate>
            Randon <br />Stuff
            <br />Click here to start>><asp:Button runat="server" ID="OpenNewTab" Text="OpenNewTab"
                    onclick="OpenNewTab_Click" />
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab2" runat="server">
            <HeaderTemplate>
                Two 
            </HeaderTemplate>
            <ContentTemplate>
            More Random Stuff<br /><br />11111111
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab3" runat="server">
            <HeaderTemplate>
                Three 
            </HeaderTemplate>
            <ContentTemplate>
            problem here<br />
 
            <telerik:RadFileExplorer runat="server" ID="editArticleImagePathEditor" ></telerik:RadFileExplorer>
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
    </ajaxControlToolKit:TabContainer>
 
        </ContentTemplate>
</asp:UpdatePanel>
 
</div>
</form>
Dobromir
Telerik team
 answered on 29 Feb 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?