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

I might be missing a trick here but I simply want to get a reference to a RadComboBox which is sitting on a SharePoint application page.

If my RadComboBox has an ID of lstCountry then I can select it (?) using;

var brandDropDown = $("select[id$='lstCountry']");

However none of the methods I'd expect to see are present, so the following attempt at adding items doesn't work (method not supported)

   var comboItem = new Telerik.Web.UI.RadComboBoxItem();
   comboItem.set_text(unit.Brand.Name);
   brandDropDown.Items.Add(comboItem); OR
   brandDropDown.get_items().add(comboItem)

I'm pretty sure the JQuery selector is not getting the correct object from the DOM - can anyone help me out please ?

Thanks,

MDM
Kalina
Telerik team
 answered on 10 Aug 2012
5 answers
814 views
Hi,

Is it posible to display diffrent tooltip on whole grid and the diffrent ToolTip on GridButtonColumn. When i try to assign as below, even if i point on the Brid button column, it only displays the grid toolip.

<telerik:RadGrid ID="rgTest" runat="server" AllowAutomaticInserts="false" AutoGenerateColumns="False"
    Skin="Outlook" Height="100%" Width="90%" Culture="en-GB" GridLines="None" CellSpacing="0"
    ShowHeader="False" OnDeleteCommand="rdTest_Delete" ToolTip="<%$Resources: , Grid_tooltip%>" >
<MasterTableView AllowAutomaticInserts="false" CommandItemDisplay="None"         
        CommandItemSettings-ShowRefreshButton="False" DataKeyNames="Id" NoMasterRecordsText=""
        ViewStateMode="Enabled" GridLines="None" EditMode="InPlace" ShowHeadersWhenNoRecords="False">                   
        <Columns>   
            <telerik:GridButtonColumn UniqueName="DeleteCommandColumn" ButtonType="ImageButton"
                CommandName="Delete" ImageUrl="~/Graphics/Remove.png" Text="<%$Resources: , Delete_tooltip%>" HeaderStyle-Width="5%">
                <HeaderStyle Width="5%"></HeaderStyle>
            </telerik:GridButtonColumn>
        </Columns>        
    </MasterTableView>
   </telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Aug 2012
1 answer
40 views
I managed to databind using below technique.And using the objectDataSource updateMethod for updating these values.
But when updating the new values showing null. what should I do?

 

 

<asp:FormView ID="SingleUser" runat="server" DataKeyNames="UserId"

 DataSourceID="ObjectDataSource1" Width="750px">

 <EditItemTemplate>

 <telerik:RadPanelBar runat="server" ID="RulePanelBar" ExpandMode="MultipleExpandedItems"

 Width="740px" Skin="Metro">

 <Items>

 <telerik:RadPanelItem Expanded="True" Text="Step 1: Basic Information" runat="server"

 Selected="true">

 <ItemTemplate>

 <table cellpadding="0" cellspacing="0" border="0" width="100%">

 <tr>

 <td>

 <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="txtFirstName" >First Name:</asp:Label>

 <asp:TextBox ID="txtUserID" runat="server" Text='<%#DataBinder.Eval(SingleUser.DataItem,"UserId")%>'

 Width="2px" Visible="False"></asp:TextBox>

 <asp:TextBox CssClass="textEntry" ID="txtFirstName" title="Enter First Name Here"

 runat="server" Text='<%#DataBinder.Eval(SingleUser.DataItem,"FirstName")%>'></asp:TextBox>

  </td>

 <td>

 <asp:Label ID="MiddleNameLabel" runat="server" AssociatedControlID="txtMiddleName" >Middle Name:</asp:Label><br />

 <asp:TextBox CssClass="textEntry" ID="txtMiddleName" title="Enter Middle Name Here"

 runat="server" Text='<%# DataBinder.Eval(SingleUser.DataItem,"MiddleName") %>'></asp:TextBox>

 </td>

 <td>

 <asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="txtLastName" >Last Name:</asp:Label>

 <asp:TextBox CssClass="textEntry" ID="txtLastName" title="Enter Last Name Here" runat="server"

 Text='<%# DataBinder.Eval(SingleUser.DataItem,"LastName") %>'></asp:TextBox>

  </td>

 <td>

 </td>

 </tr>

 </table>
</ItemTemplate>

 </telerik:RadPanelItem>

 </Items>

 <CollapseAnimation Duration="100" Type="None" />

 <ExpandAnimation Duration="100" Type="None" />

 <ExpandAnimation Duration="100" Type="None" />

 <CollapseAnimation Duration="100" Type="None" />

 </telerik:RadPanelBar>

 


-kalpana

Cat Cheshire
Top achievements
Rank 1
 answered on 10 Aug 2012
1 answer
137 views
hi
i have a problem with nested view templates.
my problem is that in nested view grid the parent items also are shown in background!
i attach a file to show my problem.
what the problem is?
Eyup
Telerik team
 answered on 10 Aug 2012
1 answer
40 views
Hello,

I'm using RadDatePicker in IE9 and I have this issue:

- The calendar popup shows correctly but I can not click any thing. Sometimes when I insist many times over, there are a small areas that are recognized as a link for a few moment, but I can't click.

In other browsers works fine.

I'm using the release v.2012.2.724.40

<telerik:RadDatePicker ID="FechaFin" runat="server" Width="140px" AutoPostBack="true" DateInput-EmptyMessage="Fecha de Fin" MinDate="01/01/1000" MaxDate="01/01/3000" Skin="Sunset">
     <Calendar ID="Calendar1" runat="server">
           <SpecialDays>
                  <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
           </SpecialDays>
     </Calendar>
