Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hello,

Currently we are experiencing an issue where the radmenu will lose the last rad menu item.  It is coming off of a treeviewnode and sometimes when the treeview is refreshed the item comes back.  Then it can be refreshed again and once again disappear.  It also seems to consistently remove the last item at every context menu on every level of the tree view when this issue happens.  Here is the code we use to build the radmenu.  Most of the time the item contains the word "Rename".  Are there any protected words for a radmenu?

**** BUILDING XML STRING *******************************

 

Dim sb As New StringBuilder

 

sb.Append(

"<Menu><Group Flow=""Vertical"">")

 

 

sb.Append("<Item Text=""Map Vehicle"" Value=""MapVehicle"" TextAlign=""Left""></Item><Item Text=""Map History ..."" Value=""MapHistory"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Map Nearby ..."" Value=""MapNearby"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Watch Live"" Value= ""WatchVehicle"" TextAlign=""Left""></Item>")

 

sb.Append(

"<Item Text=""Rename Vehicle"" Value=""RenameVehicle"" TextAlign=""Left""></Item>")

 

sb.Append(

"</Group></Menu>")

 

 


Return
sb.ToString()
**********************************************************************

**** BIND TO RADMENU ***************************************

 

RadMenu4.LoadXml(XML FROM RETURNED FROM ABOVE)

 

**********************************************************************

***** CODE ON TREEVIEW ***********************************

 

 

<ContextMenus>

 

 

 

 

 

<telerik:RadTreeViewContextMenu ID="RadMenu4" runat="server" EnableEmbeddedSkins="false" Skin="Custom">

 

 

 

 

 

<CollapseAnimation duration="200" type="OutQuint" />

 

 

 

 

 

</telerik:RadTreeViewContextMenu>
</ContextMenus>

***********************************************************************

 

Yana
Telerik team
 answered on 18 Oct 2010
1 answer
122 views
I have a tab strip with three tabs and the tab headers display properly. However, nothing happened when I click on the tabs (other than a slight UI change on the first click). I tried programmatically setting the TabStrip to use Tab 1 instead of zero, and this did change the tab visually (highlighted the second tab), but the content shown was still that of the first tab.

The tab contents for each of these are user controls (the tab itself is within a Grid - EditTemplate). The first tab's content and functionality were working fine.

(A short while later...)

By trying the tabs with a standard label control instead of the user controls I defined, I was able to isolate the issue as a UserControl issue. I finally isolated the issue to be associated with the RadInputManager and the Targeted controls for validation (required fields). If I comment out the TargetedControls section, then the tab/user control works properly, but leaving any of the TargetInput entries (I tried to isolate this to a particular line, but any entry causes the problem) results in the tab not switching (visually) and the user control content not being displayed.

Here's the User Control markup (with TargetInput entries):

<%@ Control Language="vb" AutoEventWireup="true" CodeBehind="AddressInfo.ascx.vb" Inherits="UserMaintenance.AddressInfo" %>
  
<div style="width: auto;">
    <telerik:RadInputManager id="RadInputManager1" runat="server">
        <telerik:TextBoxSetting ErrorMessage="Required field." Validation-IsRequired="True"
            EmptyMessage="Please type here." Validation-ValidateOnEvent="Submit">
            <TargetControls>
                <telerik:TargetInput ControlID="txtStreet" />
                <telerik:TargetInput ControlID="txtCity" />
                <telerik:TargetInput ControlID="txtState" />
                <telerik:TargetInput ControlID="txtZip" />
                <telerik:TargetInput ControlID="txtMobile" />
                <telerik:TargetInput ControlID="txtPhone" />
                <telerik:TargetInput ControlID="txtFax" />
            </TargetControls>
            <Validation IsRequired="True"></Validation>
        </telerik:TextBoxSetting>
    </telerik:RadInputManager>
    <div class="row" style="float: right;">
        <asp:Label ID="lblResult" runat="server" Text="No Comment" Visible="False" Font-Bold="True"
            Font-Size="11pt"></asp:Label>
    </div>
    <div style="float: left; width: 50%;">
        <table cellspacing="0" cellpadding="3" border="0" summary="Edit Table" class="Normal">
            <tr>
                <td align="right">
                    <asp:Label ID="lblStreet" runat="server" Text="Street" />
                </td>
                <td>
                    <asp:TextBox ID="txtStreet" runat="server" AutoCompleteType="HomeStreetAddress" TabIndex="1"
                        Text='<%# DataBinder.Eval( Container, "DataItem.Street" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblCity" runat="server" Text="City" />
                </td>
                <td>
                    <asp:TextBox ID="txtCity" runat="server" AutoCompleteType="HomeCity" TabIndex="2"
                        Text='<%# DataBinder.Eval( Container, "DataItem.City" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblState" runat="server" Text="State" />
                </td>
                <td>
                    <asp:TextBox ID="txtState" runat="server" AutoCompleteType="HomeState" TabIndex="3"
                        Text='<%# DataBinder.Eval( Container, "DataItem.State" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblZip" runat="server" Text="Zip" />
                </td>
                <td>
                    <asp:TextBox ID="txtZip" runat="server" AutoCompleteType="HomeZipCode" TabIndex="4"
                        Text='<%# DataBinder.Eval( Container, "DataItem.Zip" ) %>' />
                </td>
            </tr>
        </table>
    </div>
    <div style="float: left; width: 50%;">
        <table class="Normal">
            <tr>
                <td align="right">
                    <asp:Label ID="lblMobile" runat="server" Text="Mobile" />
                </td>
                <td>
                    <asp:TextBox ID="txtMobile" runat="server" AutoCompleteType="Cellular" TabIndex="5"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Mobile" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPhone" runat="server" Text="Phone" />
                </td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" AutoCompleteType="BusinessPhone" TabIndex="6"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Phone" ) %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblFax" runat="server" Text="Fax" />
                </td>
                <td>
                    <asp:TextBox ID="txtFax" runat="server" AutoCompleteType="BusinessFax" TabIndex="7"
                        Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Fax" ) %>' />
                </td>
            </tr>
            <tr></tr>
        </table>
    </div>
