Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
139 views
Hi Expert,

I am using the Custom RadTabStrip  in DNN Custom Modules. I am unable to view the UI that I am looking for . Some styles problem occurring in that. But the same code is working fine in the Ordinary .ascx files in the same DNN Project.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="View.ascx.cs" Inherits="DotNetNuke.Modules.CourseSearch.View" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  <style type="text/css">
        .HovCSS
        {
            background: url('DesktopModules/CourseSearch/images/tab1.gif') no-repeat;
            width: 139px;
            height: 24px;
        }
        .OutCSS
        {
            background: url('DesktopModules/CourseSearch/images/tab2.gif') no-repeat;
            width: 139px;
            height: 24px;
        }
        .SelCss
        {
            background: url('DesktopModules/CourseSearch/images/tab1.gif') no-repeat;
            width: 139px;
            height: 24px;
        }
    </style>
 <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="rmp"
            EnableEmbeddedSkins="false">
            <Tabs>
                <telerik:RadTab Value="Tab1" Text="MyTab1" Selected="true" HoveredCssClass="HovCSS" OuterCssClass="OutCSS"
                    SelectedCssClass="SelCSS">
                </telerik:RadTab>
                <telerik:RadTab Value="Tab2" Text="MyTab2" HoveredCssClass="HovCSS" OuterCssClass="OutCSS" SelectedCssClass="SelCSS">
                </telerik:RadTab>
                <telerik:RadTab Value="Tab3" Text="MyTab3" HoveredCssClass="HovCSS" OuterCssClass="OutCSS" SelectedCssClass="SelCSS">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="rmp" SelectedIndex="0" runat="server" Width="100%">
            <telerik:RadPageView ID="FirstPage" runat="server">
                First Page
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView1" runat="server">
                Second Page
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
                Third Page
            </telerik:RadPageView>
        </telerik:RadMultiPage>

Please guide me!!!!!!!! to resolve this issue. Its urgent.....

Thanks in Advance!
RaviChandran
Ravi
Top achievements
Rank 1
 asked on 27 Jan 2011
6 answers
86 views

I ran my page through the validator at http://validator.w3.org/, and it told me: Line 467, Column 144: there is no attribute "disabled"

The link it's referring to is inside my grid:

 

<div id="ctl00_cphMain_grdSchedule_ctl00_ctl06_Detail10_ctl06_Detail10_ctl04_ttpScheduleItem" disabled="disabled" style="display:none;position:absolute;">

???

 

 

WombatEd
Top achievements
Rank 1
 answered on 27 Jan 2011
1 answer
80 views
Hello,

I am able to load parent nodes with the appropriate child nodes, but am running into a problem when the parent node has no children (the web method/service returns zero items).  So, I drag a child node from another parent node and it is added properly - however when I collapse that parent node (the one that I just added a child node to) and expand it again, the child node I dragged from the other parent node disappears because the web method/service is called again.  Is there a workaround for this?

Thanks in advance.
Nikolay Tsenkov
Telerik team
 answered on 27 Jan 2011
3 answers
107 views
I wanted to have a dialog that lists available external stylesheet files and then allow the user to select which ones they want.  However, I don't see any api for then adding these external css links to the editor. Is this possible?
Rumen
Telerik team
 answered on 27 Jan 2011
3 answers
257 views
Hi All

Strange behaviour , and I have searched and cannot find what I am sure is a simple answer.

I have a RadGrid in a RadCombobox, which works fine on first page load.
( Uses ItemTemplate as per Templates demo on Telerik site )

If I choose the "Next Page" option for the RadGrid, the whole page Postsback, and the RadGrid disappears.

Am I missing something here :


 <telerik:RadGrid ID="RadGrid2" AllowSorting="True" 
                                AllowPaging="True" PageSize="5" Skin="Office2007" runat="server" GridLines="None" 
                                Width="100%" AutoGenerateColumns="false" > 
                                <MasterTableView ClientDataKeyNames="IdNo">  
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="IdNo" HeaderText="ID">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Members" HeaderText="Name&nbsp;&nbsp;">  
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                                </MasterTableView> 
                                <ClientSettings> 
                                    <Selecting AllowRowSelect="True" /> 
                                    <ClientEvents OnRowSelected="onRowSelected" /> 
                                </ClientSettings> 
 
                                <PagerStyle NextPageText="Next" PrevPageText="Prev"></PagerStyle> 
                            </telerik:RadGrid> 



Andrew
Kalina
Telerik team
 answered on 27 Jan 2011
8 answers
177 views
Hi all,
Hi have a RadScheduler related to an objectdatasource. When i do some operation on the Scheduler, like Insert, Edit or Delete, I've notice that the scheduler exec the operation two time. The first time is executed from some "embedded" method and second time is execute from my method of the datasource. Why this happens? There is a way to disable the calling of the "embedded" method???
Thank's
Dan
Veronica
Telerik team
 answered on 27 Jan 2011
1 answer
118 views
Hello!!

