Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
dear All,
i hope you are doing well...
i using RAD CHART control from the attached picture (database table) , i want to make chart like the attached picture (project-schedule.gif)

i want to be the x axis is Date from tha table (from minimum date to maximum date)
and the y axis is Type

note for every type have date from and date to (i want these value to be as line between the 2 values) as shown in the chart picture.

help me please ASAP.

Best Regards.


Yavor
Telerik team
 answered on 16 Jan 2012
1 answer
103 views
Hi!

I wonder if theres a way to get all contextmenus in the editor?
Ive seen a demo where you can get a contextmenu by tagname. But I need all context menus.

I have users that can insert articles (some html) generated from RSS into the editor via a custom dialog.

I want to catch the contextmenu clicks within my rssarticle html tag. And change the normal contextmenu for an image to a context menu for the rss article with items like "Edit", "Remove". And I dont want to hard code to override contextmenus A,P,H1,TD etc. I must override all contextmenus within an article.

Is there a way to find out if a contextmenu clicks originates from within another tag?
Rumen
Telerik team
 answered on 16 Jan 2012
3 answers
251 views
When I try to make a BAR chart , I get an error message The type of column with name ... is not numeric. The data source for the chart is retrieved from SQL 2005 using this query:

SELECT DepartmentName, COUNT(*) AS departmentSummary FROM DimEmployee GROUP BY DepartmentName

which give me 2 coloums - one contains department name, one contains the number of employee in department name (please see attach image).





Ves
Telerik team
 answered on 16 Jan 2012
2 answers
141 views
Is it possible to change the Yvalue of a chart series item using a javascript funtion?

I have a pie chart that is displaying two values, i would like a value to change on the chart when the contents of a corresponding input box is changed. ie two input boxes determine the values displayed on the pie chart.

I think this can be done with C# in the code behind, but i don't know C# very well and as the page needs to be loaded into the sitefinity CMS i would like  to get pie chart and input boxes to work in a page with just html and javascript.

can it be done?

Any advice greatly appreciated.
Evgenia
Telerik team
 answered on 16 Jan 2012
1 answer
128 views
I have a RadMenuItem which holds a DropDownList. The dropdopwn is being styled using the Formdecorator.

I first had an issue with the Z-Index which I fixed (The dropdown was behind the RadMenu) - but I encountered another problem. The Drop down list is long and exceeds the size of the Menu. Therefore when selecting an item, as the list is longer then the height of the menu, the menu gets closed and only the dropdown items are visible.

Any suggestions to fix this issue?

Nick
Kate
Telerik team
 answered on 16 Jan 2012
11 answers
610 views
Hi,

I added the following styles to my web page so that I could expand the appointment height and vertically center the label in my appointment template in the timeline view (along with clearing the background image so that I could change the color of the appointments). Unfortunately, this added vertical and horizontal scroll bars that scroll only the cells, not the header row or resource column. Note that I had no scroll bars prior to this change. If it makes a difference, my timeline view is readonly.

        div.RadScheduler .rsAptContent, div.RadScheduler .rsAptIn, div.RadScheduler .rsAptMid, div.RadScheduler .rsAptOut
        {
            background-image: none !important;
            background: none;
            margin: 0px;
            padding-top: 1px;
            padding-left: 0px;
            padding-right: 0px;
            padding-bottom: 3px;
            text-align: center;
        }
Is there another way to do this?

Thanks for a great tool,
Linda
Plamen
Telerik team
 answered on 16 Jan 2012
1 answer
212 views
How to get full path in upload file control in C#... it is returning only file name in firefox browser. please help me...
Shinu
Top achievements
Rank 2
 answered on 16 Jan 2012
1 answer
143 views
Hi,
After searching around and not finding an answer I deicded to post...
Working on a project with several RadGrids in it.

The problem is the same across the board...

The code is using LinQtoSQL and Datatables...

An example would look like...
Private Sub btnSearch_Click(sender, e) handles btnSearch_Click()
DoSearch
End sub

