Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

i  used rad chart and facing problem in grouping column .
AM4 displaying three bar values  insteadof  two values and  AM5,AM6  is showing incorrect values .

please suggest me solution.

siteStatus                                  UserName

Assigned                                     AM4                    1

Submitted For Approval              AM4                    15

To Be Assigned                           AM5                     2

To Be Assigned                           AM6                     1

To Be Assigned                           AM7                      2



            chartBarRoleWise.DataSource = siteStatus;
            chartBarRoleWise.DataGroupColumn = "SiteStatus";
            chartBarRoleWise.PlotArea.XAxis.DataLabelsColumn = "UserName";
            chartBarRoleWise.Legend.Appearance.GroupNameFormat = "#VALUE";
            chartBarRoleWise.DataBind()
            ;
Evgenia
Telerik team
 answered on 15 Mar 2012
4 answers
149 views
I have a RadFileExplorer on a page with custom buttons in the toolbar.  Logoff and Administration buttons should go to the right.  Here is my CSS on the control:

<style type="text/css">
    div.RadToolBar .rtbUL { width: 100%; }

    div.RadToolBar .rightButton  {
        float: right;
    }
    /* Set the desired properties to the custom buttons */
    a.adminLoginStyleClass.rtbWrap .rtbText
    {
        font-size: 12px;
        background: url('./images/administration.png') no-repeat left center;
    }
            
    a.logoffStyleClass.rtbWrap .rtbText
    {
        font-size: 12px;
        background: url('./images/logoff.png') no-repeat left center;
    }
</style>

And my codebehind in the Page_Load:

RadToolBarButton logoffbutton = new RadToolBarButton("Logoff");
logoffbutton.Value = "logoffcommand";
logoffbutton.CssClass = "logoffStyleClass";
logoffbutton.OuterCssClass = "rightButton";
logoffbutton.Attributes.Add("onclick", "window.location.href='EndSession.aspx'");
RadFileExplorer1.ToolBar.Items.Add(logoffbutton);

RadToolBarButton adminLogin = new RadToolBarButton("Administration");
adminLogin.Value = "admincommand";
adminLogin.CssClass = "adminLoginStyleClass";
adminLogin.OuterCssClass = "rightButton";
adminLogin.Attributes.Add("onclick", "window.location.href='Admin'");
RadFileExplorer1.ToolBar.Items.Add(adminLogin);

This works beautifully in Chrome and IE however in FireFox the buttons show in the right on a second row.  I have attached a screenshot.  Can anyone help?
Adam
Top achievements
Rank 1
 answered on 15 Mar 2012
3 answers
79 views
Hi
I have a page which has a UserControl, and within the Usercontrol I have a RadUpload with a RadUploadProgressHandler control. I can upload files without any problems, and the progress handler displays as it should. However, after uploading a file, if I wait a few minutes and then make another ajax callback on the page with a different control, I get the error "RadUpload Ajax callback error. Source url returned error:12029 .. Unknown... Did you register the RadUploadProgressHandler in web.config?"  . Which is a bit strange because I have already done the file uploading and the action which triggers this error message has nothing to do with file uploading!

I am using version Q2 2010.

Any help would be appreciated

Thanks
Genady Sergeev
Telerik team
 answered on 15 Mar 2012
1 answer
285 views
Hi,

I am using Radtooltip and under that I have placed a RadText box control.

Basically I want to use Jquery Autocomplete to fetch the data for my Radtextbox using wcf web service. The webservice returns that data but the problem is that I can't use autocomplete operation for my radtextbox because Jquery works on HTML element. Is there any client side function which I can use to get the html element Id of my radtextbox.

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">

    function GetJobs(sender, args) {

        var s = new PS.PSService();
        s.GetJobs(function (data) {
            $(sender).autocomplete({
                source: data,
                minLength: 2
            });

        });
    }        
</script>



