Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
101 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
65 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
84 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
178 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
540 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
236 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
113 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
1 answer
69 views
I have user who likes the timeline view but doesn't want the appointment to stretch or span multiple days. The user would like it to be contained each day. So for example she wants to create an appointment from Monday to Thursday.  She wants individual appointments for each day. Do I use a reoccurance or is there a better way?
Plamen
Telerik team
 answered on 18 Nov 2011
3 answers
82 views
Hi Telerik team,

a custom web part using SPRadEditor is destructing the page if the user is changing into the page edit mode. This problem appears also with the Telerik Rad Editor Webpart. Screencast: http://screencast.com/t/GEu01yGtvLj

Cheers,
Ben
Rumen
Telerik team
 answered on 18 Nov 2011
0 answers
181 views
I have a RadWindow opened from a page. I need to do some server side code to build a link, then I'm trying to Response.Redirect to that link, but the window does not show the new page. If I add a link to the page and click it, I see the browser saying "loading <mypage>" but again, the radwindow does not display the new page. 

Here's my Radwindow:

<tlk:RadWindow ID="TwitterAuthDialog" runat="server"
VisibleTitlebar="true"
Title="Twitter Authentication"
VisibleStatusbar="false"
KeepInScreenBounds="true"
Overlay="false"
VisibleOnPageLoad="false"
Height="400" Width="575"
Animation="None" Modal="true"
Behaviors="Close"
NavigateUrl="twitter-authorization.aspx"   >
</tlk:RadWindow>

What is preventing the RadWindow from navigating to and displaying the new page on the redirect?

UPDATE: If the page is within my application it works, but if I try to load an external page it doesn't. In this case my page is building the Twitter Authorization link, which then redirects to the Twitter Authorization page, but it won;t show that. (Note: I've tried google.com and others, it's any external page that won't load. 

Why can't I load a page from outside my application into a radwindow?

UPDATE RESOLVED: 
This isn't an issue with the RadWindow. The page I am trying to load is prevented from being loaded in a frame. Since the RadWindow uses an iframe it can't be displayed. In this case I have to use a different method of creating the dialog window (which is unfortunate because its inconsistent with the rest of the site)
Mike
Top achievements
Rank 1
 asked on 18 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?