Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hi,

I am using RadComboBox in my application. I am adding the values to it dynamically from code-behind. The SelectedIndexChanged event is working fine if I select any value except the first value (SelectedIndex=0), That item contains values in both its properties Text and Value, none of them are blank. The AutoPostBack is also true. But when I select the first value in combobox, the SelectedIndexChanged event is not fired, I am wondering why is it so? For all other values it fires. I have also set CausesValidation=false.

Please guide.
Hristo Valyavicharski
Telerik team
 answered on 15 Jan 2013
1 answer
66 views
Have a project that was developed in Telerik ASP.net (pre AJAX) and moving it into ASP.net AJAX.  However running into some problems and not quite sure of how to finish the update process.  Hoping someone might offer some assistance it would be appreciated.
Errors are with the following lines: 
me.editor.editmodes.html = user.isinrole("Administrator")

Dim pagelink as new radEditorUtils.link(.....)
 

 

Me.editor.EditModes.Html = User.IsInRole("Administrator")
        Me.editor.Links.Clear()
 
        Dim dtPages As DataTable = DAL.list_pages_enabled()
        For Each page As DataRow In dtPages.Rows
            Dim pageLink As New RadEditorUtils.Link(page("title").ToString(), String.Format("/Public/Default.aspx?pid={0}", page("pid").ToString), "_self", page("title").ToString())
            Dim dt As New DataTable
            dt = DAL.list_sub_pages(page("pid").ToString)
            For Each subPage As DataRow In dt.Rows
                Dim subPageLink As New RadEditorUtils.Link(subPage("title").ToString(), String.Format("/Public/Default.aspx?pid={0}", subPage("pid").ToString), "_self", subPage("title").ToString())
                pageLink.Add(subPageLink)
            Next
            Me.editor.Links.Add(pageLink)
        Next

Also how to handle editor.CancelClicked and editor.SubmitClicked?  Is there something different involving these?

Rumen
Telerik team
 answered on 15 Jan 2013
5 answers
143 views
I am having trouble with the text box's in IE 9. I have them inside of a control and they seem to grow larger then the form itself when it pops up. It however works perfectly fine in firefox and Chrome. Any help would be greatly appreciated. 