My scenario:
I have a multi level grouping grid, that when every time the page loads, the grid shows a particular behavior.

I need that whenever the pages loads the grid shows all the groups collapsed and the footer for each group to be showed. The issue consist in when a I load a page containing a "2 or more grouping levels grid", it shows the 0 level group headers and all the footers for the next level grouped items within every 0 level group header; when the expected behavior is to show only the 0 level group headers with their corresponding footer. This situation is "fixed" after you expand and collapse each 0 level group.

In order to reproduce this, you can do the following:
1. Open the sample web site included with RadControls for ASP.NET AJAX Q3 2010 SP2 in visual studio.
2. Open the file:
  ~\Telerik\RadControls for ASP.NET AJAX Q3 2010\Live Demos\Grid\Examples\GroupBy\GroupFooter\DefaultCS.aspx
or
  ~\Telerik\RadControls for ASP.NET AJAX Q3 2010\Live Demos\Grid\Examples\GroupBy\GroupFooter\DefaultVB.aspx
3. Locate the tag for the grid, and in the <MasterTableView> tag add the GroupsDefaultExpanded="False" property.
4. Run the site.
5. Go to the edited page.
6. Check the "Retain group footers' visibility' check box.
7. Drag the "Product ID" column to the group panel, and see results.
8. Expand and then collapse every 0 level group and the grid should be showed correctly.

I also have attached some screenshots of this situation.

Thanks for your help
Pavlina
Telerik team
 answered on 27 Jan 2011
6 answers
146 views
Hi Telerik, 
I have a problem with the RadScheduler and exporting the appointment when loading templates. I took a look at your solution at http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx and found that when i use dynamic loaded templates it doesn't work correct with my OnAppointmentCommand event method:

I have this in my aspx page:
protected void Page_PreRender(object o, EventArgs e)
{
        switch (radScheduler.SelectedView)
        {
case SchedulerViewType.DayView:
                {
radScheduler.AppointmentTemplate = LoadTemplate("Controls/DayViewTemplate.ascx");
break;
}
}
}

Default.aspx: 
function Export(sender, event) {
        alert(sender.name);
            $find("<%=RadAjaxManager1.ClientID %>").__doPostBack(sender.name,"");
        }

My template is simple at the moment and looks like this (for testing): 
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DayViewTemplate.ascx.cs" Inherits="Modules_Scheduler_Controls_DayViewTemplate" %>
<asp:Button ID="lbExport" runat="server" CommandName="Export" Text="iCalendar" OnClientClick="Export(this,event); return false;"></asp:Button>

When I use alert(sender.name) from the javascript I get this "ctl00$Content2$radScheduler$ctl97$ctl01$lbExport" and it throws a postback that just doesnt reach the OnAppointmentCommand

However if I take what is in my template and use it directly on the aspx page like:
<Telerik:RadScheduler ....>
<AppointmentTemplate>
<asp:Button ID="lbExport" runat="server" CommandName="Export" Text="iCalendar" OnClientClick="Export(this,event); return false;"></asp:Button>
</AppointmentTemplate>
</Telerik:RadScheduler>

It throws the correct postback with the command and reaches my Event method. And I get my export file for iCalendar.

So my problem is the above doesn't work when I dynamic load templates for the RadScheduler. So I was wondering if I'm doing something wrong? 
Any tips or help would be much appreciated.

Best regards
Thomas


Veronica
Telerik team
 answered on 27 Jan 2011
5 answers
144 views
Hello,

I've developed a SharePoint web part in Visual Studio 2010 that contains a button that launches a RadWindow:

protected override void CreateChildControls()
{
    Button submitButton = new Button();
    submitButton.Text = "Show window";
    submitButton.ID = "popupButton";
    Controls.Add(submitButton);
  
    popupWindow = new RadWindow();
    popupWindow.OpenerElementID = submitButton.ClientID;
    popupWindow.NavigateUrl = "http://www.google.com";
    Controls.Add(popupWindow);
  
    base.CreateChildControls();             
}

I need the window to act as a modal dialog and inherit SharePoint's look and feel, so that the window matches the rest of SharePoint.  As an example, one of SharePoint 2010's dialogs is attached: sharepoint_ss.png.
My dialog looks like: my_ss.png

How do I make my dialog look like SharePoint's?  It needs to work for MOSS 2007 and SharePoint 2010. 

Leigh
Top achievements
Rank 1
 answered on 27 Jan 2011
1 answer
96 views
Hello.

We have different roles in our web application and we need to restrict actions of end users depends on role.

For example, learners must be able only to see scheduler and details of appointmenets. They must not be able to delete appointments, edit them, change time of appointments. Read only access.

But teachers must be able to do everything with appointements.

So, the first question: Is it possible to forbid user to edit/delete appointements?

The next thing we need to realize is forbid to edit/delete some of appointments. So user must be able to edit Appointment2, Appointment3, but he must not be able to edit/delete appointment4 and appointement5.


Great thaks for helping,
Roman Skvortsov
Peter
Telerik team
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?