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

Hi,

I just made a new Visual Studio 2010 SharePoint project, and I want to be able to use the Telerik controls installed on the computer in my web parts.

The problem is that they aren't showing up in the toolbox.  When I start a tag as "<tel", usually IntelliSense prefills "<telerik:AccessibleRadEditor" but in this solution it doesn't have any results for "<tel".  I thought I had just forgot to include the controls, so I added  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
to the markup.  Still I cannot access the controls.

When I open the ToolBox, they are missing from there, also.

How can I get the controls to appear for this solution?  They still appear for other Visual Studio solutions when I open those...

Andrey
Telerik team
 answered on 12 Aug 2012
2 answers
168 views
Hello, Telerik team, I have a question.

For a lot of hours I've tried to solve my problem. I want to export the data source of a RadGrid to a file on the server.

RadGrid1.MasterTableView.ExportToPdf()

exports the Pdf file and sends it to the client side. I would like to store my file on server side. I'm using ASP.NET with Visual Basic.

Thank you in advance for any help.

Best regards,
Lajos Árpád.
Lajos
Top achievements
Rank 1
 answered on 12 Aug 2012
2 answers
188 views

do you have any ideas?  below is my code.
Thanks!


Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Aug 2012
1 answer
65 views
I have a radscheduler on a webform and have this code.  It is probably something really stupid that I can't see so here goes.

I have a table of users and schedules.  The users have a named colour stored in the table.

What I am try to achieve?

I am tried to get all the schedules for the users and make their appointments show up in the specified colour stored in the database.

I have a small issue of retaining the correct colour as all the other colours are overwritten by the last loop.

Example.

User1 -----  Red
User2 -----  Blue

When the Schedule is rendered all the items are blue.  Is there a way around this?  Or am I making a schoolboy error?  I hnave already tried the same code on AppointmentOnDataBound

protected void EngSchedule_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
       {
           DataTable table = PageAccess.GetEngSchedule();
           
           foreach (DataRow dataRow in table.Rows)
           {
               var c = dataRow["Colour"].ToString();  //first colour Red, second colour Blue
               e.Appointment.BackColor = Color.FromName(c); // Appointments always blue WHY??
           }
       }

Can someone please tell me why the second colour overwrites the first colour
Simon
Top achievements
Rank 1
 answered on 12 Aug 2012
4 answers
157 views
In radscheduler i tried to do something like the example: http://demos.telerik.com/aspnet-ajax/scheduler/examples/customizeappointment/defaultcs.aspx 
to show appointments with some of resource information (actually in my case subject is irrelevant, only the resource "program" is important to display).

the problem is that it seems the resources are not binding right, or something else is wrong. I get "none" always, despite the fact that my database hold the value for the resource related. What can be wrong ?

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Description"
     DataEndField="end" DataKeyField="id" DataRecurrenceField="RecurenceRule" DataRecurrenceParentKeyField="RecurenceParentId"
     DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject"
     EnableDescriptionField="True" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
     SelectedView="WeekView">
     <ResourceTypes>
         <telerik:ResourceType DataSourceID="SqlDataSource2" ForeignKeyField="Programid" KeyField="id"
             Name="Program" TextField="programName" />
     </ResourceTypes>
     <ResourceStyles>
         <telerik:ResourceStyleMapping ApplyCssClass="rsCategoryBlue" Key="Programid" Text="Program"
             Type="Program" />
     </ResourceStyles>
     <AppointmentTemplate>
         <div>
             <%#Eval("Subject") %></div>
         <hr />
         <div>
             <asp:Label ID="UserLabel" runat="server" Text=' <%# Container.Appointment.Resources.GetResourceByType("Program") == null ? "None" : Container.Appointment.Resources.GetResourceByType("Program").Text%>' />
         </div>
     </AppointmentTemplate>
 </telerik:RadScheduler>
 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:radiomixConnectionString %>"
     SelectCommand="SELECT * FROM [Program]"></asp:SqlDataSource>
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:radiomixConnectionString %>"
     DeleteCommand="DELETE FROM [ProgramTimes] WHERE [id] = @id" InsertCommand="INSERT INTO [ProgramTimes] ([Subject], [Start], [end], [Description], [RecurenceRule], [RecurenceParentId], [Programid]) VALUES (@Subject, @Start, @end, @Description, @RecurenceRule, @RecurenceParentId, @Programid)"
     SelectCommand="SELECT [id], [Subject], [Start], [end], [Description], [RecurenceRule], [RecurenceParentId], [Programid] FROM [ProgramTimes]"
     UpdateCommand="UPDATE [ProgramTimes] SET [Subject] = @Subject, [Start] = @Start, [end] = @end, [Description] = @Description, [RecurenceRule] = @RecurenceRule, [RecurenceParentId] = @RecurenceParentId, [Programid] = @Programid WHERE [id] = @id">
     <DeleteParameters>
         <asp:Parameter Name="id" Type="Int32" />
     </DeleteParameters>
     <InsertParameters>
         <asp:Parameter Name="Subject" Type="String" />
         <asp:Parameter Name="Start" Type="DateTime" />
         <asp:Parameter Name="end" Type="DateTime" />
         <asp:Parameter Name="Description" Type="String" />
         <asp:Parameter Name="RecurenceRule" Type="String" />
         <asp:Parameter Name="RecurenceParentId" Type="Int32" />
         <asp:Parameter Name="Programid" Type="Int32" />
     </InsertParameters>
     <UpdateParameters>
         <asp:Parameter Name="Subject" Type="String" />
         <asp:Parameter Name="Start" Type="DateTime" />
         <asp:Parameter Name="end" Type="DateTime" />
         <asp:Parameter Name="Description" Type="String" />
         <asp:Parameter Name="RecurenceRule" Type="String" />
         <asp:Parameter Name="RecurenceParentId" Type="Int32" />
         <asp:Parameter Name="Programid" Type="Int32" />
         <asp:Parameter Name="id" Type="Int32" />
     </UpdateParameters>
 </asp:SqlDataSource>