<table id="tblVehicle" cellspacing="2" cellpadding="1" width="100%" rules="none" border="0">
    <tr>
        <td colspan="4">
            <b><asp:Label ID="lblHeading" runat="server" /></b><br />
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <asp:CheckBox ID="cbActive" runat="server" Font-Size="X-Small" Checked='<%# If(Eval("active") Is DBNull.Value, 0, Eval("active")) %>' Text="Active: "/>
        </td>
    </tr>
    <tr>
        <td>Salutation:</td>
        <td>
            <telerik:RadComboBox ID="cboContactSalutation" runat="server" Font-Size="X-Small"
                Width="40px" SelectedValue='<%# Bind("contact_salutation") %>'>
                <Items>
                    <telerik:RadComboBoxItem Text="" value="" />
                    <telerik:RadComboBoxItem Text="Mr." value="Mr." />
                    <telerik:RadComboBoxItem Text="Ms." value="Ms." />
                    <telerik:RadComboBoxItem Text="Dr." value="Dr." />
                </Items>
            </telerik:RadComboBox>
        </td>
    </tr>
    <tr>
        <td>First Name:</td>
        <td>
            <telerik:RadTextBox ID="tbContactFirstNm" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("contact_first_nm") %>'/>
            <asp:RequiredFieldValidator ID="rfvFirstName" runat="server"
                ControlToValidate="tbContactFirstNm" ErrorMessage="* required"/>
        </td>
    </tr>
    <tr>
        <td>Last Name:</td>
        <td>
            <telerik:RadTextBox ID="tbContactLastNm" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("contact_last_nm") %>'/>
            <asp:RequiredFieldValidator ID="rfvLastName" runat="server"
                ControlToValidate="tbContactLastNm" ErrorMessage="* required"/>
        </td>
    </tr>
    <tr>
        <td>Job Title:</td>
        <td>
            <telerik:RadTextBox ID="tbContactTitle" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("contact_title") %>'/>
        </td>
    </tr>
    <tr>
        <td>Department:</td>
        <td>
            <telerik:RadTextBox ID="tbContactDept" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("contact_dept") %>'/>
        </td>
    </tr>
    <tr>
        <td>Work Phone:</td>
        <td>
            <telerik:RadTextBox ID="tbPhoneWork" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("phone_work") %>'/>
        </td>
    </tr>
    <tr>
        <td>Mobile Phone:<td>
            <telerik:RadTextBox ID="tbPhoneMobile" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("phone_mobile") %>'/>
        </td>
    </tr>
    <tr>
        <td>Fax:</td>
        <td>
            <telerik:RadTextBox ID="tbPhoneFax" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("phone_fax") %>'/>
        </td>
    </tr>
    <tr>
        <td>Email:</td>
        <td>
            <telerik:RadTextBox ID="tbAddressEmail" runat="server" Font-Size="X-Small" Width="150px" Text='<%# Bind("address_email") %>'/>
        </td>
    </tr>
    <tr>
        <td>Alternate E-mail:</td>
        <td>
            <telerik:RadTextBox ID="tbAddressEmail2" runat="server" Font-Size="X-Small" Width="150px" Text='<%# Bind("address_email2") %>'/>
        </td>
    </tr>
    <tr>
      <td colspan="2">
        <asp:Panel runat="server" ID="pnlMailingInfo">
            <h2>Mailing Info</h2>
            <table style="width:100%;">
              <tr>
                <td>Street Address:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressMailingStreet1" runat="server" Width="150px" Font-Size="X-Small" Text='<%# Bind("address_mailing_street1") %>'/>
                    <asp:RequiredFieldValidator ID="rfvMailingSt1" runat="server"
                        ControlToValidate="tbAddressMailingStreet1" ErrorMessage="* required"/>
                </td>
              </tr>
              <tr>
                <td></td>
                <td>
                    <telerik:RadTextBox ID="tbAddressMailingStreet2" runat="server" Font-Size="X-Small" Width="150px" Text='<%# Bind("address_mailing_street2") %>'/>
                </td>
              </tr>
              <tr>
                <td>City:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressMailingCity" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("address_mailing_city") %>'/>
                    <asp:RequiredFieldValidator ID="rfvMailingCity" runat="server"
                        ErrorMessage="* required" ControlToValidate="tbAddressMailingCity"/>
                </td>
              </tr>
              <tr>
                <td>
                    State:  
                    <telerik:RadTextBox ID="tbAddressMailingState" runat="server" Font-Size="X-Small" Width="30px" Text='<%# Bind("address_mailing_state") %>'/>
                </td>
                <td>
                    Zip:  
                    <telerik:RadTextBox ID="tbAddressMailingZip" runat="server" Font-Size="X-Small" Width="70px" Text='<%# Bind("address_mailing_zip") %>'/>
                    <asp:RequiredFieldValidator ID="rfvMailingState" runat="server" Display="Dynamic"
                        ErrorMessage="* must enter state" ControlToValidate="tbAddressMailingState" />
                    <asp:RegularExpressionValidator ID="revMailingZip" runat="server"
                        ControlToValidate="tbAddressMailingZip"
                        ValidationExpression="^(\d{5}-\d{4}|\d{5}|\d{9})$|^([a-zA-Z]\d[a-zA-Z] \d[a-zA-Z]\d)$"
                        Display="Dynamic"
                        EnableClientScript="false"
                        ErrorMessage="* invalid zip code" />
                </td>
              </tr>
              <tr>
                <td>Country:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressMailingCountry" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("address_mailing_country") %>'/>
                    <asp:RequiredFieldValidator ID="rfvMailingCountry" runat="server"
                        ErrorMessage="* required" ControlToValidate="tbAddressMailingCountry"/>
                </td>
              </tr>
              <tr>
                <td colspan="2">
                    <asp:CheckBox ID="cbShippingIsSame" runat="server" Font-Size="X-Small" OnCheckedChanged="Checkbox_Changed" AutoPostBack="true" />
                    Check if shipping info is different from mailing info
                </td>
              </tr>
            </table>
        </asp:Panel>
        <asp:Panel runat="server" ID="pnlShippingInfo" Visible="false">
            <h2>Shipping Info</h2>
            <table style="width:100%;">
              <tr>
                <td>Street Address:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressShippingStreet1" runat="server" Font-Size="X-Small" Width="150px" Text='<%# Bind("address_shipping_street1") %>'/>
                </td>
              </tr>
              <tr>
                <td></td>
                <td>
                    <telerik:RadTextBox ID="tbAddressShippingStreet2" runat="server" Font-Size="X-Small" Width="150px" Text='<%# Bind("address_shipping_street2") %>'/>
                </td>
              </tr>
              <tr>
                <td>City:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressShippingCity" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("address_shipping_city") %>'/>
                </td>
              </tr>
              <tr>
                <td>
                    State:  
                    <telerik:RadTextBox ID="tbAddressShippingState" runat="server" Font-Size="X-Small" Width="30px" Text='<%# Bind("address_shipping_state") %>'/>
                </td>
                <td>
                    Zip:  
                    <telerik:RadTextBox ID="tbAddressShippingZip" runat="server" Font-Size="X-Small" Width="70px" Text='<%# Bind("address_shipping_zip") %>'/>
                    <asp:RegularExpressionValidator ID="revShippingZip" runat="server"
                        ControlToValidate="tbAddressShippingZip"
                        ValidationExpression="^(\d{5}-\d{4}|\d{5}|\d{9})$|^([a-zA-Z]\d[a-zA-Z] \d[a-zA-Z]\d)$"
                        Display="Dynamic"
                        EnableClientScript="false"
                        ErrorMessage="* invalid zip code" />
                </td>
              </tr>
              <tr>
                <td>Country:</td>
                <td>
                    <telerik:RadTextBox ID="tbAddressShippingCountry" runat="server" Font-Size="X-Small" Width="120px" Text='<%# Bind("address_shipping_country") %>'/>
                </td>
              </tr>
            </table>
        </asp:Panel>
      </td>
    </tr>
    <tr>
        <td align="right" colspan="4">
            <asp:button id="btnUpdate" text="Update" runat="server" CommandName="Update" Visible='<%# Not (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>'></asp:button>
            <asp:button id="btnInsert" text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>'></asp:button>
              
            <asp:button id="btnCancel" text="Cancel" runat="server" causesvalidation="False" commandname="Cancel"></asp:button>
        </td>
    </tr>
