Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views
Hi,

         We are trying to update one grid and user control by radbutton which is ajaxfied.Please find my code below.

Button :
=========

 

 

<telerik:RadButton ID="btnResumeSuspend" runat="server" OnClick="btnResumeSuspend_Click">

 

 

 

</telerik:RadButton>

 


User control :This control will be called and updated  in button btnResumeSuspend_Click event.
=====================================================================================

<

 

 

NISP:MessageControl ID="lblMessageUserControl" runat="server" EnableViewState="true" />

btnResumeSuspend_Click event:
================================

 

lblMessageUserControl.DisplayMessage(

 

false, "Test");

Ajax code:
=========

 

 

 

RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);

 

manager.AjaxSettings.AddAjaxSetting(manager, btnResumeSuspend);
manager.AjaxSettings.AddAjaxSetting(btnResumeSuspend, lblMessageUserControl);

Here , after button click event, the lblMessageUserControl is not updated and not showing the message.
Please reply as soon as early

Thanks,
Priya

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
4 answers
100 views
  Hi,
     I have a grid. Within the grid, I am using a usercontrol for an edit/insert form. In this form, there is a drop down that comes from yet another usercontrol. Inside this second usercontrol I have a radtooltip that I am using for the user to input a name.
   The problem is that when the radtooltip is called I get this javascript error message ... 
   this._popupelement is null or not an object. 
  The interesting thing is that this happens in IE7, but in FF, the radtooltip displays for a second or two, then disappears and the grid
suddenly gets scroll bars.
  Any advice on what I might need to look at ?
 thanks for your time.  
WombatEd
Top achievements
Rank 1
 answered on 19 Nov 2011
2 answers
135 views
I have a page that appears in a RadWindow.

The page contains a RadMultiPage control and one of the PageViews includes a RadAsyncUpload control.

Each time the page does an Ajax callback I'm seeing several calls to RadUploadProgressHandler.ashx.

Questions:
  1. Is that normal?
  2. Can I limit the number or requests?

In almost every case when I've been testing, I've not even had to both uploading anything or even visit the PageView that has the Upload control on it.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 18 Nov 2011
7 answers
123 views
I have a RadGrid that I'm using self-referencing hierarchy and row reordering.  I would like an example of how to trap whether a parent row is being dropped as a child of itself.

For tree view, I use something like:

if(sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destinationNode))
return;


Max McKinney
Top achievements
Rank 1
 answered on 18 Nov 2011
0 answers
88 views
Hi,

I am facing the following problem on RadComboBox. Scenario is as below:

1. We generate radcombobox within grid, other custom container models and independently.
2. In our earlier fix we used to have RadComboBox along with external call back page which is the streamer page and following is the definition:
RadComboBox m_combo = new RadComboBox();
m_combo.ID                      = string.Empty;
m_combo.SkinID                  = TEXT_SKIN_ID;
m_combo.EnableViewState         = false;
m_combo.ExternalCallBackPage    = "~/ComboBoxStreamerPage.aspx";


and in streamer page oninit event we have following code

RadComboBox comboBox = new RadComboBox();
            comboBox.ID = Request.QueryString["rcbServerID"];
            comboBox.EnableLoadOnDemand = true;
            comboBox.ShowMoreResultsBox = true;
            comboBox.EnableVirtualScrolling = true;
            comboBox.EnableItemCaching = true;

This was working fine unless we upgraded telerik and no longer using external call back page instead using a web service.

My problem is I can't give a static id to combo since it will give me same IDs exception if added on same page multiple times. I also can't give new GuidID because it is giving me some other problems.

Please suggest me what should be the RadComboBox ID instead of string.Empty because now there is no external call back page.


Thanks,
Ifthekhar

Mirza Ifthekhar
Top achievements
Rank 1
 asked on 18 Nov 2011
2 answers
102 views
Hi,

Is it possible to put the Checkboxes to the far right of node , at the end of the node, so each checkbox will be align with the others ?

Thank you

Carl Tremblay
Carl
Top achievements
Rank 1
 answered on 18 Nov 2011