Zaynoun ElFalou
Top achievements
Rank 1
 answered on 11 Aug 2012
2 answers
243 views

How to move RadWindow  on Mouse left button click

I have following code to open RadWindow

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
    Modal="false"    ReloadOnShow="true" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>



   <script type="text/javascript">
        function openRadWindow() {
            try {
                var oWnd1 = radopen("NonOptimizedGraph.aspx", "RadWindow1"); //Pass parameter using URL    
                oWnd1.setSize(800,600);
                oWnd1.centre();
                    return false;
            }
            catch (err) {
                //Handle errors here
            }
        }
       
    </script>
Dave
Top achievements
Rank 1
 answered on 11 Aug 2012
4 answers
152 views
I have buttons set up to display to the right of the listbox, however when it dipslays, the buttons are hidden behind the listbox.  The listbox is on a webcontrol that is being used as an edit form for a grid.
Bob
Top achievements
Rank 1
 answered on 10 Aug 2012
2 answers
149 views
Hi there!

We have a Radwindow with a couple of server-controls in its ContentTemplate (i.e. a ComboBox, a TextBox...). The entire Content is ajaxified using an asp:panel directly within the ContentTemplate.

The RadWindow is opened from a RadButton via a client-side script. However, the button needs to perform a partial postback, because the controls within the RadWindiw need to be updated conditionally (server-side). Because of this, we set the RadWindow's VisibleOnPageLoad property to "true" in the button's server Click event (in order to prevent the RadWindow from closing after the partial postback).

The expected (and wanted) behavior would be: 
  1. Button Click
  2. RadWindow opens directly (javascript)
  3. Ajax-Loader shows, the RadWindow's content is updated and the RadWindow stays visible

What happens is:
  1. Button Click
  2. RadWindow opens directly (javascript)
  3. Ajax-Loader shows and the RadWindow's content is updated
  4. Radwindow disappears and directly reappears (blinks) <-- This is unwanted and quite annoying to the user

What is causing the fourth step (why the annoying blinking-effect)? Any help or suggestion would be very much appreciated!!

Hans



Nils C.
Top achievements
Rank 1
 answered on 10 Aug 2012
3 answers
142 views
I am presently upgraing our Telerik controls and am having a problem with the RadEditor (ASP.NET AJAX) not retaining the viewstate on postback.
 
We add the editor dynamically, so that we have an editor for each language that is enabled in our application. We add the editors in the Page_Init event. We only show on at a time. For example if we English and French enabled then there will be 2 editors on the page, but only one will show to the user. The user can change the language by choosing a value from a dropdown which then postsback to then show the other editor. This has worked fine in the past.

Now though, if the user does not change the language and just enters text into the editor, then the content of the editor showing is blank when the page is submitted. If the user changes the language (and thus does a postback) and then clicks save, the viewstate is retatined.

Any ideas for a workaround, or better yet, an actual fix?
Mark Wells
Top achievements
Rank 1
 answered on 10 Aug 2012
3 answers
901 views
I have a MultiPage, and what I do is add a couple RadChart dynamically.


What I want to be able to do is surround each of these charts with a div.  Below is the code i'm using, if anybody has an example that would be fantastic!

<div class ="ChartClass"></div>
MultiPage.FindPageViewByID(MultiTabTarget).Controls.Add(RChart);

so i'd want
<div class="ChartClass">
RChart
</div>
Joshua
Top achievements
Rank 1
 answered on 10 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?