</telerik:RadDatePicker>

Can you help me, please?

Thanks!

Kostadin
Telerik team
 answered on 10 Aug 2012
1 answer
164 views
I have a CustomValidator validating a RadTextBox. The validator calls the js method "validateEmail". However, it gets called twice which is causing an issue.

It seems to be calling twice because there are 2 input controls. 1 hidden and 1 visible. How do I make it call only once?
Vasil
Telerik team
 answered on 10 Aug 2012
3 answers
71 views
Hi
I'm using RadControlsQ1 2007. I load nodes on demand using ServerSideCallBack mode. I want to enable drag and drop on nodes created dynamically.

Drag and drop is set to true; the event handler is present. Please note, drag and drop works fine for node created declaratively on .asp page. The problem is with the nodes I create on code beside.

You may even point me to an example as long as it shows drag and drop on dynamic nodes.

Kindest regards,
Thulani
Ivana
Telerik team
 answered on 10 Aug 2012
1 answer
67 views
Is it possible to have guided search filtering as seen on Newegg's site when searching? See attached image.
Tsvetina
Telerik team
 answered on 10 Aug 2012
12 answers
276 views
I recently upgraded to the Q2 2012 controls and immediately started having an issue with my search button.  User can enter a name to search.  Pressing ENTER will begin the search.  I initiate the click event when the ENTER key (keyCode=13) is pressed.  In the previous release this worked perfectly.  Now I must put in a delay because there is no value returned from the get_value() on the first attempt.  Can this be explained??  I have included code and jpg images showing the alert get_value() in sequence.  I keyed in "bee" into the text box and pressed ENTER.  The jpgs show the results.

I am putting in a slight delay to correct for the moment.  I would really like an explanation because now I worry I'm going to find other issues.
Thanks
John

<telerik:RadTextBox ID="txtSearch" runat="server" EmptyMessage="Enter First or Last Name..."
 Width="145px" Skin="WebBlue">
 <PasswordStrengthSettings IndicatorWidth="100px" />
 <ClientEvents OnKeyPress="onKeyPressed" />
</telerik:RadTextBox>

function onKeyPressed(sender, args) {
 var search = $find("<%= btnSearch.ClientID %>");
 //ENTER key pressed on Search
 if (args.get_keyCode() == 13) {
  alert('Value=' + sender.get_value() + '  Time=' + Date());
  alert('Value=' + sender.get_value() + '  Time=' + Date());
  search.click();
  args.set_cancel(true);
 }
}


 

 

 

 

 

 

Vasil
Telerik team
 answered on 10 Aug 2012
1 answer
297 views
(The title of this thread is not quite accurate.  The title should be: "A RadComboBox event SelectedIndexChanged fires when the control is programmatically checked with exactly one checkbox item")

I have a RadComboBox that contains CheckBox items.  I programmatically set certain items as Checked, if data exists in a database table.  Here is a segment of code:

Dim idr As Data.DataRow
Dim ids As Data.DataSet
  
Dim idt As Data.DataTable
Dim idtData As New Data.DataSet
  
Dim iParameters(0 To 0) As Data.SqlClient.SqlParameter
iParameters(0) = New Data.SqlClient.SqlParameter("@intBIDOID", CheckDBNull(CInt(BIDOID), enumObjectType.IntType))
  
ids = clsEPD_DATA.StoredGetDataset("spGetBidsSystemTypeNames", iParameters)
  
If ids.Tables(0).Rows.Count >= 1 Then
    idt = ids.Tables(0)
  
    For Each idr In idt.Rows
  
        ' "BUG" - when one and ONLY one item is check-marked, here, it causes the control to
        ' be in a state as if SelectedIndex has been changed (Telerik states this is expected).
        ' And, it stays that way, even though we set it here, and the user did NOT change anything.
        ' This is a "bug" in our scenario, where I must determine if the USER DID THE CHANGE,
        ' not the program.
  
        Dim cboSTObject As RadComboBoxItem = cboSystemType.FindItemByValue(CheckDBNull(idr("SYSTOID"), enumObjectType.IntType))
        cboSTObject.Checked = True
        cboSTObject.Dispose()
  
    Next
  
    ids.Dispose()
  
End If
  
'------------ end of System Type checkboxed combobox ----------------------

Here is the aspx snippet:

<telerik:RadComboBox ID="cboSystemType" runat="server" Width="200px"
EmptyMessage="Select the System Type (if any):"
Height="250px" DataTextField="ST_Name" DataValueField="SYSTOID"
DataSourceID="SqlDataSource5" TabIndex="8" CheckBoxes="True"
CausesValidation="False"></telerik:RadComboBox>
<br/>
<asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:EPD_DATAConnectionString %>"
SelectCommand="spGetBidSystemTypeNames" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>

What I would like to do is create code such that when my programmatic method changes the index (which appears only to occur when only ONE items is check-marked, but never when zero, or two or more, items are check-marked by the program), that I can somehow set the SelectedIndex code to ignore it, but when the USER MAKES A CHANGE, then I pay attention to it.  Should I create an internal variable "flag" in my program to somehow watch for when I make changes programmatically, but clear the flag?  This seems clunky.

Any guidance would be appreciated.  Thank you.
Kalina
Telerik team
 answered on 10 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?