Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
So, I have two comboboxes, both databound... the second one's datasource a function of the selected value of the first although I doubt that has anything to do with it.  Neither of them will fire the selected index changed event.  They're both set to autopostback.  What else could be causing this?  I see a number of people in the past with this problem, such a simple function can't be this problematic?


EDIT:  Don't know what was causing it but I finally got worn out, stripped out the 2 comboboxes, redid them, rebuilt everything and it works. 
Nencho
Telerik team
 answered on 11 Sep 2012
1 answer
396 views
Hi.
I have a problem with Telerik RadWindow.
If a PostBack is sent by the RadWindow the whole page containing the RadWindow will get refreshed. How can this be prevented?
Here is a picture of the structure of my project.

And a little explanation of the problem (with the code):

JS Code: gets executed when a link is clicked inside the webpart.ascx
<script type="text/javascript">
        function OpenWindowOfThisShit() {
            var layoutsPageUrl = SP.Utilities.Utility.getLayoutsPageUrl('PopupWindowTest/PopupWindowTestLayoutPage.aspx');
            var options = {
                url: layoutsPageUrl,
                title: 'Popup Webpart',
                allowMaximize: false,
                showClose: true,
                width: 550,
                height: 550
            }
            SP.UI.ModalDialog.showModalDialog(options);
        }
</script>


The PopupWindowTestLayoutPage: This gets loaded inside the ModalDialog
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <telerik:RadAjaxPanel runat="server">
            <asp:PlaceHolder runat="server" ID="placeHolder" Visible="True"></asp:PlaceHolder>
    </telerik:RadAjaxPanel>
</asp:Content>


PopupWindowTestLayoutPage codebehind:
protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            try
            {
                UserControl userControl = (UserControl)Page.LoadControl(@"~/_CONTROLTEMPLATES/PopupWindowTest/PopupWindowControlPage.ascx");
                placeHolder.Controls.Add(userControl);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }


PopupWindowControlPage
: This file gets loaded inside the placeholder of the LayoutPage
<%@ Register TagPrefix="RKWindows" TagName="InputDialogControl" Src="~/_controltemplates/PopupWindowTest/InputWindow.ascx" %>
<%@ Register Assembly="Telerik.Web.UI,Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadWindowManager ID="rwmInfo" runat="server">
    <Windows>
        <telerik:RadWindow runat="server" ID="rwContractInput" VisibleStatusbar="False" VisibleTitlebar="True" Behaviors="None" IconUrl="~/_layouts/images/BLANK.GIF" AutoSize="True" EnableShadow="True">
            <ContentTemplate>
                <RKWindows:InputDialogControl runat="server" ID="contractInputControl" Width="400px" Height="500px" />
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<asp:Panel runat="server" ID="ContainerPanel">
    <asp:Button runat="server" Text="Show Popup Dialog" ID="ShowPopup" OnClick="OnShowPopupClick"/>
</asp:Panel>


InputWindow: contains a inputField and a button
<asp:TextBox runat="server" ID="tbInput"></asp:TextBox>
<asp:Button runat="server" ID="FillTextbox" Text="Fill Textbox" OnClick="OnFillTextboxClick"/>

InputWindow codebehind

protected void OnFillTextboxClick(object sender, EventArgs e)
        {
            tbInput.Text = "Filled!";
        }



When the "Fill Textbox" button is clicked the Layoupage.ascx refreshes and resizes.
This is just an example of the real project where several RadGrids are used which will disappear for a short amount of time after a button was clicked inside a RadWindow.

I hope you can point me in the right direction.

Thank you in advance,
Frank
Marin Bratanov
Telerik team
 answered on 11 Sep 2012
1 answer
85 views
Hello,

I am working on some automated UI tests, and would like to automate some uploading with the RAD AsyncUploader.  It is my understanding that the uploader renders as <input type="file">  I was wondering if anyone knows what the ID for this input is?  Does it use the ID you gave to the RadAsyncUpload control itself? 

Any insight on this would be greatly appreciated.

