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

On clicking a particular cell in a RadGrid, is it possible to fetch that cell value using client-side code?

Thanks,
Lovella.
Shinu
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
452 views
Hi,

I have a RadGrid with client side row selection and AllowMultiRowSelectionEnabled. How to display the number of rows selected from client-side code?

Thanks,
Lovella.
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
3 answers
125 views
Hi,

There is a RadGrid in one of my pages with filtering enabled. Can I modify the predefined Filter Text like "Starts With" and give a custom one?

Thankyou,
Lovella
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
20 answers
303 views
Just upgraded my project to Q1 2013 and now, several buttons have ceased to function when they worked just fine before the upgrade.  After reviewing this similar forum thread, I was able to fix one of the buttons by simply removing the ValidationGroup because I realized that there were no validation controls on the page, but you would think that without any validation controls, setting the ValidationGroup on the button would not have any effect.

In any case, another page that I have which does have validation controls has this problem and I am not sure how to fix it.

On the page, there is a control which nests a few other controls, all of which inherit from this base control class:
public class BaseControl : UserControl
{
    private string _ValidationGroup = null;
    [Browsable(true)]
    public string ValidationGroup
    {
        get
        {
            return _ValidationGroup;
        }
        set
        {
            _ValidationGroup = value;
            SetValidationGroup(this, _ValidationGroup);
        }
    }
    private void SetValidationGroup(Control ctrl, string validationGroup)
    {
        foreach (Control child in ctrl.Controls)
        {
            if (child is BaseValidator)
            {
                (child as BaseValidator).ValidationGroup = validationGroup;
            }
 
            if (child.HasControls() && child.Visible)
            {
                SetValidationGroup(child, validationGroup);
            }
        }
    }
}


The control definition on the page looks like this:
<controls:MyEntryControl runat="server" ID="TestEntryControl" ValidationGroup="MyValidationGroup" />
<div style="clear:both;width:750px;text-align:right;padding-top:1em;">
    <telerik:RadButton runat="server" ID="Save" Text="<%$ Resources:GlobalResources,Save %>" CausesValidation="true" ValidationGroup="MyValidationGroup" OnClick="Save_Click" />
    <telerik:RadButton runat="server" ID="Cancel" Text="<%$ Resources:GlobalResources,Cancel %>" OnClick="Cancel_Click" CausesValidation="false" />
</div>

An interesting point to note is that the PostBack does occur as the Page_Load event does get fired.  However, the Save_Click event does not fire and from what I can tell, the code skips immediately to the PreRender event of the page.  There are no errors on the page which I assume is why the postback did occur, but I see no reason that the button's click event would just stop firing, especially since it was definitely working immediately before upgrading my project.

I used the Telerik -> Rad Controls for ASP.NET AJAX -> Upgrade Wizard to upgrade my project after installing the new control sets.
I am running Visual Studio 2010 and my project is an ASP.NET Web Forms project with .NET Framework 4. 

Please let me know what can be done to resolve this issue ASAP.
BizData
Top achievements
Rank 1
 answered on 05 Apr 2013
46 answers
1.7K+ views
Hi All,

Please help me to do so...
I want to add multiple header rows at runtime in a Rad Grid. These header rows contain controls also...




Karrie
Top achievements
Rank 1
 answered on 04 Apr 2013
3 answers
136 views
I can see there are some problems with the validators but so far I haven't found exactly my scenario.
I've based my code on the example  http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx

I have a FormTemplate popup within a RadGrid.  On that template I have one RadAjaxPanel containing a RadComboBox and another RadAjaxPanel occupying a tab in a RadTabStrip.  The first tab is always shown.  The second is for displaying an ASCX that may or may not be shown.

When I select certain values of the combobox, its SelectedIndexChanged event loads and sets up an ASCX on the second tab.  Everything is working properly except that when I hit the submit button on the FormTemplate itself, the ASCX Required Field Validators never fire.  (Even though I've accessed and enabled them directly in the SelectedIndexChanged event.  I know they're there.)

I have my RadAjaxManager set up as follows:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />                  
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

Also it appears so far that although the control is loaded I cannot access it as usual in the RadGrid's InsertCommand e.item FindControl.

Suggestions?
Boris
Top achievements
Rank 1
 answered on 04 Apr 2013
4 answers
1.8K+ views
I have RadGrid with a add link. When click the add link it will pop up a RadWindow and load create.aspx page. When user click save button it will save data to DB and show successful information page. My question is how to refresh the RadGrid of parent page? My Code is as below:

Pop Up page:
 function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.radWindow;
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;
            return oWindow;
        }


        function refreshParent(info) {
            var oWindow = GetRadWindow();
            oWindow.BrowserWindow.refreshGrid(info);
        }

Parent Page:
 function refreshGrid(info) {
            $find("<%= RadAjaxManager.ClientID %>").ajaxRequest(info);
        }

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" OnAjaxRequest="RadAjaxManager_AjaxRequest">.....

In RadAjaxManager_AjaxRequest event, it will rebind the RadGrid.

According my debugging, the RadAjaxManager_AjaxRequest is fired and RadGrid is bound. But the UI still don't show the updated data. Also, The Modal of RadWindow is set as "true"
Waseem
Top achievements
Rank 1
 answered on 04 Apr 2013
0 answers
64 views
Hello,

I have a different question, we are showing the "Design" and "Html", the EditMode buttons for RadEditor. Toolbar is configured as 

Editor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.PageTop;

There can be several rad editor instances on one page, it is dynamic. It depends on the wish of user that how many they need. Point is that all the editor instances share the same toolbar instance, which is only shown when some editor is activated/focused.

Interesting thing is that when user adds a lot of editors we see the EditMode buttons will all editors, while we want to show these buttons in toolbar. 

Question is that can we move the EditMode buttons to toolbar? Is it possible!!!

Please give me some guideline. 
shadow
Top achievements
Rank 2
 asked on 04 Apr 2013
1 answer
61 views
2013.1.326.40
网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Zune 4.7; InfoPath.2)
时间戳: Wed, 3 Apr 2013 08:55:29 UTC


消息: 缺少标识符、字符串或数字
行: 8553
字符: 3
代码: 0
URI: http://localhost/hsw.xa.ui2012/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.7.123%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3azh-CN%3a44981e4a-f654-4c69-b806-cb922fc13d56%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.326.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3azh-CN%3ad7573cf1-71be-426b-a92a-40c020043c05%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a2003d0b8%3a1e771326%3aaa288e2d%3ae524c98b%3a7165f74%3a58366029%3a874f8ea2%3a19620875%3a39040b5c
Danail Vasilev
Telerik team
 answered on 04 Apr 2013
6 answers
105 views
Hi,

I have seen many topics about how to achieve this. However I am still struggling to get this done. I read that you have to create and add your controls in the ItemCreated event, and bind to it's data inside ItemDataBound. However, this event is never fired on postback, and the controls disappear.

Let's say I try to add a RadButton like below.

How can I keep it working on postback?

protected void grid_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem)
    {
        if (e.Item.DataItem != null)
        {
            int contractid = (e.Item.DataItem as Contract).ContractId;
            var records = GetRecords(contractid);
 
            foreach (var record in records)
            {
                var button = new RadButton();
                button.Text = contractid.ToString();
                button.Click += delegate
                {
                    button.Text = "fired!";
                };
 
                var phContract = (PlaceHolder)e.Item.FindControl("placeholder");
                phContract.Controls.Add(contract);
            }
        }
    }
}
ConsumentenClaim
Top achievements
Rank 1
 answered on 04 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?