Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
I have my grid's GroupsChanging event handler set up so when the use right-clicks and selects "group by" on a DateTime column, the grid groups instead on a hidden column which contains only the date. This works great.

But when I right-click on select "ungroup" on the same column, the GroupsChanging event never fires! I assume that is because that column is not actually grouped by, but it's problematic. How do I ungroup on this custom, hidden column? Perhaps there is a way I can intercept the ungroup some other way (maybe even client-side)?

FYI: If I display the date-only column, and ungroup on that, it works!
Jeanne
Top achievements
Rank 1
 answered on 21 Mar 2013
7 answers
475 views
Hi,

I have a RadGrid with a Master table (imagine that ;) ) and two levels of nested tables, so there are three levels in all. Each of the three tables has a GridTemplateColumn with asp:checkBox and some other stuff. When user checks the checkbox in Master table I would like to check the checkboxes of all its children (both levels).

I think the best way to go about it would be to get the GridDataItem in which the clicked checkbox resides, and then use get_nestedViews to get access to children etc. The only problem is I don't know how to get the GridDataItem in the first place.

Thank you for your help,
Andreja
Wbc
Top achievements
Rank 1
 answered on 20 Mar 2013
1 answer
123 views
I have a FileExplorer component I have placed inside a JQuery Collapsible Accordion (Width to Content and Auto Height).  When the component renders the sliding of the splitter produces odd width setting on the details grid on the right.  The following is the behavior I have identified.

1) The component appears to render and size properly to the fixed width and height I specify when the page initially loads. 
2) When the splitter is slide the details grid reduces in size from around 400 px to about 3 px. 

The results are similar to the screen shown in this thread:
http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/set-height-to-100-problem.aspx

I am using JQuery UI 1.10.1 components

What I have tried to resolve it
1) Played with the width settings (percentage and px)
2) Played with writing javascript to force the width of the details grid - don't really like this solution.

Thanks
Jeff Swisher
Vessy
Telerik team
 answered on 20 Mar 2013
1 answer
188 views
I have a grid setup so that I can select multiple rows using a GridClientSelectColumn... however, if I select several columns and post back to the server, when I access the selectedItems property of my radgrid, its empty.

Here is the definition of my grid and the server side code that I'm using to access the selected items.

<asp:Panel runat="server" ID="PPAContracts" >
    <br/>
    <telerik:RadComboBox ID="ppaPackages" DataSourceID="eSignPackagesListSql" DataTextField="epkgName"
                         runat="server" EmptyMessage="Choose a package" MarkFirstMatch="True"
                         EnableLoadOnDemand="True" DataValueField="epkgId"/>
 
    <telerik:RadButton ID="addPPAContract" runat="server" Text="Add Contract" OnClientClicked="CheckSelectedPackage()"
                       onclick="addPPAContractButton_Click" />
    <asp:Label runat="server" ID="errorMessage" ForeColor="Red" Text="" Visible="False"/>
    <br/>
    <br/>
    <telerik:RadGrid ID="ppaGrid" runat="server" AutoGenerateEditColumn="True"
        CellSpacing="0" GridLines="None" Skin="Hay" AllowMultiRowSelection="True" ShowFooter="True"
        OnNeedDataSource="ppaGrid_NeedDataSource" OnUpdateCommand="ppaGrid_UpdateCommand">
        <ClientSettings>
            <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"/>
            <Scrolling AllowScroll="True" ScrollHeight="600px" SaveScrollPosition="True" UseStaticHeaders="True"/>
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed" DataKeyNames="ppaId,idorg,oid" AllowFilteringByColumn="True" >
            <Columns>
                <telerik:GridClientSelectColumn Reorderable="False" Resizable="False" UniqueName="selectCol"
                                                HeaderStyle-Width="35px" ItemStyle-Width="35px"/>
                

here is the server side code...
protected void addPPAContractButton_Click(object sender, EventArgs e)
{
 
    var pkgId = Convert.ToInt32(ppaPackages.SelectedValue);
 
    if (ppaGrid.SelectedItems.Count > 0)
    {
        foreach (GridDataItem item in ppaGrid.SelectedItems)
        {
            var merged = item["mergedCb"].Text;
            var oid = Convert.ToInt32(item["oid"].Text);
            var did = Convert.ToInt32(item["did"].Text);
            var email = item["DocEmail"].Text;
            item.Selected = false;
        }
    }
 
}