Thanks,
Tim
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
3 answers
112 views
I have some Metro-skinned radbuttons with a handful extra of CSS.  I've included the picture of the standard button (default size button).

When I add an Icon and change the height to 24px, the old border on the right hand side re-appears (24px button with icon).

I've tried increasing the strength of my CSS:

.RadButton_Metro.rbSkinnedButton

 {

     background-color: #0077cc !important;

 }

 but to no avail...

Any ideas? 
Slav
Telerik team
 answered on 11 Sep 2012
1 answer
113 views
I am getting an object reference error when using FindControl("RadTabStrip1").

I followed the Telerik Wizard demo to achieve this and I can see from other people's questions in the forum that this is a very common error to have. However none of the recommended solutions seemed to work for me.

I have attached 2 screenshots of the relevant code.

TabTestCS.png shows the code behind for the default page (not the Site.Master) showing the creation of tabs and pageviews.

Step2CS.png shows the code-behind for the "Next" button (from Step1.ascx.cs control page) which will be for the transition of Step1 to Step2 in the wizard.

TabTestASPX.png shows the TABTEST.aspx page where the RadTabStrip1 control is created.

I have tried assigning values to the tabs and locating them that way, but that didn't work either.

Any help you can provide would be much appreciated,

Thank you.
 
GARY078
Top achievements
Rank 1
 answered on 11 Sep 2012
1 answer
222 views
Ok, I'm really  new to Telerik and I'm trying to do a few things with the .NET AJAX controls to get my feet wet. I'm already hitting a wall with something that I'd like to put on a website of mine.

Here's what I want. I hope that someone can tell me how to get here or point me in the right direction. (The online documentation for the Scheduler control isn't helping me so far):

I have a SQL database with some projects. These projects have start and end dates, and can last from months to a year or so. I want to make a project schedule of my active projects, showing the start and end dates along side each other for reference with a scale of maybe 2 years total. I'm not having any luck configuring the TimeLine view for the Scheduler object to do this. Help!
Boyan Dimitrov
Telerik team
 answered on 11 Sep 2012
1 answer
56 views
Can I use SavedOldValues() for a GridEditableDataItem if I am using External Form ? If not, how do I create a business object with the old values from Selected Grid Data Item that is up for Editing ?

Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
223 views
Hi 
I have two questions regarding the 'RadSchedulerRecurrenceEditor' control.

1) I want to hide the 'No end date' and have 'End by' selected as default.
for this I used the following script

function pageLoad() {
var $ = 
$telerik.$;
$(".RecurrenceEditor").children().each(function (i) {   
        //by default set the 'End by' radio selected
           
var chkEndAfter = 
            document.getElementById('MainContent_UCReccuranceControl1_ffRecurrenceEditor_RepeatUntilGivenDate');  
          chkEndAfter.checked = true;

          //hide the 'No end date' radio option
              $telerik.$(".rsAdvOptionsPanel ul li:first-child").hide();       
             });

so as a default set the 'End by' radio selected, is there a better way to get to the  'End by' control and have it selected.

2) Secondly the other scenario is if I select the 'End after' radio option I would like to use a client side custom validator to check if the 'end after' text box is not empty or null  

Please let me know ASAP and its kind of urgent.
Thanks in advance.

Tejas
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
100 views
Hello All,
Greeting of the day!

I am facing some problem in Telerik RadChart Control.

My requirement is this:
I am using radchart control for displaying company different ranking.
I want to make link and show tooltip description on mouseover on each item.
I am not getting any for this.
I attached image file according my requirement.
Please have a look this and suggest me how we will do this on PIE RadChart.

My another question is that I am using DNN 6.2 version and I am not getting RadHTMLChart control on the telerik DLL.
Please let me know how we will get RadHtmlChart control in DotnetNuke 6.2 version.

Thanks
Viky
Evgenia
Telerik team
 answered on 11 Sep 2012
1 answer
118 views
Hi,
I want to achieve such scenario.
I`m invoking CreateColumnEditor and want it to show different edit controls, depending on actually editable rows control(data inside the control).

Any ideas to get me going? Some small code sample?
Marin
Telerik team
 answered on 11 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?