<
telerik:RadToolTip ID="rttMore" runat="server" TargetControlID="tbSearch" EnableEmbeddedBaseStylesheet="true"
                                                            RelativeTo="Element" ShowCallout="true" HideDelay="4000" HideEvent="LeaveTargetAndToolTip"
                                                            Position="BottomCenter" Width="500px" Height="90px">
                                                            <fieldset id="fsMain" runat="server">
                                                                <legend class="fieldsetLegend" id="fslgndMain" runat="server">Select Filter </legend>
                                                                <asp:Panel ID="pnlSearch" runat="server" DefaultButton="btnGoSearchByJobName">
                                                                    Search by job <b>name / number</b>
                                                                    <telerik:RadTextBox ID="tbSearchByJobName" MaxLength="50" EmptyMessage="Leave empty for all jobs or enter a Job Name / Job No (Press Enter Key for search)"
                                                                        Width="430px" runat="server">
                                                                        <ClientEvents OnLoad="GetJobs" />
                                                                    </telerik:RadTextBox>
                                                                    <asp:RegularExpressionValidator ID="valSearch" runat="server" ForeColor="Red" Display="Dynamic"
                                                                        ErrorMessage="Please enter a valid Job Name / Job Number" ControlToValidate="tbSearchByJobName"
                                                                        ValidationExpression="[a-zA-Z|\d|\s]*"></asp:RegularExpressionValidator>
                                                                    <asp:Button ID="btnGoSearchByJobName" runat="server" Text="Go" OnClick="btnGoSearchByJobName_Click" />
                                                                    <br />
                                                                </asp:Panel>
                                                            </fieldset>
                                                        </telerik:RadToolTip>
Kevin
Top achievements
Rank 2
 answered on 15 Mar 2012
6 answers
281 views
I'd like to close the opend window i called in a cross domain site.
So, when the user hits the "Close" button on the child page (different domain) the radwindow shall close.

This is easily possible with normal popup windows, just use the javascript code. window.close();
In Demos you can find an example for Dialog returning values and there is a javascript method to find the radwindow and than call the close event, but this doesnt work in cross domain scenarios.

Example from Demos
function GetRadWindow() {
 
var oWindow = null;
 if (window.radWindow)
oWindow = window.radWindow;
 
//Throws an Error in cross domain, because window.frameElement isnt accessible
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
 
return oWindow;
 
 }


To Close just say...
var oWnd = GetRadWindow();
oWnd.close(oArg);


Hope you guys can help me close a radwindow in cross domain scenario.
Kevin
Top achievements
Rank 2
 answered on 15 Mar 2012
1 answer
133 views
The project i am currently working on requires me to launch RadAsyncUpload (select files and upload) when a radio button is selected (see image below - the event should trigger when user clicks on "Upload Images" ).  Is there anyway to force RadAsyncUpload to launch when the radio button is select on the clientside (something on the lines of $find("<%= RadAsyncUpload1.ClientID%>").open(); )?

Thanks again for the help.

-  Pat
Bozhidar
Telerik team
 answered on 15 Mar 2012
4 answers
207 views
hi!

i have opened a support ticket already but did not get a solution - so i try to ask the community if someone has come across a similar problem:

we are using sitecore cms and in their new version (which we are upgrading to at the moment) they are using telerik controls as well - but the version they are using is 2008.2 - we are using 2009.1.
now their admin site is inside the webroot (as most cms probably have) and their telerik.web.ui.dll is of course in the \bin folder.

this of course generates a version conflict.

we can't use the old version as we are using some stuff from the newer version.

now we got some suggestions to solve this issue:
  • using global assebly cache
  • registering the different assemblies in web.config
  • using aliases

all works to certain points - as even registering the specific assembly for the controls on a page with the strong name generates namspace conflicts for some properties (e.g. 'expandanimation' of rad.menu).

does anyone out there came across similar issues?
how did you solve these problems?

any help is very appreciated!
thank you!
Reini
Top achievements
Rank 2
 answered on 15 Mar 2012
5 answers
87 views
I believe I've found a serious bug in the Show/Hide Columns section of the RadGrid's HeaderContextMenu. I've a Grid with multiple autogenerated columns. The grid has so many columns that the horizontal scrollbar is visible. When I open the Header Context Menu, go to the Columns section and uncheck some of the columns, those columns get hidden without problems. Until here, there are no problems. But when I scroll to the right and then back to the left, the columns that were hidden before are visible again. When I reopen the Header Context Menu I can see that those columns are still unchecked. They are unchecked but they are still visible.

