Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
143 views
I am using your sample code to upload image to the database.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx

The example works fine when i am using only one image upload feature. Since my table has three image columns for different reasons, I am unable to modify the code for inclusion of multiple uploads for each column. Can u share any sample code as i am getting an error "System.InvalidCastException: Object must implement IConvertible.". I am unable to fix it. I am trying below mentioned code.

   function conditionalPostback(sender, eventArgs) {
                    var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");
                    if (eventArgs.get_eventTarget().match(theRegexp)) {
                        var upload = $find(window['UploadId']);
                        var uploadmid = $find(window['UploadIdMid']);
                        var uploadthumb = $find(window['UploadIdThumb']);
  
//                         Test script for all
                        if (upload.getFileInputs()[0].value != "" || uploadmid.getFileInputs()[0].value != "" || uploadthumb.getFileInputs()[0].value != "") {
                            eventArgs.set_enableAjax(false);
                        }
     }
}
Radoslav
Telerik team
 answered on 30 Aug 2011
1 answer
147 views
I have 5 radbuttons on a page.  Initially the radbuttons display just fine.  The buttons are all within a RadAjaxPanel.  The function of one of the buttons is to update a RadGrid on the page.  When this button is clicked, the RadGrid updates correctly, but all five buttons on the page disappear.  I am using IE8 and the behavior only happens when I am running in compatibilty mode.  Some users for this project may use IE6 or IE7.  Any help will be appreciated.

Thanks,
-Dan

 

Shinu
Top achievements
Rank 2
 answered on 30 Aug 2011
6 answers
263 views
I want the default font size for text boxes and masked text boxes to be 12px in size.  I had a previous problem with combos and was issed with a css fix which worked ok for combos but doesnt seem to work for text boxes, here what ive tried

.RadTextBox_Vista .rcbInputCell .rcbInput {     
    font-size: 12px !important;     
    padding: 2px 0 2px 1px !important;     
}     
    
.RadTextBox_Vista .rcbArrowCell a{     
    height: 20px !important;     
}  
 
can anyone tell me why this wont work ?
Shinu
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
107 views
Hello, i have a problem that only happens if i use the code bellow :
<div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" />
    </div>--%>

The problem is i have a RadGrid with the exportToCSV button, when i click on this button without using the code above, everything works fine...But if I added the code above the export will be done directly on the RadGrid instead of on to a .csv file.....

Can you help?

RadGrid code:
<br />
<%--    <div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" />
    </div>--%>
    <table>
        <tr>
            <td>
                <telerik:RadButton ID="ShowProcessed" runat="server" Text="Show Processed" Skin="Black"
                    Width="110px" Height="40px" OnClick="ShowProcessed_Click">
                </telerik:RadButton>
            </td>
            <td>
            </td>
            <td>
                <telerik:RadButton ID="ShowUnProcessed" runat="server" Text="Show Unprocessed" Skin="Black"
                    Width="120px" Height="40px" OnClick="ShowUnProcessed_Click">
                </telerik:RadButton>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False" Width="97%" enableajax="True"
        AllowFilteringByColumn="True" ShowFooter="True" Skin="Black" OnItemCommand="RadGrid1_ItemCommand"
        OnGridExporting="RadGrid1_GridExporting" AllowMultiRowSelection="True" OnNeedDataSource="RadGrid1_NeedDataSource">
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView DataKeyNames="SequencialNumber" Width="100%" CommandItemSettings-ShowExportToCsvButton="True"
            CommandItemSettings-ShowAddNewRecordButton="false" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridBoundColumn DataField="SequencialNumber" HeaderText="SequencialNumber"
                    UniqueName="SequencialNumber" SortExpression="SequencialNumber">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Priorities.Priority" HeaderText="Priority" UniqueName="Priority"
                    FilterControlAltText="Filter Priority column" SortExpression="Priorities.Priority"
                    DataType="System.Int32">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Staging.Process" HeaderText="Staging" UniqueName="Process"
                    SortExpression="Staging.Process" FilterControlAltText="Filter Process column">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SupplierCode" HeaderText="SupplierCode" UniqueName="SupplierCode"
                    SortExpression="SupplierCode" FilterControlAltText="Filter SupplierCode column">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="MessageStatus" HeaderText="MessageStatus" UniqueName="MessageStatus"
                    SortExpression="MessageStatus" FilterControlAltText="Filter MessageStatus column">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DocumentType" HeaderText="DocumentType" UniqueName="DocumentType"
                    FilterControlAltText="Filter DocumentType column" SortExpression="DocumentType">
                </telerik:GridBoundColumn>
                <telerik:GridDateTimeColumn UniqueName="InvoiceCreationDate" DataField="InvoiceCreationDate"
                    HeaderText="InvoiceCreationDate" FilterControlAltText="Filter InvoiceCreationDate column"
                    SortExpression="InvoiceCreationDate">
                    <FilterTemplate>
                        <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
                        </telerik:RadDatePicker>
                    </FilterTemplate>
                </telerik:GridDateTimeColumn>
                <telerik:GridBoundColumn DataField="SupplierVatNumber" FilterControlAltText="Filter SupplierVatNumber column"
                    HeaderText="SupplierVatNumber" SortExpression="SupplierVatNumber" UniqueName="SupplierVatNumber">
                </telerik:GridBoundColumn>
            </Columns>
            <ExpandCollapseColumn Visible="False">
                <HeaderStyle Width="19px"></HeaderStyle>
            </ExpandCollapseColumn>
            <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToCsvButton="True">
            </CommandItemSettings>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 30 Aug 2011