1 answer
214 views
I have a table within a repeater. Sometimes within my table, the cells have extra space between them. It is very random. I have set table width, colgroup for the table, and colspan for each td. Most everything comes out correctly except for a few random cells that get pushed to the right showing blank space in the table. I am using the same code for different data, and sometimes it comes out fine, sometimes it adds the space. I have attached "tableinrepeater.png" that shows an example of this. The other files show a bit of code and style.
R
Top achievements
Rank 1
 answered on 18 Nov 2011
6 answers
590 views
Hi Gurus,

I have a requirement that ensures i bind the grid @ the client side. So I did that using webservice. I have a bunch of images & hyperlinks in the grid. So when I use the onRowDataBound event & display all the images & the hyperlinks (the hyperlink & image tag are put in the itemtemplate), it initially displays the grid in the attached manner. It then takes a 3-4 secs to load the images. Building the image url & the hyperlink url is done in the  onRowDataBound in JS. I know this is obviously slow. 

So i wanted to call the onRowDataBound using the JQuery in the document.ready & populate build all the URLs using JQuery which I think could be faster than the regular JS. I started doing this in the following way:

<script language="javascript" type="text/javascript">
 
            $telerik.$(document).ready(function() {
                alert("Document is ready");
                $('.rgMU').onRowDataBound(function rgMU_RowDataBound1());
            });
 
            function rgMU_RowDataBound1(e) {
                debugger;
                var row = e.row;
                var dataItem = e.dataItem;
                alert("IN the event");
            }
</script>

BUt for some reason, the event never fires up. So once the event fired up, how do I populate the URLs (the URL for each row is coming from the DB). So it should be part of "args.get_item().findElement("Img1URL");" but how do I bind this with the JQuery.

Can someone gimme an example?

Thanks
Bobbie

Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Nov 2011
2 answers
293 views
Hello,

I have a problem. I am trying to use ajax functionality inside RadNotification, but have an error
XmlHttpPanel Callback Loading error:
 Exception=Script control &#39;&#39; is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

Sample code:

<telerik:RadNotification ID="rnReminder" runat="server" KeepOnMouseOver="true" Width="500px" Skin="Windows7" LoadContentOn="TimeInterval" Animation="Fade" EnableRoundedCorners="true" EnableShadow="true" Title="Напоминание" OffsetX="-20" OffsetY="-20" TitleIcon="none" UpdateInterval="10000" OnClientUpdated="OnClientUpdated" AutoCloseDelay="5000" OnCallbackUpdate="ReminderOnCallbackUpdate">
            <ContentTemplate>
                <telerik:RadAjaxPanel runat="server">
                    Test
                    <telerik:RadButton ID="rbtnCancel" runat="server" Text="Cancel" />
                 </telerik:RadAjaxPanel>             </ContentTemplate>         </telerik:RadNotification>

Please help.


Alexey
Top achievements
Rank 1
 answered on 18 Nov 2011
1 answer
150 views
Hi I need to ajaxify a column in a grid in a Usercontrol... i did a search and found an example on how to achieve it but the sample was using an asp button...
How can i achieve the same thing without the use of the asp:button

<telerik:GridButtonColumn ButtonType="PushButton" CommandName="ViewResults" 
FilterControlAltText="Filter ViewButton 
column"<BR>                                    
Text="View Results" UniqueName="ViewButton" DataTextField="CRM_TRACKING_ID" 
HeaderText="CRM Tracking ID"><BR></telerik:GridButtonColumn>

Also, just to confirm, Can i still use this snippet even if mine is called from a user control with a RadAjaxManagerProxy? The AjaxManager is from my Master Template...

    protected void RadGrid1_ItemCreated(object sender, Telerik.WebControls.GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            ImageButton ImageButton1 = (ImageButton)item["TemplateColumn"].FindControl("ImageButton1"); 
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(ImageButton1, TextBox1, null); 
        } 
    } 
Mira
Telerik team
 answered on 18 Nov 2011
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?