Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hello,

 I need source code of gridview with enter key commands. If I click the enter key using gridview, it should move to next row textbox as well as next columns without any asp .net buttons. kindly send me the good code for this.

Thanks,
PRABAKARAN G.
KARAN
Top achievements
Rank 1
 asked on 26 Mar 2012
2 answers
204 views
Hi,

I have a multiple line chart which may contain more than 10 lines, would i be able to assign a random and different color to it ?

Thanks
Richard
Top achievements
Rank 1
 answered on 26 Mar 2012
2 answers
86 views
Hi,

I am facing issue with Rad tool tip in Scheduler control in Google Chrome. to re produce this issue take below pasted code to a new aspx page fallow the below steps.


1. Go to 24hr View.
2. double click on 11:00 PM Slot and add new appointment and check the tool tip.

Here i am attaching the screenshot for the same issue.

Please let me provide the solution asap.


Designer

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Schedule.aspx.cs" Inherits="Schedule" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="Server" ID="RadScriptManager1" EnablePageMethods="true" /> 
        <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Element"
            Position="TopLeft" AutoTooltipify="true" ContentScrolling="Default" Width="150"
            EnableShadow="false" Height="10" ShowEvent="OnMouseOver" ShowDelay="200" AutoCloseDelay="60000">
        </telerik:RadToolTipManager>
        <telerik:RadScheduler runat="server" ID="rschAppointments" Skin="Windows7" AllowEdit="true"
            AllowDelete="true" AllowInsert="true" ReadOnly="false" GroupingDirection="Horizontal"
            AppointmentStyleMode="Default"  Height="750px" Width="100%"
            TimelineView-ReadOnly="false" OnAppointmentCreated="rschAppointments_AppointmentCreated"
            NumberOfHoveredRows="1" DataKeyField="Id" DataSubjectField="Name" DataStartField="StartTime"
            DataEndField="EndTime">
            <TimelineView UserSelectable="false" EnableExactTimeRendering="true" />
            <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule" />
            </ExportSettings>
            <AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="AppointmentMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditAppointment" />
                        <telerik:RadMenuItem Text="" Value="DeleteAppointment" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="ClassMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditClass" />
                        <telerik:RadMenuItem Text="" Value="DeleteClass" />
                        <telerik:RadMenuItem Text="" Value="AddPatientstoBatch" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="OutOfOfficeMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditOutofOffice" />
                        <telerik:RadMenuItem Text="" Value="Deleteoutofoffice" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="SlotMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="AddAppointment" runat="server" />
                        <telerik:RadMenuItem Text="" Value="AddClass" />
                        <telerik:RadMenuItem Text="" Value="OutofOffice" />
                        <telerik:RadMenuItem Text="" Value="EditSlot" />
                        <telerik:RadMenuItem Text="" Value="DeleteSlot" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
            <TimeSlotContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="AddAppointment" runat="server" />
                        <telerik:RadMenuItem Text="" Value="AddClass" />
                        <telerik:RadMenuItem Text="" Value="OpenSlot" />
                        <telerik:RadMenuItem Text="" Value="OutofOffice" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </TimeSlotContextMenus>
        </telerik:RadScheduler>
    </div>
    </form>
</body>
</html>

Code Behind
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Schedule.aspx.cs" Inherits="Schedule" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="Server" ID="RadScriptManager1" EnablePageMethods="true" /> 
        <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Element"
            Position="TopLeft" AutoTooltipify="true" ContentScrolling="Default" Width="150"
            EnableShadow="false" Height="10" ShowEvent="OnMouseOver" ShowDelay="200" AutoCloseDelay="60000">
        </telerik:RadToolTipManager>
        <telerik:RadScheduler runat="server" ID="rschAppointments" Skin="Windows7" AllowEdit="true"
            AllowDelete="true" AllowInsert="true" ReadOnly="false" GroupingDirection="Horizontal"
            AppointmentStyleMode="Default"  Height="750px" Width="100%"
            TimelineView-ReadOnly="false" OnAppointmentCreated="rschAppointments_AppointmentCreated"
            NumberOfHoveredRows="1" DataKeyField="Id" DataSubjectField="Name" DataStartField="StartTime"
            DataEndField="EndTime">
            <TimelineView UserSelectable="false" EnableExactTimeRendering="true" />
            <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule" />
            </ExportSettings>
            <AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="AppointmentMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditAppointment" />
                        <telerik:RadMenuItem Text="" Value="DeleteAppointment" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="ClassMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditClass" />
                        <telerik:RadMenuItem Text="" Value="DeleteClass" />
                        <telerik:RadMenuItem Text="" Value="AddPatientstoBatch" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="OutOfOfficeMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="EditOutofOffice" />
                        <telerik:RadMenuItem Text="" Value="Deleteoutofoffice" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
                <telerik:RadSchedulerContextMenu runat="server" ID="SlotMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="AddAppointment" runat="server" />
                        <telerik:RadMenuItem Text="" Value="AddClass" />
                        <telerik:RadMenuItem Text="" Value="OutofOffice" />
                        <telerik:RadMenuItem Text="" Value="EditSlot" />
                        <telerik:RadMenuItem Text="" Value="DeleteSlot" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
            <TimeSlotContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="" Value="AddAppointment" runat="server" />
                        <telerik:RadMenuItem Text="" Value="AddClass" />
                        <telerik:RadMenuItem Text="" Value="OpenSlot" />
                        <telerik:RadMenuItem Text="" Value="OutofOffice" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </TimeSlotContextMenus>
        </telerik:RadScheduler>
    </div>
    </form>