3 answers
219 views
Hi,
Can anyone tell me how to select a radgrid row from client side by clicking a radio button.Beacuse I am taking the selected row in the code behind to save the data.
(Currently I am achieving this by a post back. I want to avoid post back so that I can make some client side validations.)

Or is there any way to get the datakey value from the checked radiobutton?

Thanks in advance
AJITH
Princy
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
219 views
hello all

I have a RadGridView and I want to extract data from a row using a RadioButton and send to a label.
how can do this action?


Thank you for your attention.

Have a nice day!
Shinu
Top achievements
Rank 2
 answered on 30 Aug 2011
3 answers
143 views
Hi,

Can somebody tell me if it is possible to set the combo box outer border? I say outer border because
it appears that by using the properties giving in visual studio to set the border only set the inner border.
but the border around the combo box will remain which ever color in used by the skin you choose. I've
search high and low, will really appreciate your help, I also attached a photo example.

Thanks,
Ron
Shinu
Top achievements
Rank 2
 answered on 30 Aug 2011
2 answers
99 views
Hello all,

  When I update version of telerik to newest (2011.1.519.35) and then i have an example: click radmenu to open a popup. But With IE9 i 've a problem: the popup is not focus like Firefox or google chorme..

i've an eaxmple "TestPopupIE9" below: http://www.mediafire.com/?gdwcci7w6yd3r9r

Please help me fix this.

thank you!

nguyen
Top achievements
Rank 1
 answered on 30 Aug 2011
1 answer
132 views
HI. I'm testing  Radinputmanager.
I want to print dropdownlist1's index without radinputmanger's validation at client-side.

i expected  i clicked the "print selectedIndex" button,it printing dropdownlist1's index
and if i click the "Print Result" button, it works validation to textboxes.

but result was raise  the textboxes validation.
help me.

My source is
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp8._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="expires" content="-1" />
    <meta http-equiv="pragma" content="no-cache" />
    <link href="./main.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="frmMain" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" OutputCompression="Disabled">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
 
    <div id="divContents">
        <table style="width: 800px; text-align: center; margin: 0 auto;">
            <tr>
                <td colspan="2" style="width: 800px">
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="width: 100%;">
                    <asp:Button ID="Button1" runat="server" Text="Print SelectedIndex" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="width: 800px">
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <table style="width: 800px; text-align: center; margin: 0 auto;">
            <tr>
                <td colspan="2" style="width: 800px;">
                    <h2>
                        Input Manager Control</h2>
                </td>
            </tr>
            <tr>
                <td class="tdLeftContent">
                    Numbers Only
                </td>
                <td class="tdRightcontent">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    ex) 12345679
                </td>
            </tr>
            <tr>
                <td class="tdLeftContent">
                    Currency
                </td>
                <td class="tdRightcontent">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    ex) 79.90
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="Button2" runat="server" Text="Print Result" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left; padding-left: 200px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" Visible="False"></asp:Label><br />
                </td>
            </tr>
        </table>
    </div>
    <telerik:RadInputManager ID="RadInputManager1" runat="server">
        <telerik:NumericTextBoxSetting BehaviorID="NumericBehavior1" EmptyMessage="type here"
            ErrorMessage="Numbers Only" DecimalDigits="0" Culture="en-us" Type="Number" Validation-IsRequired="true">
            <TargetControls>
                <telerik:TargetInput ControlID="TextBox1" />
            </TargetControls>
        </telerik:NumericTextBoxSetting>
        <telerik:NumericTextBoxSetting BehaviorID="NumericBehavior2" EmptyMessage="type here"
            ErrorMessage="Numbers Only" DecimalDigits="0" Culture="en-us" Type="Currency" Validation-IsRequired="true">
            <TargetControls>
                <telerik:TargetInput ControlID="TextBox2" />
            </TargetControls>
        </telerik:NumericTextBoxSetting>
    </telerik:RadInputManager>
    </form>
</body>
</html>

and code behind is
Imports Telerik.Web.UI
 
Partial Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (DropDownList1.Items.Count = 0) Then
 
            Dim listItemDummy As New ListItem
            listItemDummy.Value = ""
            listItemDummy.Text = ""
 
            DropDownList1.Items.Add(listItemDummy)
 
            For i As Integer = 0 To 10
                Dim listItem As New ListItem()
 
                listItem.Text = (i + 1)
                listItem.Value = (i + 1)
 
                DropDownList1.Items.Add(listItem)
 
            Next
        End If
    End Sub
 
 
    Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Dim dropDownListIndex As String = DropDownList1.SelectedIndex.ToString()
     
        Label2.Text = TextBox1.Text + " AND " + TextBox2.Text
 
 
         
    End Sub
 
    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim dropDownListIndex As String = DropDownList1.SelectedIndex.ToString()
 
 
        Label1.Text = "SelectedIndex: " + dropDownListIndex
 
    End Sub
End Class

shunman
Top achievements
Rank 1
 answered on 30 Aug 2011
3 answers
126 views

What I have set up is a RadComboBox with:

            AllowCustomText = true

            CheckBoxes = true

            EnableLoadOnDemand = true

            OnItemsRequested = MyFunctionToGetColumns
            Text="PreviouslySavedText"

Everything works as expected, except the input isn't filled with the Text value.
My workaround for now is to set the EmptyMessage to the PreviouslySavedText.  Is there a better way to set the text on load?


Thad
Top achievements
Rank 2
 answered on 29 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?