Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
I have a RadComboBox that inside a RadRotatorItem that when I change the selected item through server side code, it does not reflect on the page.  On page load, I try changing the selected item using RadComboItem.SelectedIndex = 3 or RadComboItem.Items[3].Selected = true; but neither work.  Here is my code:

ASPX:
<telerik:RadComboBox ID="cmbReminder_1" MarkFirstMatch="True" runat="server" Height="190px"
                                                    Width="100px" Skin="Default" AutoPostBack="False" HighlightTemplatedItems="True"
                                                    ShowToggleImage="True" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1">
                                                    <ItemTemplate>
                                                        <table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 10px; font-size: 11px;"
                                                            width="60px">
                                                            <tr>
                                                                <td>
                                                                    <img src='/Images/<%# DataBinder.Eval(Container, "Attributes['ImagePath']") %>' alt="" />
                                                                </td>
                                                                <td>
                                                                    <%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <Items>
                                                        <telerik:RadComboBoxItem ImagePath="EmailIcon_32x32p.png" DisplayName="Email" Text="Email" Value="1">
                                                        </telerik:RadComboBoxItem>
                                                        <telerik:RadComboBoxItem ImagePath="TextIcon_32x32p.png" DisplayName="SMS" Text="SMS" Value="2">
                                                        </telerik:RadComboBoxItem>
                                                        <telerik:RadComboBoxItem ImagePath="PhoneIcon_32x32p.png" DisplayName="Phone" Value="3"
                                                            Text="Phone"></telerik:RadComboBoxItem>
                                                         
                                                    </Items>
                                                </telerik:RadComboBox>

Code behind:
RadRotatorItem step3Item = (RadRotatorItem)this.RadRotatorHorizontal.Controls[2];
RadComboBox cmbTiming_2 = (RadComboBox)step3Item.FindControl("cmbTiming_2");

I am getting the correct control because when I step through the code, I examine the cmbTiming_2 and it contains the correct items.
Any help is appreciated
Helen
Telerik team
 answered on 16 Jul 2010
1 answer
109 views
I have an error retrieving the selected radcombobox item (clientside). Why doen't work? I receive error "Error: Object doesn't support this property or method"

http://www.telerik.com/help/aspnet-ajax/combo_clientsideradcombobox.html

This is my test page:

<script type="text/javascript">
        function getValue() {
            var combo = <%=RadComboBox1.ClientID %>; 
  
            alert('1');
              
            var sel = combo.get_selectedItem();
              
        }  
    </script>
    <telerik:RadComboBox ID="RadComboBox1" runat="server">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" />
            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" />
            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" Value="RadComboBoxItem3" />
        </Items>
    </telerik:RadComboBox>
    <input id="Button1" type="button" value="button" onclick="getValue()" />
Kalina
Telerik team
 answered on 16 Jul 2010
3 answers
118 views
Hi All:

I have another post, per setting focus on a combo-box:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/client-side-focus-on-radcombobox.aspx
Either solution works in IE8 under Visual Studio, but once deployed to my development website, then it stops working.
My users need IE, because of SQL Server Reporting Services printing features only available with IE. 
So what is happening with IE8?

Phil
Simon
Telerik team
 answered on 16 Jul 2010
1 answer
104 views
I have an image with alt and title properties which cause a tooltip to appear when hovered. When the user right-clicks on the image, the context menu appears (I manually make the context menu appear via JavaScript), but the tooltip doesn't dissapear until the user moves over the menu items. Is this a z-order issue? Do I need to change the z-order of the context menu to appear above the tooltips? I am not talking about the Telerik tooltips and I would rather not use them. I would like to continue to use the browser-provided tooltips.
Helen
Telerik team
 answered on 16 Jul 2010
10 answers
175 views
Are there any know problems with the lasted version of Telerik and IE6. We are getting a 2-3 calls per day from users that say they enter all numbers in a masked phone field and it still says it is invalid. No matter what they do, it will not accept the input. We had one say they saw the page had an error (the bottom of the screen). We do not have IE6 in our office, but due to the number of calls, that seems to be the common thread. We cannot recreate on IE8.

