Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
317 views
Is it possible to have both edit modes from the grid working together? Here is the scenario. I have Radgrid which is opened in inplace editor with limited columns with edit button at the end. If user clicks the edit button, it should popup the edit form with more columns.

I have 2 radgrids currently doing these things separately in separate pages and I am trying to merge this functionality for users to have one page to edit. I am having trouble doing it. Any work around would be much appreciated? I was thinking of doing radwindow but then I cannot use RadGrid inbuilt insert/edit functionalities. 
Ganapathy
Top achievements
Rank 1
 answered on 03 Apr 2013
3 answers
198 views
I couldn't seem to find a configurable option for animation speed on those nice chart.
I think since much of their "power" as compared to regular Chart control comes from animation and interactivity, an animation speed parameter would be a nice addon (and maybe even simple to add).
Also I think that Kendo charts still looks better, in particular the PIE chart on Kendo is awesome, both the animation (kind of bouncing) and the graphic. The suggestion is to render it similar.

Thanks for your great support as always.
Danail Vasilev
Telerik team
 answered on 03 Apr 2013
3 answers
146 views
i have a combobox with checkboxes...

i need a javascript that will check/uncheck all items in the list....

here is my markup...

------------------------------------------------

 

<telerik:RadComboBox ID="cmbDeptDCVL" runat="server" AllowCustomText="false" HighlightTemplatedItems="True" Width="100"

 TabIndex="6" DropDownWidth="320px" >

 <HeaderTemplate>

 <table>

 <tr>

 <td width="20">

 <asp:CheckBox ID="chkAllDCVL" runat="server" ToolTip="Select/Deselect All" Text="" />

 </td>

 <td width="80"> Dept </td>

 <td width="220">Description </td>

 </tr>

 </table>

 </HeaderTemplate>

 <ItemTemplate>

 <table>

 <tr align="left">

 <td width="20">

 <asp:CheckBox runat="server" ID="chkSingleDCVL" Text="" />

 </td>

 <td width="80" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptId%> </td>

 <td width="220" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptShortDesc%> </td>

 </tr>

 </table>

 </ItemTemplate>

  

<CollapseAnimation Duration="200" Type="OutQuint" />

 </telerik:RadComboBox>

 -----------------

any help

Thanks

Hristo Valyavicharski
Telerik team
 answered on 03 Apr 2013
1 answer
149 views
Hi,

I have a requirement where I have to show multi column radcomboboxes in 4 columns of telerik Grid.Grid will have around 700 records with out pagination.I am using LoadOnDemand Combobox. But when I try to open a combobox , Items are not getting loaded to combobox.When grid records are around 30, Combobox loads the items normally.Please help me how to solve this issue.

Thanks
Himagiri
Hristo Valyavicharski
Telerik team
 answered on 03 Apr 2013
3 answers
144 views
I have a toolbar in a grid CommandItemTemplate. The toolbar contains a TemplateButton and the template holds a label, a combobox and a button. It appears that clicking anywhere within the template button causes the grid ItemCommand event to fire. For instance, clicking on the lable fires the GridCommand event. The CommandName is empty when these events are fired so it doesn't cause any obvious problems, but I am wondering if there is a way to prevent this behavior. I only want the ItemCOmmand event to be fired when the user clicks on the button in the template... not when they make a selection in the combo box or click anywhere in the Button Template.
Kostadin
Telerik team
 answered on 03 Apr 2013
1 answer
112 views
Using the Hay skin causes all axis labels to disappear. 

Forest:
<text fill="#3c4c30" style="font: 16px Arial,Helvetica,sans-serif" transform="translate(-6,6) rotate(-90,25.5,193.25)" fill-opacity="1" y="200" x="10">KGs</text>

Hay:
<text fill="WHITE" style="font: 16px Arial,Helvetica,sans-serif" transform="translate(-6,6) rotate(-90,25.5,193.25)" fill-opacity="1" y="200" x="10">KGs</text>

You can see this by going to your demo page and selecting the Hay skin.
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/overview/defaultvb.aspx

Any work around available?
Danail Vasilev
Telerik team
 answered on 03 Apr 2013
6 answers
194 views
I have the following problem when using compatibility mode in IE9 (so possibly an IE7 problem).

If you paste the following text into the HTML view:

<p>This<o:p></o:p></p>
<p>Is<o:p></o:p></p>
<p>Broken<o:p></o:p></p>

Click design and it looks as expected, however then click html and following html is created:

This<o:p _rdeditor_exists="1"></o:p>Is<o:p _rdeditor_exists="1"></o:p>Broken<o:p _rdeditor_exists="1"></o:p>

Which has removed all <p> tags. This doesn't happen in Chrome, Firefox, Opera, or IE9 in standard mode.

Thanks.
Rumen
Telerik team
 answered on 03 Apr 2013
1 answer
50 views
Hi All,

When i try to get value from "RadGrid.MasterTableView.FilterExpression.ToString()" then it show as below:

(iif(ToolRequestName == null, "", ToolRequestName).ToString().ToUpper().Contains("test".ToUpper()))

but i want as:

([ToolRequestName] like "%test%")

please can anybody solve it?
MK
Top achievements
Rank 1
 answered on 03 Apr 2013
1 answer
439 views
I am using a RadTreeViewContextMenu in a RadTreeView like so:

ASP.NET Code:

<telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientContextMenuShowing="ContextMenuShowing">
    <ContextMenus>
        <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenu1" CssClass="context-menu">
            <Items>                   
                <telerik:RadMenuItem Text="Item1" Value="1">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Item One" />
                        <%-- Some other controls here --%>
                    </ItemTemplate>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadTreeViewContextMenu>
    </ContextMenus>
</telerik:RadTreeView>


CSS Code:

.context-menu .rmText
{
    font-size: 0.9em;
}
 
.context-menu .rmDisabled
{
    color: #aaa !important;
    background-color: transparent !important;
}
 
.context-menu .rmItem:hover,
.context-menu .rmFirst:hover,
.context-menu .rmLast:hover
{
    cursor: default !important;
    background-color: #FF9900 !important;
}
 
.context-menu .rmSeparator:hover
{
    background-color: transparent !important;
}

When I disable a context menu item (using the OnClientContextMenuShowing event) I am having problems getting the menu item to not be highlighted on mouse over. However, I can get the text color to change (shown in css code as .context-menu .rmDisabled
). I've also tried adding the rmDisabled css class to the disabled li tag element in my JavaScript event handler for OnClientContextMenuShowing event like so:

function ContextMenuShowing(sender, args) {
    var menuItems = args.get_menu().get_items();
    var isNodeEnabled = treeNode.get_attributes().getAttribute("isEnabled");
    for (var i = 0; i < menuItems.get_count(); i++) {
        var menuItem = menuItems.getItem(i);
        menuItem.set_enabled(isNodeEnabled == "True");
        if (!menuItem.get_enabled()) {
            $(menuItem.get_element()).addClass("rmDisabled");
     }
    }
}

But this only works when I remove the !important declaration from the context-menu .rmItem:hover, .context-menu .rmFirst:hover and, .context-menu .rmLast:hover class definitions, which in turn causes the first and last items to not be highlighted on mouse over (hover). How can I get the menu item to not be highlighted on mouse over?
Boyan Dimitrov
Telerik team
 answered on 03 Apr 2013
2 answers
78 views
I have a form with a checkbox and a table, the table has several rows, each with a label and text box and 1 row has a dropdown list.  The table is hidden using 'style="display:none;"' on page load and the checkbox is checked.

When I uncheck the checkbox, a javascript function is called to change the display mode of the table to 'style="display:block;"' and it works just fine, EXCEPT, the dropdown list does not get styled by the FormDecorator.  If change it so that the table is visible on load, it gets styled normally.

The only way to get around this was to change my checkbox to call server side code on a postback to show/hide the table instead of javascript.  But I hate performing a postback and executing code server side for something that can be handled client side.

Changing "OnClick='ShowHideShipping()'" to "OnCheckedChanged='chkShippingInfo_CheckedChanged' AutoPostBack='true'" gets me around the issue but why should I do a server side postback for something that only affects the client?

Anyone else run into this?  Any ideas?

