Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
I have a RadGrid set as the AjaxUpdatedControl in the RadAjaxManager so that the filtering happens using ajax. There is a select command column with a select button that when it's clicked i want it to post back so that i can set a bunch of values for other controls on the page. Right now when the select button is clicked and I debug (step through in VS) on the server-side it looks like the controls are being set but the page isn't actually updated. I think this is because the select button is using a callback instead of postback.

Is there a way i can make the select button in the column cause a post back but still have the filtering use ajax?

in case it helps here's the code below.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableViewState="true" OnCommand="Ajax_Command">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="AccountGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AccountGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid ID="AccountGrid" runat="server" DataSourceID="AccountSqlDataSource" OnItemCommand="AccountGrid_ItemCommand"
    AutoGenerateColumns="false" AllowFilteringByColumn="True" AllowSorting="true" AllowPaging="True" PageSize="15" ShowFooter="True">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView>
        <Columns>
            <telerik:GridButtonColumn Text="Select" CommandName="Select" UniqueName="SelectColumn" ButtonType="LinkButton" AutoPostBackOnFilter="true"></telerik:GridButtonColumn>
            <telerik:GridNumericColumn  
                DataField="AccountID" UniqueName="AccountNumberColumn" HeaderText="Account #"
                FilterDelay="1000" AutoPostBackOnFilter="true" FilterControlWidth="60" ShowFilterIcon="false">
         </Columns>
    </MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 28 Apr 2011
3 answers
544 views
hi there...
can someone help me? am trying to find a way to hide one whole row  data field from a radgrid of aspecific Id inside  C#  programming code?

I don't want the user to see the row once he click on (delete) button , but in real the data still there in the database but the (active) field has been updated to = 0....

thanx..
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2011
2 answers
55 views
Hi,

please find below url
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/webmail/defaultcs.aspx

I am able to select multiple rows by selecting check box. But if i click on any row of the gird, that row will be selected and previously selected rows are unselected automatically.

Is their any way to prevent this, if user clicks on any row accidentally, his complete efforts ( already selected rows) will becomes waste.

Thanks,
Sumanth 
Sumanth
Top achievements
Rank 1
 answered on 28 Apr 2011
1 answer
51 views
I have a treeview (see attach file )
I want to save four nodes like circle.
I only save success node: Community. I cann't save three nodes: Development, Product, Operation.
Here is code to save:
List<RadTreeNode> checkedNodes = this.trvHierarchy.CheckedNodes.ToList<RadTreeNode>();
                 
List<string> lstJobNode = new List<string>();
 foreach (RadTreeNode node in checkedNodes)
 {
       if (string.IsNullOrEmpty(node.Value) == false
       && node.CheckState == TreeNodeCheckState.Checked)
        {
                 RadTreeNode parentNode = node.ParentNode;
//Only save parent. Don not save child if parent is checked.
                 if (parentNode == null || parentNode.CheckState != TreeNodeCheckState.Checked)
                                lstJobNode.Add(node.Value);
        }
}
Kate
Telerik team
 answered on 28 Apr 2011
8 answers
181 views
Hi there,

I am trying the SPRadListView Web part. I can bind a SP List without problems but for some reason I can't create a detail binding. I have the "+" button always gray out so I can't bind a child list.

What is the condition for enabling the button?



Marin
Telerik team
 answered on 28 Apr 2011
1 answer
89 views
I have a database fields that stores RTF strings. How do I bind it to a GridHTMLEditorColumn in RadGrid?

When I tried binding it directly, it shows RTF tags like "{rtf\..."

Thanks!
Daniel
Telerik team
 answered on 28 Apr 2011
2 answers
78 views
I just upgraded to Q1 2011 SP1 from Q1 2011 and found that my RadMaskedTextboxes for phone numbers, SSNs, etc. won't initially show their value when a page loads.  These are fields that are bound in a form view.  When you put the form view into edit mode, the values aren't visible until you click into and then out of the field.

I know the values are there because you can re-save and the data still is present.  It seems to be some kind of initialization issue or something where once the page is fully loaded, the values disappear.

Has anybody else noticed or seen this?
Martin
Telerik team
 answered on 28 Apr 2011
1 answer
99 views
I have an ASP.NET page that pops up a RadWindow with 3 small fields in it.  The user adds data, clicks save and once the data is saved, the window should close.  The Save is working, but if I try to say:

RadWindowManager1.Windows[0].Visible=False;

I get a javascript error:  Microsoft JScript runtime error: 'undefined' is null or not an object