I'm at a loss on why these selected items are not showing up.. any assistance would be greatly appreciated.
Barry
Top achievements
Rank 1
 answered on 20 Mar 2013
2 answers
163 views
Hi,

I have a RadGrid that sits inside an asp.net user control, with support for updating items via the grid.  This all works perfectly when I add the grid in markup, however, when I add the user control programmatically to a form, the item updated event does not fire, and I am therefore unable to persist any user changes from the grid.

There are no differences other than how the grid is initially declared.  Is this an asp.net issue related to user controls, or is there a known issue for RadGrids?

Thanks
Mathew
Top achievements
Rank 1
 answered on 20 Mar 2013
3 answers
305 views
Hello,

I use a RadComboBox in my web application. I need to disable it at a certain point using JavaScript. I referred to the Client-API on your site where you said this can be accomplished with "combo.disable()" statement.

I used this statement. However, I noticed that the combobox border has kind of disappeared; it's like it turned to a label with the selected field as text. I'd like to be able to get the combobox disabled using JavaScript but without loosing the "rcbDisabled" style from the component. I tried to disable it in the codebehind and in the markup and it showed the desired behavior. But I need to achieve the same result in JavaScript. Recommendations?

Screenshots attached to showcase: 
* Enabled: to show the enabled version [Skin = Windows7].
* JavaScriptDisabled: showing the weird result I got with JavaScript's "combo.disable()"
* Markup_CodebehindDisabled: showing the desired behavior I'd like to get but using JavaScript.

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 20 Mar 2013
1 answer
93 views
Telerik version: 2012.3.1308.40

Hopefully this question hasn't been answered already.  I searched but couldn't find anything.

Our RadMaskedTextBoxes no longer render with the _text on the inner <input element.  Like in this example:

<span style="width: 100px;" class="riSingle RadInput RadInput_Default" id="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber_wrapper">
<input type="text" value="(515) 555-5555" controlid="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber" class="riTextBox riEnabled" size="15" name="ctl00$cphMasterAjax$ucPhone$rlvEdit$ctrl0$rmtbDomesticPhoneNumber" id="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber">
<input type="hidden" name="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber_ClientState" id="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber_ClientState" autocomplete="off" value="{"enabled":true,"emptyMessage":"","validationText":"(515) 555-5555","valueAsString":"(515) 555-5555","valueWithPromptAndLiterals":"(515) 555-0001"}">
</span>

I'm sure that prior to updating to the latest version the ID of the control would have rendered as such:
id="ctl00_cphMasterAjax_ucPhone_rlvEdit_ctrl0_rmtbDomesticPhoneNumber_text"

Either of these scenarios are possible:
a) The product (Telerik) has changed
b) Someone working on our product (we are a large team) modified some global setting somewhere and has broken things.
c) I'm officially nuts.

We have a lot of JavaScript that is no longer working, so I don't think that the answer is C.  And because when I look at your online demos I see the same thing I think it goes back to A being the culprit.

Can anyone shed any light on this?

Thanks!
Thad
Thad
Top achievements
Rank 2
 answered on 20 Mar 2013
7 answers
102 views
When the smallest values of my series are 0 then the YAxis is not extended as expected even if it's not zero based and AutoScale set to true. To test, I changed the values that were at 0 to be -10 and then the YAxis is extended to make sure values are shown. I attached an image to show the bug.
Missing User
 answered on 20 Mar 2013
5 answers
287 views
Hello,

I have an image button on my page and I would like its image to match with the GridEditCommandColumn's one (which is based on the theme).

Is there any way to achieve this ?

Thanks !


Algo
Top achievements
Rank 1
 answered on 20 Mar 2013
0 answers
127 views
Update: Disregard this post, I've since fixed the issue.

I'm using a RadToolTipManager on my master page with AutoTooltipify="False". Even though the feature is turned off a RadToolTip is still being displayed for asp:ImageButton and asp:Button elements on the website. I'm using the RadToolTipManager in my code by dynamically adding RadTab items to the TargetControls collection of the RadToolTipManager instance on the master page.

 <telerik:RadToolTipManager ID="PortalNavigationRadToolTipManager" AutoTooltipify="False" RegisterWithScriptManager="True"
              Width="455" Height="130" HideEvent="LeaveTargetAndToolTip" EnableEmbeddedSkins="True" ContentScrolling="Default" 
              Position="BottomRight" RelativeTo="Mouse" OffsetY="20"  runat="server"></telerik:RadToolTipManager>
Eric
Top achievements
Rank 1
 asked on 20 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?