</div>
<!-- Empty row to keep tops of columns aligned. -->
<div class="row">
    <span class="field"></span>
</div>

I also tried changing the ID of the RadInputManager, since I was using the same ID for each of these (one per tab), but this made no difference. Lastly, I tried moving these into another user control (since the content for several tabs is persisted in the same table), but again, no luck.

Has anyone else run into this strange issue and/or know of a fix?

Thanks in advance,

Jon
Yana
Telerik team
 answered on 18 Oct 2010
1 answer
54 views
Hi,
i've a issue in resizing combobox height through creating a new skin.
I followed this article: http://www.telerik.com/help/aspnet-ajax/combobox-tutorial-change-height-input-element.html but without success.

My goal is to resize the height at 16px.
So I changed the rcbSprite.png
I created a new css for the new skin (from a basic skin, replacing 22px (and multiple) with 16px (and multiple).
I applied the skin on the control...

but no way to make it work good.

I attach the wrong situation and the rcbSprite file.

Hoping in an answer, bye

Leo
Yana
Telerik team
 answered on 18 Oct 2010
2 answers
147 views
Hey everyone,

I am using a RadCombBox on my page that i've binded to a database column.Now,i want it to show an initial value at page_load like select your Name.i am doing this--
if (!IsPostBack) 
{
    RadComboBox1.Items.Insert(0, new RadComboBoxItem("Select Your Name", "0"));
     RadComboBox1.SelectedIndex = 0;
}
not workin,am i missing something?..plz help

Thanks
Amit
Princy
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
110 views
hi
i am using RadDateInput for get persian calendar dates,
but this control dosn't accept dates like (1390/06/31) and change it to (1390/06/30).
how i can disable this validation?

tnx

Daniel
Telerik team
 answered on 18 Oct 2010
1 answer
92 views
Dear Sir

How to set EmptyMessage of Combo through Client Side of a ComboBox.

Please Help Me

Thanks
Chandan kumar
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
46 views
I want to use the RadGrid but define the paging in another location on the page.

Can I use the built-in <asp:DataPager> control with the RadGrid? If YES, how?
Pavlina
Telerik team
 answered on 18 Oct 2010
1 answer
64 views
Good day!
I do everything like in this instruction (http://www.telerik.com/help/aspnet-ajax/localization-global-resources.html) to make ru-Ru translation of the grid.
I have the newest version of Telerik.
But grid is still having english description =(
What is wrong?
Pavlina
Telerik team
 answered on 18 Oct 2010
2 answers
160 views
Hello Telerik Team!

None of support ticket links are currently working giving HTTP 404, so let me ask here.

Before I moved to RadScriptManager, I got a number of embedded scripts loaded by the browser (I use IE 8). I have a number of assemblies that contain ScriptControls and Ajax extenders with embedded javascripts behind. i used to have these scripts listed under "Script Documents" tree node of Solution Explorer while debugging in Visual Studio, like WebResource.axd?....

So I was able to open any of these loaded scripts, set breakpoints, debug the code etc. Now these scripts I guess collected by RadScriptManager and not listed in Solution Explorer. I can use 'debugger' statement, but script source modification leads to recompiling the assembly, all dependent assemblies and the whole website, which is pretty much time consuming. In the other hand the resulting javascript is too large and VS is taking forever to load, intellisense and then debug it. Sometimes it just crashes and it's really painful to debug any scripts.

So the question... Is it possible somehow to turn off this feature of RadScriptManager to combine scripts all together? At least in debug mode it will be very helpful.

Till certain point I could switch back to ASP.NET ScriptManager, but now it's not possible, because I'm using cross-windows event handlers, which forces ScriptManager to throw.

Cheerz,
  Bob
Bob van der Zinch
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
73 views
Hi,

On which eventof the RAD Grid, we can get the value of the cell in the RAD grid?

Thank yoy

Bharat Singh
Marin
Telerik team
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?