Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 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
83 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
180 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
141 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
72 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
111 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
109 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
76 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
1 answer
84 views

Hello
    I have created the dynamic checkbox template column.  But the check boxes which is present in the grid has not enabled.  I can't check or decheck those checkbox controls.  Please help me on this Issue......



using

 

System;

 

using

 

System.Collections.Generic;

 

using

 

System.Linq;

 

using

 

System.Web;

 

using

 

System.Web.UI;

 

using

 

System.Web.UI.WebControls;

 

using

 

Telerik.Web.UI;

 

using

 

System.Data;

 

using

 

DataAccessLayer;

 

namespace

 

GemsStandard.Transactions.Fees

 

{

 

public partial class tempDymClm : System.Web.UI.Page

 

{

 

FetchSQL fetchSQL = new FetchSQL();

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

BindColumn();

}

 

public void BindColumn()

 

{

 

//http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-runtime-columns.aspx

 

 

DataTable dt = new DataTable();

 

dt = fetchSQL.GetDataTable(

"select ac.AcademicYearName from tblAcademicYear ac", CommandType.Text);

 

 

 

GridBoundColumn boundColumn = new GridBoundColumn();

 

 

// boundColumn = new GridBoundColumn();

 

boundColumn.UniqueName =

"AcademicYearName";

 

boundColumn.DataField =

"AcademicYearName";

 

boundColumn.HeaderText =

"AcademicYearName";

 

RadGrid1.MasterTableView.Columns.Add(boundColumn);

 

 

 

GridCheckBoxColumn checkboxColumn = new GridCheckBoxColumn();

 

checkboxColumn.HeaderText =

"BusFee";

 

checkboxColumn.UniqueName =

"BusFee";

 

 

RadGrid1.MasterTableView.Columns.Add(checkboxColumn);

 

GridCheckBoxColumn checkboxColumn1 = new GridCheckBoxColumn();

 

checkboxColumn1.HeaderText =

"TFee";

 

checkboxColumn1.UniqueName =

"TFee";

 

 

RadGrid1.MasterTableView.Columns.Add(checkboxColumn1);

RadGrid1.MasterTableView.Columns.Add(Gvr);

RadGrid1.DataSource = dt;

RadGrid1.DataBind();

}

}

}

Pavlina
Telerik team
 answered on 27 Jan 2011
3 answers
96 views
Hello,

I have implemented easy fulltext searcher with RadXmlHttpPanel with RadAjaxPanel similar on http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/gridinxmlhttppanel/defaultcs.aspx

I have some changes:
  1. RadListView instead of RadGrid
  2. ObjectDataSource configured for this RadListView instead of handling NeedDataSource event
  3. disabled ViewState for this RadListView (because paging does not work with wiestate)
  4. User asp:DataPager in RadListView (RaddataPager throwing exception in RadXmlHttpPanel)
  5. I have search TextBox outside XmlHttpPanel as filter input to the ListView.

When I try it in the VisualStudio it works good. When I type some words to the textbox results are loaded and paging works.
When I publish it into the IIS 6 first paging works but in the next postback I get javascript error:

Webpage error details
  
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 21 Jan 2011 15:47:23 UTC
  
  
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 405
Line: 6
Char: 84093
Code: 0
URI: http://risdev/KM/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=scriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3a16e4e7cd%3a86526ba7%3a874f8ea2%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41%3bnData.KnowledgeManagement.Web%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3adf04c003-4d7b-4c85-89a9-019a1e4b5e86%3ac7908112%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3ab7778d6c%3a9cdfc6e7%3addbfcb67%3a58366029%3a628ebdd0

When I disable ajax on RadAjaxPanel, it works OK but with normal postabck.

Could you help me?
Thanks
Jiri

Pero
Telerik team
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?