Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
66 views
so I wired up a OnBlur client event on the only column in the Edit Mode not read-only
the function fires well and good and triggers an Ajax request which works then - nothing

    <telerik:RadCodeBlock ID="rcBlock" runat="server">
<script type="text/javascript">
<!--
function rntbQty_OnBlur(sender, eventArgs) {
    alert('clear edit item');
    var theMan = $find("<%= raManager.ClientID %>");
    theMan.ajaxRequest("CloseEdits");
}
-->
</script>
</telerik:RadCodeBlock>
 
<telerik:RadAjaxManager ID="raManager" OnAjaxRequest="raManager_AjaxRequest" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgEditOrder">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgEditOrder" />
                <telerik:AjaxUpdatedControl ControlID="rtbStart1" />
                <telerik:AjaxUpdatedControl ControlID="rtbEnd1" />
                <telerik:AjaxUpdatedControl ControlID="rtbStart2" />
                <telerik:AjaxUpdatedControl ControlID="rtbEnd2" />
                <telerik:AjaxUpdatedControl ControlID="rtbStart3" />
                <telerik:AjaxUpdatedControl ControlID="rtbEnd3" />
                <telerik:AjaxUpdatedControl ControlID="txtStoreHidden" />
                <telerik:AjaxUpdatedControl ControlID="txtChain" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
the column
<telerik:GridTemplateColumn UniqueName="Qty" HeaderText="Cases" DataField="Qty" DataType="System.Int32" Aggregate="Sum" >
    <ItemTemplate>
        <asp:Label ID="lblQty" Text='<%# Bind("Qty") %>' Width="32px" runat="server" />
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadNumericTextBox ID="rntbQty" DBValue='<%# Eval("Qty") %>' OnTextChanged="rntbQty_TextChanged" MinValue="0" MaxValue="99999" MaxLength="5" AutoPostBack="True" Width="32px" runat="server">                    
            <NumberFormat DecimalDigits="0" GroupSeparator="" />
            <ClientEvents OnBlur="rntbQty_OnBlur" />
        </telerik:RadNumericTextBox>
    </EditItemTemplate>
    <HeaderStyle Width="32px" />
</telerik:GridTemplateColumn>

protected void raManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    foreach (GridItem gItem in rgEditOrder.EditItems)
    {
        if (gItem is GridEditableItem)
        {
            GridEditableItem geItem = (GridEditableItem)gItem;
            geItem.Edit = false;
        
    }
    rgEditOrder.Rebind();
}
why won't it work?
Iana Tsolova
Telerik team
 answered on 24 Jan 2012
1 answer
416 views
Hi,

I am using radwindow. i need to pass value with navigate url.

my code is

 <telerik:RadWindow ID="radPropertyInspector" runat="server" Skin="Default" Modal="true" Behaviors="Default" Height="300px" Width="400px" ReloadOnShow="true" OnClientShow="OnClientshow"
            OnClientClose="OnClientClose" NavigateUrl="NZFPropertyInspector.aspx?docId={}">
            </telerik:RadWindow>

but i have the query string value with in hidden field.

How to pass the value.

Thanks,
Uma


Princy
Top achievements
Rank 2
 answered on 24 Jan 2012
1 answer
244 views
I needed to be able to trim leading & trailing spaces that may have been inadvertently entered by the user as part of their search criteria. I tried to find documentation on this to no avail. If there's a better way to do it, please let me know. 

Until then, this is what I did...
I used a separate button to execute the search. The onclick of that button fires this method:

   protected void FilterData(object sender, EventArgs e)
    {
        LoopThruFilterControls(rfPortfolios.Controls);
        rfPortfolios.FireApplyCommand();
    }



And LoopThruFilterControls looks like this:
    private void LoopThruFilterControls(ControlCollection cc)
     {
        for (int i = 0; i < cc.Count; i++)
        {
string controlType = cc[i].GetType().Name;
if(controlType.Equals("TextBox", StringComparison.CurrentCultureIgnoreCase))
{
TextBox tmp = (TextBox)cc[i];
                ((TextBox)cc[i]).Text = tmp.Text.Trim();
                }
                LoopThruFilterControls(cc[i].Controls);
        }
    }
Princy
Top achievements
Rank 2
 answered on 24 Jan 2012
1 answer
145 views
Hi, how do I get an item count for a treeview folder or node? I would like the item count to appear in parenthesis () next to the folder or node.

Thanks
Gary
Princy
Top achievements
Rank 2
 answered on 24 Jan 2012
4 answers
144 views
Hi,
m new user of telerik i want to change the behaviour of Scheduler Appointment Click. on appointment click i want to open a RadWindow having information of that appointment and the resource detail by joining other tables from database..
Plz reply me how to achive that behaviour by using C#
Shinu
Top achievements
Rank 2
 answered on 24 Jan 2012
1 answer
30 views
Is there a way to to use a GridButtonColumn to display an image with text across it?  For example, I might display an Employee's picture with their name (as text) across the picture.

Thanks,
Carl.
Shinu
Top achievements
Rank 2
 answered on 24 Jan 2012
1 answer
72 views
Hello,

I have a issue I am using multi uploader and its work fine in all browsers but there is a problem its not showing progress bar in IE8 while it showing in chrome.

could you please give me some hints for this.

Princy
Top achievements
Rank 2
 answered on 24 Jan 2012
5 answers
160 views
I have a page with agreement control, from that page I open a RadWindow with control to create or edit tenant details.
Tenant control contain antoher RadWindow to edit adress details (as on attahed picture)
How can I make RadWindow with address control to be above the tenant control?
piotre6
Top achievements
Rank 1
 answered on 23 Jan 2012
1 answer
436 views
I have a RadButton with ButtonType=ToggleButton and ToggleType=CheckBox with an associated OnCheckedChanged callback.  My problem is that the callback only fires on the 1st, 4th, 7th, etc. time I click the checkbox.  I would like the callback to fire every time I toggle the check box.  Does anyone know why the callback does not fire every time the checkbox is toggled?  

Note: If I change focus after toggling the checkbox by clicking on another server control, the callback does fire the next time I toggle it even if it's just the 2nd time I toggle it.

Here's my aspx code:
<asp:UpdatePanel ID="UpdatePanel_System" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true" EnableViewState="True">
  <div>
    <telerik:RadButton ID="displaySystemAnnouncementsCB" runat="server" Text="Display system announcements to all users at the top of the page"
        ToggleType="CheckBox" OnCheckedChanged="displaySystemAnnouncementsCBCB" ButtonType="ToggleButton">
    </telerik:RadButton>
  </div>
</asp:UpdatePanel>


Here's my callback function:
protected void displaySystemAnnouncementsCBCB(object sender, EventArgs e)
{
    RadButton rb = (RadButton)sender;
    if (rb.Checked)
    {
        configuration.AppSettings.Settings["displaySystemAnnouncements"].Value = "1";
    }
    else
    {
        configuration.AppSettings.Settings["displaySystemAnnouncements"].Value = "0";
    }
    configuration.Save();
}
Mike
Top achievements
Rank 1
 answered on 23 Jan 2012
0 answers
138 views
I have a RadListView that has a detail table.  To see it you click the expand/collapse button.  My question is what is the code to expand or collapse them all with one click.  I tried copying the expamples for TreeVeiws but it did not work.

Thank you for your help.
David Copp
Top achievements
Rank 1
 asked on 23 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?