</body>
</html>

Plamen
Telerik team
 answered on 26 Mar 2012
3 answers
119 views
I'm doing some client side manipulation of calendar events after the server side schedule has been populated.

This works on the initial load but if I try paging between months my rewrite (Tied to
$(document).ready) never gets fired because of the Ajax scheduler is using.

Is there a code sample showing a js handler that can detect a Scheduler ajax call?

Control is server bound.

Thanks

Michael




Ivana
Telerik team
 answered on 26 Mar 2012
1 answer
103 views
Hi,
I want to set UpdatePanelHeight="100%"  in codebehind:
<telerik:AjaxSetting AjaxControlID="RadGrid1">
     <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="100%" />
     </UpdatedControls>
</telerik:AjaxSetting>
Is it possible using code in telerik 2010.1.519.35?
Pavlina
Telerik team
 answered on 26 Mar 2012
1 answer
227 views

Nothing works right here
rdpicker1 populates rdpicker3 and rdpicker2 and rdpicker3 do nothing

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DatePickerTest.aspx.cs" Inherits="NCCCN.CMIS.AAA.DatePickerTest" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 
    <telerik:RadScriptManager runat="server" />
 
  <telerik:RadCalendar ID="sharedCalendar" runat="server" EnableMultiSelect="false" /> 
   <table cellpadding="10" cellspacing="10" >
    <tr>
        <td><telerik:RadDatePicker ID="RadDatePicker1" ClientIDMode="Static" runat="server" SharedCalendarID="sharedCalendar" /> </td>
        <td><telerik:RadDatePicker ID="RadDatePicker2" ClientIDMode="Static" runat="server" SharedCalendarID="sharedCalendar" /> </td>
        <td><telerik:RadDatePicker ID="RadDatePicker3" ClientIDMode="Static" runat="server" SharedCalendarID="sharedCalendar" /> </td>
    </tr>
    </table>
 
 
    </div>
    </form>
</body>
</html>
Richard
Top achievements
Rank 1
 answered on 26 Mar 2012
3 answers
349 views
Dear Telerik support,

When i use width=100%, the grid is showing all the columns (22 columns) and makes the master page bigger (in width). I must use the horizontal scrollbar of the page, in order to see the other columns (i have 4:3 monitor). (Image1)

When i use width=750px, the grid is showing the first 15 columns with the grid scrollbars enable. Correct. But when i see the page in a wide screen (16:9), there is an empty space on the right of the screen. (image2)

So i want to use all the width of the page (100% of the screen, not bigger) with the horizontal scrollbars enabled.
Is there a way to do this??

Thank you in advance for your time.

Best Regards,
George.
Navarino Technology Department.
Pavlina
Telerik team
 answered on 26 Mar 2012
2 answers
287 views
Hi,

How do I programmatically set the background of a radgrid cell to an image? I'm currently setting the background colour but need to set it to an image and still be able to have foreground text over the top. Here's what I'm currently using...

For Each grow As Telerik.Web.UI.GridDataItem In GridView1.Items
    

 

    grow.Cells(1).BackColor = Drawing.Color.Transparent    
    grow.Cells(1).Text = "Blah"

 

Next

 

 



Eyup
Telerik team
 answered on 26 Mar 2012
7 answers
143 views
Hi,

I am using radgrid with filtering switched on. With filtering the performance of a radgrid on IE is very poor, especially on slower computers. I checked that without filtering switched on, the page is loading much quicker and the page source code is half that big. I can add that I already made some optimizations like RadScriptManager or custom paging and it's still too slow. Is it possible to reduce the amount of javascript added with filtering on?

Alicja
Pavlina
Telerik team
 answered on 26 Mar 2012
1 answer
768 views
 Hi,
I have some binary images stored as 64-bit strings in my database. I'm using SQL to convert this value to a Byte[] (array) and I'm using a radbinaryimage control within a listview that is databound to my openaccesslinq data source. (and this is pointed to the data field containing the byte[].) It appears to be working except,  Instead of my image showing it's showing a broken image icon as shown in the screenshot attached. I have no idea how to troubleshoot this, but I did notice something strange. When I right click on this image and click "open in new tab" chrome begins a download of a file called "Telerik.Web.UI.WebResource.axd" If i view this file in a text editor, it's actually the 64-bit string that is the original value in my database. This doesn't make sense though, because i'm converting it to a byte[] within the view I'm using, the radbinaryimage control should never see the 64-bit string. So i'm wondering, does radbinary image convert from a byte[] to a 64-bit string to display the image? If so, is there a way to simply use the 64-bit string that I already have in the database?


 Either way, does anyone have any advice on how to troubleshoot this?




Tsvetina
Telerik team
 answered on 26 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?