</table>
Galin
Telerik team
 answered on 15 Jan 2013
1 answer
112 views
Hi,

I can't seem to find the localization labels for the Thumnailview an Gridview buttons.

They do not exist in RadEditor.Dialogs.xml?

Marc
Rumen
Telerik team
 answered on 15 Jan 2013
3 answers
180 views
I have an Edit Command Template which is a ascx file.

The problem that I am having is setting up the control.  Usually I use the !Page.IsPostBack to know when I set my form values.

But since I have a RadGrid with in a RadTree, when I fire the Edit command, it is true.  How can I tell when the edit command was clicked/executed?

Thanks
John
Shinu
Top achievements
Rank 2
 answered on 15 Jan 2013
5 answers
297 views
Hi guys, I cant get the databinding to work, either on webservice or WCF. I have tried binding to both local webservice in same project and deployed webservice on remote server (both functioning), but when querying for data all I get is: "The server method 'GetKeywordList' failed"
(GetKeywordList is the name of the webmethod / operationcontract)

Any good advice?
Best regards,
Kim
Cat Cheshire
Top achievements
Rank 1
 answered on 15 Jan 2013
6 answers
379 views
Hi,
i open the radwindow into page without navigaturl. This my code is:
<telerik:RadWindow ID="RadWindowAnteprimaProfile" runat="server" ShowContentDuringLoad="false" Title="Anteprima immagine" Behaviors="None"
Modal="True" Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png" Width="350px" Height="280px"
MaxHeight="300px" MaxWidth="400px"
ToolTip="Anteprima immagine" VisibleStatusbar="False" Skin="Simple"
ReloadOnShow="True">
<ContentTemplate>
<div class="Divviewimgprifile">
<div class="Divviewimgprifile1">
<table style="width:100%; margin:0px; padding:0px; border:0px">
<tr>
<td style="text-align:center">
<div runat="server" id="imgprofile" class="AnteprimaImgProfile">
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="text-align:center; padding-top:10px">
<asp:ImageButton ID="Imgbtnesci_1" runat="server" ImageUrl="~/Image/esci1.png" />
</td>
</tr>
</table>
</div>
</div>
</ContentTemplate>
</telerik:RadWindow>

Now into vb net code i've this code:

    Try
        Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString")
        Dim strConnString As String = conString.ConnectionString
        Using db As New SqlConnection(strConnString)
            db.Open()
            Using sqlcmd As New SqlCommand("Sp_get_imageprofile", db)
                sqlcmd.CommandType = CommandType.StoredProcedure
                sqlcmd.Parameters.AddWithValue("@id", SqlDbType.Int).Value = Session.Item("Idutente")
                Dim _img As String = Replace(sqlcmd.ExecuteScalar, "~", "")
                imgprofile.Attributes("style") = "background-image: url('" + _img + "');"
            End Using
        End Using
    Catch ex As SqlException
        Exit Sub
    Catch ex As Exception
        Exit Sub
    End Try
End If

i would that when i pon the radwindow, start the vb code...How do it?

thanks bye



Marin Bratanov
Telerik team
 answered on 15 Jan 2013
5 answers
97 views
I am having an issue with Safari, it appears that events on my scheduler are not showing on my iPad or my windows machine in safari. My site is:

www.11sBlack.com  on the Schedule page.


Thanks,
Sam
Plamen
Telerik team
 answered on 15 Jan 2013
2 answers
169 views
Hi,

 I have got a radgrid and i am trying to export the grid to excel as ExcelML format.But i have a template column for which the data is biniding from radgrid item data bound event.While exporting i am not getting this template column. I have used he following code to export

rdtg.ExportSettings.IgnorePaging = true;
                rdtg.ExportSettings.FileName = "List";
                rdtg.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
                rdtg.ExportSettings.ExportOnlyData = true;
                rdtg.ExportSettings.OpenInNewWindow = true;                
                rdtg.MasterTableView.ExportToExcel();

How can i export the this template column whose data is binding from item data bound event?
deepak
Top achievements
Rank 2
 answered on 15 Jan 2013
10 answers
174 views
How to set the button inside the rotator?
Slav
Telerik team
 answered on 15 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?