The markup:
<asp:CheckBox runat="server" ID="chkShippingInfo" Text="  Use my billing address (below)"  Checked="true" OnClick="ShowHideShipping()" />
<table id="tblShippingInfo" class="AddressInfoTable" runat="server" style="display: none;">
    <tr class="xmp-form-row">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_Name">
                <span class="red"> * </span>Name: </label>
        </td>
        <td align="left">
            <telerik:RadTextBox ID="txtShipTo_Name" runat="server"   />
        </td>
        <td align="left">
            <asp:RequiredFieldValidator ID="valRequired_ShipTo_Name" runat="server"
                Text="  * Required" Display="Dynamic" Enabled="false"
                ErrorMessage="The Ship To Name field is required." Font-Bold="True"
                ForeColor="Red" ControlToValidate="txtShipTo_Name"   />
        </td>
    </tr>
    <tr class="xmp-form-row">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_Address">
                <span class="red"> * </span>Address: </label>
        </td>
        <td align="left">
            <telerik:RadTextBox ID="txtShipTo_Address" runat="server"   />
        </td>
        <td align="left">
            <asp:RequiredFieldValidator ID="valRequired_ShipTo_Address" runat="server"
                Text ="  * Required" Display="Dynamic" Enabled="false"
                ErrorMessage="The Ship To Address field is required." Font-Bold="True"
                ForeColor="Red" ControlToValidate="txtShipTo_Address"   />
        </td>
    </tr>
    <tr class="xmp-form-row">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_City">
                <span class="red"> * </span>City: </label>
        </td>
        <td align="left">
            <telerik:RadTextBox ID="txtShipTo_City" runat="server"   />
        </td>
        <td align="left">
            <asp:RequiredFieldValidator ID="valRequired_ShipTo_City" runat="server" Display="Dynamic"
                Text ="  * Required" ErrorMessage="The Ship To City is required."
                Font-Bold="True" ForeColor="Red" ControlToValidate="txtShipTo_City" Enabled="false" />
        </td>
    </tr>
    <tr class="xmp-form-row" style="display: none;">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_Country">
                <span class="red"> * </span>Country: </label>
        </td>
        <td align="left">
            <asp:DropDownList ID="cmbShipTo_Country" runat="server" AutoPostBack="True" Width="160px" onselectedindexchanged="cmbShipTo_Country_SelectedIndexChanged">
                <asp:ListItem Text="US" Value="US" />
                <asp:ListItem Text="Other" Value="Other" />
            </asp:DropDownList>
        </td>
        <td align="left">
        </td>
    </tr>
    <tr class="xmp-form-row">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_State">
                <span class="red"> * </span>State/Prov.: </label>
        </td>
        <td align="left">
            <asp:DropDownList ID="cmbShipTo_State" runat="server" AutoPostBack="false" Width="160px" />
        </td>
        <td align="left">
            <asp:RequiredFieldValidator ID="valRequired_ShipTo_State" runat="server"
                Text ="  * Required" Display="Dynamic" Enabled="false"
                ErrorMessage="The Ship To State field is required." Font-Bold="True"
                ForeColor="Red" ControlToValidate="cmbShipTo_State"   />
        </td>
    </tr>
    <tr class="xmp-form-row">
        <td align="right" class="xmp-form-label-cell">
            <label class="xmp-form-label" id="lblShipTo_ZipCode">
                <span class="red"> * </span>Zip Code: </label>
        </td>
        <td align="left">
            <telerik:RadMaskedTextBox ID="txtShipTo_ZipCode" runat="server" Mask="#####" PromptChar="_" HideOnBlur="True" RequireCompleteText="True" ResetCaretOnFocus="True" />
        </td>
        <td align="left">
            <asp:RequiredFieldValidator ID="valRequired_ShipTo_Zip" runat="server"
                Text ="  * Required" Display="Dynamic" Enabled="false"
                ErrorMessage="The Ship To Zip Code field is required." Font-Bold="True"
                ForeColor="Red" ControlToValidate="txtShipTo_ZipCode"   />
        </td>
    </tr>
</table>

The javascript being used to show/hide the table:
var sShippingCheckBoxID = "<%=chkShippingInfo.ClientID %>";
var valShipNameID = "<%=valRequired_ShipTo_Name.ClientID %>";
var valShipAddressID = "<%=valRequired_ShipTo_Address.ClientID %>";
var valShipCityID = "<%=valRequired_ShipTo_City.ClientID %>";
var valShipStateID = "<%=valRequired_ShipTo_State.ClientID %>";
var valShipZipID = "<%=valRequired_ShipTo_Zip.ClientID %>";
var sShippingTableID = "<%=tblShippingInfo.ClientID %>";
  
/// <summary>
/// Hides/shows the shipping information area.
/// </summary>
function ShowHideShipping() {
    var tblShip = document.getElementById(sShippingTableID);
    var chkShip = document.getElementById(sShippingCheckBoxID);
    var valShipName = document.getElementById(valShipNameID);
    var valShipAddress = document.getElementById(valShipAddressID);
    var valShipCity = document.getElementById(valShipCityID);
    var valShipState = document.getElementById(valShipStateID);
    var valShipZip = document.getElementById(valShipZipID);
  
    var bShowShipping = false;
  
    if (chkShip != null)
        bShowShipping = !chkShip.checked;
  
     if (tblShip != null)
     {
    
if (bShowShipping)
            tblShip.style.display = "block";
  else
tblShip.style.display = "none";
    }
  
    if (valShipName != null)
        valShipName.Enabled = bShowShipping;
  
    if (valShipAddress != null)
        valShipAddress.Enabled = bShowShipping;
  
    if (valShipCity != null)
        valShipCity.Enabled = bShowShipping;
  
    if (valShipState != null)
        valShipState.Enabled = bShowShipping;
  
    if (valShipZip != null)
        valShipZip.Enabled = bShowShipping;
}

The "fix" - use post back instead of javascript:
protected void chkShippingInfo_CheckedChanged(object sender, EventArgs e)
{
    tblShippingInfo.Style["display"] = (chkShippingInfo.Checked ? "none" : "block");
 
    valRequired_ShipTo_Name.Enabled = !chkShippingInfo.Checked;
    valRequired_ShipTo_Address.Enabled = !chkShippingInfo.Checked;
    valRequired_ShipTo_City.Enabled = !chkShippingInfo.Checked;
    valRequired_ShipTo_State.Enabled = !chkShippingInfo.Checked;
    valRequired_ShipTo_Zip.Enabled = !chkShippingInfo.Checked;
}
J
Top achievements
Rank 1
 answered on 03 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?