I was trying to add to new items to the header context menu, under the Columns section. These items are Check All and Uncheck All. Actually I believe that this has to be out of the box feature of the RadGrid but unfortunately it's missing as far as I know. Assuming that you have let's say 40 columns, you can't expect the user to make 35 clicks, when the user wants to hide 35 columns to focus only on 5 columns. So somehow I managed to add this feature myself and when I found the bug I've explained above, I first thought that I've caused this strange behaviour but then I tried the same on another grid where I didn't add that Check All/Uncheck All feature and saw that the strange behaviour or bug was still there. So it didn't depend on my additional feature.

I'm using the latest version of the Ajax controls (2012 Q1) Did someone else experience such a problem? Thanks in advance...
Quattro Formaggi
Top achievements
Rank 1
 answered on 15 Mar 2012
2 answers
71 views
Hai i am using Telerik ASP.NET Ajax Q1 2012.


============================================================================================================

<telerik:RadAjaxPanel ID="rapDashboard" runat="server">
                     <telerik:RadDockLayout runat="server" ID="rdlWidget" EnableEmbeddedSkins="false" Skin="Default" OnSaveDockLayout="rdlWidget_SaveDockLayout">
                       <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="1000px"  Height="100%" BorderSize="0" OnClientLoaded="AutoSize" ResizeWithParentPane="false" BorderStyle="None" BorderWidth="0px">
                            <telerik:RadPane ID="Left" runat="server" OnClientResized="afterResize" Scrolling="None" CssClass="NewStyle" Height="100%" BorderStyle="None" BorderWidth="0px" >
                                <asp:UpdatePanel runat="server" ID="upLeftzone" UpdateMode="Conditional" ChildrenAsTriggers="false">
                                    <ContentTemplate>
                                        <telerik:RadDockZone ID="rdzLeft" runat="server" Orientation="Vertical" FitDocks="true" Width="95%"
                                        BorderStyle="None" Style="float: left; margin-right:-5px; overflow:hidden;font-size:18pt;font-family:Arial;font-weight:bold; border-right-style:none; border-right-width:0px;padding: 4px; width: 100%;">
                                        </telerik:RadDockZone>
                                    </ContentTemplate>
                                   <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="rdzLeft" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </telerik:RadPane>
                            <telerik:RadPane ID="Right" runat="server" OnClientResized="RightZoneafterResize" Scrolling="None" CssClass="NewStyle" Height="100%" BorderStyle="None" BorderWidth="0px">
                                <asp:UpdatePanel runat="server" ID="upRightzone" UpdateMode="Conditional" ChildrenAsTriggers="false">
                                    <ContentTemplate>
                                        <telerik:RadDockZone ID="rdzRight"  runat="server" Orientation="Vertical" BorderStyle="None" FitDocks="false" Width="95%"
                                        Style="float: left; border-right-style:none; border-right-width:0px;padding: 4px;  width: 100%;">
                                        </telerik:RadDockZone>
                                     </ContentTemplate>
                                   <Triggers>
                                   <asp:AsyncPostBackTrigger ControlID="rdzRight" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadDockLayout>   
                </telerik:RadAjaxPanel>


====================================================================================

This is my code.The rad dock is working fine in Firefox.But in IE it produced the below error


Message: Invalid argument.
Line: 308
Char: 1
Code: 0
URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2012.1.215/Input/TextBox/RadInputScript.js

I tested in IE7 and IE8.
Palani
Top achievements
Rank 1
 answered on 15 Mar 2012
4 answers
163 views
Hi, I'm using library 2011.1.315 and I'm having two issues related to the drag and drop feature.

1) Everything works fine when an item 'A' from the Grid is droped in folder 'B' in the Tree. But when I drop the same item 'A' in the same folder 'B' in the Grid, nothing happens. Everything seems to work but no action is taken. Why I can't move an item to another item inside the Grid?

2) The second issue is permission related. If I set folder 'B' permissions to: Permissions = PathPermissions.Read, and try to drag-and-drop anything to folder 'B', then the move action is correctly denied. But no message is shown to the user, the action is just cancelled and nothing happens. How can I show an error message to the user?

Any help would be much appreciated.

Regards,
Santiago.
Pero
Telerik team
 answered on 15 Mar 2012
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?