I'm sure it's some type of timing issue with the postback/RadWindow, but I'm not sure how to fix it.  Below is my HTML for the RadWindow and a small portion of the code behind.

Thanks

mark

<telerik:RadWindowManager ID="RadWindowManager1" Behaviors="Close" 
runat="server"><BR>                                    
<Windows><BR>                                        
<telerik:RadWindow ID="radWinAddCredit" 
OpenerElementID="btnAddCreditForTalent" 
runat="server"<BR>                                            
Modal="true" AutoSize="true" Title="Add/Edit Credit" 
VisibleStatusbar="false"<BR>                                            
VisibleOnPageLoad="False" Skin="WebBlue" Height="300px" 
ShowContentDuringLoad="False"<BR>                                            
Width="375px" 
Behaviors="Close"><BR>                                            
<ContentTemplate><BR>                                                
<table class="form" 
width="100%"><BR>                                                    
<tr><BR>                                                        
<td class="formLabel-RightAlign" 
align="left"><BR>                                                            
Craft<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboCrafts" Skin="WebBlue" Width="205px" 
ZIndex="5000" 
MarkFirstMatch="true"<BR>                                                                
EmptyMessage="Type to Select..." 
runat="server"><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditCrafts" 
ControlToValidate="cboCrafts" 
runat="server"<BR>                                                                
ErrorMessage="Required" InitialValue="Type to Select..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Title<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboShowTitles" Skin="WebBlue" ZIndex="5000" 
Width="205px"<BR>                                                                
EnableAutomaticLoadOnDemand="true" EmptyMessage="Type to Search..." 
MarkFirstMatch="true"<BR>                                                                
runat="server" EnableLoadOnDemand="True" 
ItemsPerRequest="100"><BR>                                                                
<WebServiceSettings Method="GetShowTitles" 
Path="../Admin/Controls/AdminService.asmx" 
/><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditShows" 
ControlToValidate="cboShowTitles"<BR>                                                                
runat="server" ErrorMessage="Required" InitialValue="Type to Search..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Comment<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<asp:TextBox ID="txtCreditComment" CssClass="textFields" runat="server" 
Width="200px"></asp:TextBox><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td align="right" 
colspan="2"><BR>                                                            
<telerik:RadButton ID="btnSaveCredit" Skin="WebBlue" runat="server" 
Text="Save" 
ValidationGroup="CreditGroup"<BR>                                                                
OnClick="btnSaveCredit_Click"><BR>                                                            
</telerik:RadButton><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                
</table><BR>                                            
</ContentTemplate><BR>                                        
</telerik:RadWindow><BR>                                    
</Windows><BR>                                
</telerik:RadWindowManager>

Partial code behind for btnSave_Click method...

<P> if (isUpdate)<BR> {<BR>        
talentCredit.UpdateTalentCredit(credit);<BR> }<BR> else<BR> {<BR>                        <BR>        
talentCredit.CreateTalentCredit(credit);</P>
<P> }<BR> SiteMaster masterPage = 
(SiteMaster)Page.Master;<BR> masterPage.SetAlertMessage("Credit has been 
Saved.", "green");</P>
<P> loadCredits(talentId);<BR> radgridCredits.DataBind();</P>
<P> <BR> RadWindow rw = 
RadWindowManager1.Windows[0];<BR>{<BR>      
rw.Visible=false;<BR>}<BR></P>

NOTE:  This code is in a Try/Catch and DOES NOT error out there.  It just errors out in VS2010 with the Javascript Error listed above after RadWindow.Visible=false gets called.

Marin Bratanov
Telerik team
 answered on 28 Apr 2011
1 answer
112 views
Hi
I'm just trying controls in demo page
My browser is Google Chrome 4.0.206.1
It seems there is a problem in these pages: 
http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx
(there is no possibility to change any option from drop down lists , no mouse click responses)

or
http://demos.telerik.com/aspnet-ajax/upload/examples/async/validation/defaultcs.aspx
(there is a black box as upload control)

Are these my browser problems?
Thanks for your feedbacks
Bozhidar
Telerik team
 answered on 28 Apr 2011
1 answer
170 views
I am getting some odd behaviour of RadWindow which might be related to me having just updated vs2010 to SP1 and also patching to the latest Telerik distribution.

The following code works fine on my production server:

function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)         
    return oWindow;
}


But when run in debug mode I get a javascript error:

"uncaught type error: Cannot read property 'radwindow' of undefined"

I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere).  I should probably add that I'm using the radwindow in a masterpage/content scenario.

Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.
Georgi Tunev
Telerik team
 answered on 28 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?