Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
119 views
I am using the scheduler a bit differently then how it was originally intended. We are using it to schedule employees for shifts to work. Most employees work the same shift, so instead of manually going through and adding in each employee to a time I created a form that will allow you to select multiple employees, multiple days, and a start and end time. I would like to move this to the AdvancedInsertTemplate instead of through a radwindow. My only issue with doing this is that I see no way of calling the command that shows the AdvancedInsertTemplate . Is there a command I am missing? I have disabled the insert by clicking on a time as this isn't valid for the application I have created.
Peter
Telerik team
 answered on 27 Oct 2010
1 answer
179 views
Hi,
Am Very new to Telerik and ASp.net.
I am facing problems with Custom validators in Telerik panel.
I need to throw an error in the validation summary when the custom validator is fired. The custom validator has  validation method in server side.
The problem is, the custom validator successfully displays errors in validation summary in case of normal page.
But since the text boxes are in telerik panel the custom validator can only dispaly messages inline, where the validator is present(Text attribute of custom validator). The error message attribute of custom validator, which is supposed to show the message in validation summary, does not work.
Pl help, as dispalying the message in validation summary is the requirement.

Note: Required field validator and regular expression validator works fine by displaying messages in validation summary in telerik panels. Also, I have associated the validators with validation groups of validation summary for required field, regular expression and custom validators.
Iana Tsolova
Telerik team
 answered on 27 Oct 2010
2 answers
77 views
pls help...

I have a web page with RadAjaxManager as below

  <telerik:RadAjaxManager ID="radAjaxManager" runat="server"
        EnableViewState="false" EnableAJAX="true" EnableEmbeddedScripts="true"             
        UpdatePanelsRenderMode="Block"  />     

I have user control in this page which needs another RadAjaxManager for which i use RadAjaxManagerProxy as below

  <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadCalendar1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadCalendar1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>

i want to register an event for radAjaxManager present in web page as below

        RadAjaxManager AjaxManager = (RadAjaxManager)this.Parent.FindControl("radAjaxManager");
        AjaxManager.ClientEvents.OnRequestStart = "RadAjaxManager1_AjaxRequest";


my event is like below and i want this event to be present in .cs file of user control..

  protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "focusSelectedDate" && RadCalendar1.SelectedDates.Count > 0)
        {
            RadCalendar1.FocusedDate = RadCalendar1.SelectedDates[0].Date;
        }
        else if (e.Argument == "focusSelectedDate")
        {
            RadCalendar1.FocusedDate = DateTime.Now;
        }
    }

but still it is not able to find RadAjaxManager1_AjaxRequest event.. am i doing any thing wrong?

-Pramodh

  
Maria Ilieva
Telerik team
 answered on 27 Oct 2010
3 answers
79 views
Hi,

I am using RAd Editor on MVC Application.
All seems fine but I get the following error when I try to submit the page
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

I have looked around for the solution and tried all possible solution but nothing seems to work.

Can anyone please suggest how to work around this problem?
Rumen
Telerik team
 answered on 27 Oct 2010
1 answer
189 views
I have three rad windows in a rad window manager on my main page. I'd like the user to be able to make a selection in one window, then after clicking a button to close that window I'd like the second window containe din the window manager on the main page to open.

I tried using the OnClientClose event to call the other window but it's not working:

<telerik:RadWindowManager runat="server" ID="windowManager" Modal="true">
      
     <Windows>
         <telerik:RadWindow ID="main" runat="server" Modal="true" NavigateUrl="mainUp.aspx" VisibleOnPageLoad="true" OnClientClose="openWindow()">
         </telerik:RadWindow>
         <telerik:RadWindow ID="second" runat="server" Modal="true" NavigateUrl="scope.aspx">
         </telerik:RadWindow>
         <telerik:RadWindow ID="third" runat="server" Modal="true">
         </telerik:RadWindow>
     </Windows>
 </telerik:RadWindowManager>
 and here's my javascript:
function openWindow() {
    var oWnd = radopen(null, "second");
}
When the default page opens the "main" rad window, the user can click a button which fires this and closes that window:
function CloseOnReload() {
     GetRadWindow().Close();
      
 }
That closes the window, but how can I then get the "second" rad window to open? I tried inserting "var ownd = radopen(null, 'second') in the above CLoseOnReload function but nothing happens.
Georgi Tunev
Telerik team
 answered on 27 Oct 2010
3 answers
326 views
Hi friend,

I have a problem with "rad window".
I use a date range values to filter radgrid in ajax mode.
Every cells of radgrid contains a button that opens a radwindow that contains specific data according to the button was clicked.

At the first time that radgrid is filtered everything is ok and by clicking the button, rad window opens normally and everythings are good. But after second time that grid is filtered, when the button in the cell is pressed radwindow opens with no data(it shows a blank page)!

I traced it. the code executes normally and the data that must be showed in the radwidow is generated successfully but a blank page is showed.

Please help me!

Georgi Tunev
Telerik team
 answered on 27 Oct 2010
1 answer
103 views
When using EditForms (the "auto generated" ones, ie no custom form template) I find that the controls, in most cases TextBoxes, are always a bit to narrow. This is especially true since the EditForm is rendered verticaly, and so AT LEAST 2/3s of the EditForm is always unused (all white).

  1. What's the best way to make a application wide change for this? Or even "developer machine wide"?
  2. Telerik, I suggest you change your default templates for this to make everything wider, as there is no point making it very cramped by default, when you know that at least 50% of the EditForm to the right will be empty anyway. Please consider this for future releases.
Dimo
Telerik team
 answered on 27 Oct 2010
1 answer
179 views

We are using Telerik.Web.UI Version 2010.2.713.40.  In several places on our web site, we have a RadGrid nested inside a RadPane.  When we resize the window, the grid columns flicker.  Setting column widths reduces the flickering, but regardless of the column sizes, the rightmost column always flickers.  It appears to be something in the client-side column resize code.  How can we fix this?

Dimo
Telerik team
 answered on 27 Oct 2010
2 answers
89 views
I have a RadGrid with a GridTemplateColumn that contains a UserControl that contains another RadGrid. In ItemCreate on the top-level grid (and I have also tried ItemDataBound) I set two properties on the nested grid.

 

protected void StudentGrid_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

GridDataItem gdi = (GridDataItem)e.Item;

 

 

StudentTasksGrid grid = (StudentTasksGrid)gdi.FindControl("TaskGrid");

 

grid.StudentId =

Convert.ToInt64(gdi.GetDataKeyValue("COEUserID"));

 

grid.ContentArea = (

ContentAreaType)Convert.ToInt32(gdi.GetDataKeyValue("COEContentAreaTypeID"));

 

...
}

Inside the nested grid it's NeedDataSource event uses the ContentArea property to construct its query.

What I am having trouble with is refreshing the top-level grid (which I need to do after a separate dialog window closes). Currently I am calling the code-behind through

 

function refreshGrid(sender, eventArgs) {

 

$find(

"ctl00_MainContent_RadAjaxManager1").ajaxRequest("Rebind");

 

}


which resets the DataSource and call DataBind(). When I do this the nested grid's NeedsDataSource gets call before the top-level grid's ItemDataBound event gets called and so it doesn't have the value of the ContentArea to use in its query.

Can you suggest how I am supposed to refresh the top-level grid and make sure those properties are reset on the nested grid?

Thanks in advance,

Anne
Iana Tsolova
Telerik team
 answered on 27 Oct 2010
3 answers
103 views
Hi Team Telerik,

I am Manish ,

I am using Telerik RadGrid  in which I am using the Filtering by Column. I am using Radcombobox's as my Filtering Template, here I am getting the problem as my First Two Radcomboboxs showing the data and others are not. But when I press Clear Filter Button which is also inside the RadGrid then all of them starts functioning smoothly....

What should I do to resolve this problem,

Fast response is highly appreciable....

Thanks and Regards,

Manish.
Pavlina
Telerik team
 answered on 27 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?