Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
138 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
68 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
108 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
107 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
74 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
79 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
94 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
1 answer
70 views
I have followed the sample at http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultcs.aspx?product=asyncupload

It works perfectly in Firefox.

However, in Internet Explorer, when the image is uploaded and appears on the page, it is not the correct size.  It is stretched to a 500px width.

I am using version 2010.3.1312.35
Dimitar Terziev
Telerik team
 answered on 27 Jan 2011
6 answers
217 views
Hi All,
I have a RadGrid with CommandItemDisplay="Top".
In the code behind, I set RadGrid.Enabled = false;
When I run the project, the RadGrid does look disabled, but the link to the right of the [+] button "Add New Record" can still be clicked on.
Is the something special I need to do with this?
Thanks,
Steele.
Pavlina
Telerik team
 answered on 27 Jan 2011
2 answers
169 views
Hello ,

I wanted to open rad window when user clinked one of my menu item. Consider that menu item is "Product". Menu click event code is as follows:

protected void NavigationMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            if (e.Item.Value == "Theme")
            {
                 
            }
            else if (e.Item.Text == "Product")
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "openWin", "openWin();", true);            
            }
 
        }


And my JavaScript function is as follows :

function openWin() {
var oWnd = radopen("Product.aspx", "RadWindow1");
oWnd.moveTo(125, 60);
}

Now when I clicked on Produce menu I am getting following JavaScript error .


Error: b is undefined
Source File: http://localhost/Company/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a8fa155ef-f4b5-45a5-8081-4caa696cfcad%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aa7e79140%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4
Line: 8175

If any one knows how to solve this then please tell me.In short I want to open rad window from server side.

-Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?