Any suggestions???

Thanks,
Susan
Matthew Timbs
Top achievements
Rank 1
 answered on 16 Jul 2010
4 answers
637 views
I know

rg.SelectedItems[0].OwnerTableView.DataKeyValues[rgScheduleList.SelectedItems[0].ItemIndex][

"SCHEDULE_ID"]

 

 will get the value for the datakey on the grid, how about none data key item text? like name field on the grid?

Thanks!
JJ
Top achievements
Rank 1
 answered on 16 Jul 2010
2 answers
185 views
Hello,

I'm having a problem with padding for one of my RadComboBoxes.  I have a custom skin that is embedded in a .dll.  I have 3 RadComboBoxes in total.  Two don't have an ItemTemplate these are functioning correctly.  The one that does use an ItemTemplate is having a problem with the bottom border (see attachment).  It seems that the problem is created when I set the background color of the ComboBox in my PreRender event.  The problem only occurs in Firefox 3.6.* browsers.  IE (all versions), Chrome and Safari have no problem rendering the ComboBox correctly. 

We're using RadControls for ASP.NET AJAX Q3 2009 SP1

My cboProblemCombo_PreRender event (below).

protected void cboProblemCombo_PreRender(object sender, EventArgs evt)
{
   cboProblemCombo.BackColor = System.Color.Blue;          
}


Using Firebug I was able to find the css that was causing the problem (below).

.RadComboBox .rcbInputCell .rcbInput {
background:none repeat scroll 0 0 transparent;
border:0 none;
outline:0 none;
padding:2px 0 1px;
vertical-align:middle;
width:100%;
}

After adjusting the padding directly in Firebug by setting the padding: 0 the ComboBox rendered correctly with the bottom border showing up.  I've attempted to modify the custom skin css to correct the padding but it gets overridden by the above class.  In Firebug, I can see where my custom css is being scratched/crossed out.

I've attempted using the EnableEmbeddedBaseStylesheet="false" property on the ComboBox as well as attempting to override the base (default) stylesheet.

Any ideas?

Attached are snapshots of the problem and the desired look.

Thanks for the Help,
Allen
Allen Smothers
Top achievements
Rank 2
 answered on 16 Jul 2010
5 answers
118 views
I am not sure how to add a background image to a legend dynamically.  But I tried to the following without success:

        protected void rcOvernightByHHour_PrePaint(object sender, EventArgs e)
        {
            foreach (Telerik.Charting.LabelItem legend in rcOvernightByHHour.Legend.Items)
            {
                legend.Appearance.FillStyle.FillSettings.BackgroundImage = "C:\\images\\networks\\" + legend.Name + ".jpeg";

            }
        }



Ves
Telerik team
 answered on 16 Jul 2010
2 answers
506 views
Hi,

I am looking for a component that allows to edit XML files, if possible, with syntax highlight.
Can RadEditor do this job ?

Thanks
Cedric
Top achievements
Rank 1
 answered on 16 Jul 2010
7 answers
166 views

My RadGrid is setup to perform bulk edits, and that is all working well.  So this works great:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) {

 

 

if (e.CommandName == "UpdateAll") {

 

    SaveTableData(e);

}

I'm preforming the Update/Insert like this:
foreach (GridEditableItem editedItem in RadGrid1.EditItems) {

 

 

    Hashtable newValues = new Hashtable();

 

 

    //The GridTableView will fill the values from all editable columns in the hash

 

 

 

    e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
}

 

 

 

However, when i add Paging to the mix, then the updates/inserts of the data are lost.  That is, if the user enters in all their data, and then forgets to Save their data and instead moves to the next page of the bulk edit table, then the data they entered is lost.

So I aded this function to try to fix that:
protected void RadGrid1_PageIndexChanged(object source, GridCommandEventArgs e) {

 

    SaveTableData(e);

}
But this 'e' does not have the user's new data that they entered in.
Why does the 'e' not have the new values?

jon
Top achievements
Rank 1
 answered on 16 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?