Private Sub DoSearch()
using db as new DataContext

dim dt as new datatable
dt.columns.Add("UserName")
dt.columns.Add(UserImage")

dim users = _
from u in db.Users where u.UserName.Contains(txtSearch.Text)
Select u

for each u in users

dim dr as datarow = dt.newrow
dr.item("UserName") = u.username

if not isdbnull(u.Image) and not u.Image = "" then
dr.item("UserImage") = u.UserImage
else
dr.item("UserImage") = "Images/NoImage.gif"
end if

dt.rows.add(dr)

next

end using

RadGrid1.DataSource = dt
RadGrid1.Databind()

End Sub


If I use need data source by eliminating the databind in above and calling DoSearch in need datasource, the button click get ignored

but the larger issue is having to perform the entire search again just to page or sort...

I am not dealing with 10's of thousands of records, maybe 5k max and can pull what I need when a search is complete, but do not want to have to pull all records down just to page or sort the grid...

Short of writing a bunch of code to re-parametor the search, what is the best way to accomplish what I need with the RadGrid?


Shinu
Top achievements
Rank 2
 answered on 16 Jan 2012
2 answers
193 views
Hello all,

I am using some code from an online demo which shows the asp.net validation summary in the ajax tool tip control. The code runs fine in a plain .aspx page. However when I put the code in a content page which is using a master page the tool tip does not show when the text boxes are not completed and the rad button is clicked. I get a show() object is null or undefiend.

I have tried the javascript in both the master page and the content page, but I still get the same error.
What am I missing here?
<asp:Content ID="Content8" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <script type="text/javascript">
             //<![CDATA[
        function HideTooltip() {
            var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
            if (tooltip) tooltip.hide();
        }
 
        function ShowTooltip() {
            window.setTimeout(function () {
                var tooltip = $find("RadToolTip1");
                //API: show the tooltip
                tooltip.show();
            }, 10);
        }
 
        function CheckIfShow(sender, args) {
            var summaryElem = document.getElementById("ValidationSummary1");
 
            //check if summary is visible
            if (summaryElem.style.display == "none") {
                //API: if there are no errors, do not show the tooltip
                args.set_cancel(true);
            }
        }
      //]]>
    </script>
   <div style="margin-left: auto; margin-right: auto; width: 400px">
    <table>
        <tr>
            <td>
                First name:
            </td>
            <td>
                <telerik:RadTextBox ID="rtxtFirstName" runat="server">
                </telerik:RadTextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="First name required." ControlToValidate="rtxtFirstName">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Last name:
            </td>
            <td>
                <telerik:RadTextBox ID="rtxtLastName" runat="server">
                </telerik:RadTextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Last name required." ControlToValidate="rtxtLastName">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <telerik:RadToolTip ID="RadToolTip1" runat="server" HideEvent="ManualClose" ShowEvent="FromCode" RelativeTo="Element" EnableShadow="true" TargetControlID="rbtnGetName" OnClientBeforeShow="CheckIfShow" ManualClose="true" Position="MiddleRight" Skin="Web20">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                </telerik:RadToolTip>
            </td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <telerik:RadButton ID="rbtnGetName" runat="server" Text="Get Name" OnClientClicking="ShowTooltip">
                </telerik:RadButton>
            </td>
            <td></td>
        </tr>
    </table>
   </div>
</asp:Content>

Chom
Top achievements
Rank 1
 answered on 16 Jan 2012
4 answers
150 views
Hi all,

i have a question to ask. I have to ask since i've search all over the google and this telerik forum for a similar case like mine, but i still haven't any answer related to my problem. I want to ask, what is the proper method to migrate RadControl application from one server (development server) to another server (production server). You can see the attachment, where 2 same website source code i placed in two different servers contains Telerik. Why is this happen and what is the solution?

i dont think permission is the reason why. because i've added "everyone" as user for this site.

really appreciate for any answer. Thank you.
Ahmad Fahmi
Top achievements
Rank 1
 answered on 16 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?