Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hi ,
          I want to implement sub grouping for radscheduler by using multiple Resources. For example i have two multi select drop down lists with names State and City. If the user selects multiple values from both State and City in this senario i have to do main group based on State and sub group based on City. From your live demo links i am attaching sample image please find. From the below attached file, i want to show the State in the place of Date after that i have to do sub group based on respective cities under that state.
 
        Kindly help me out from this. Thanks in advance.
Thanks,
Maddela.
Plamen
Telerik team
 answered on 11 Nov 2011
4 answers
144 views
Hi,

I've a master page that contains RadScriptManager, a default.aspx page that contains a RadTabStrip and a RadMultiPage. I've an Xml file that defines a collection of user controls with each element defining attributes of the control. In the Page_Load method of Default.aspx.cs, I'm dynamically generating a RadTab and and a PageView for each control definition in the Xml file (controls are exactly same except that they are bound to different server/databases to support various groups). I'm able to succesfully generate RadTab for each control. However when I click any of the controls in the loaded user control (e.g. a ListBox selection change), I end up getting a Jscript error in VS 2010 that says:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null.
Parameter name: source

I've tried everything that I could think of such as loading the controls on Page_Load (outside and inside !IsPostBack), setting autopostback of TabStrip to true, to no avail. I'm not able to hit the code in the project at all since the JScript error is thrown before that. BTW if I use an asp:placeholder and generate the controls inside a table and add them to placeholder everything works fine. This has something to do with RadTabStrip and RadMultiPage combination.

Could you please suggest what could be the reason for seeing this issue?

Thanks,
Kirpa
Peter
Telerik team
 answered on 11 Nov 2011
2 answers
75 views
Hi,
Sorry for the second post.  If the features I have listed are not available out-of-the-box, can we purchase your source code and modify that to achieve results?  If so, please  let us know the cost of purchase.

Thanks,
Shefali

 

Plamen
Telerik team
 answered on 11 Nov 2011
2 answers
55 views
I have combobox that is EnableAutomaticLoadOnDemand=true
It is not in a grid or a form, and the object and events for the combo are available via the .NET code pickboxes.
Every so often the Selection out of range Parameter name: value  exception will rear it's ugly head.
I was driving three other radgrid on my page without problem. This exception will show weather the combo is part of hte ajaxmanager or not. I read that clearing the combo will solve this, but all this is set to automatic.
See combo config below:

<telerik:RadComboBox runat="server" ID="ddlEmployee" DataSourceID="dsEmployeeID"
                            EmptyMessage="Select an Employee"
                            skin="Vista" 
                            DataTextField="txt"
                            DataValueField="EmpID"
                            Width="300px"
                            DropDownWidth="350px"
                            CausesValidation="false"
                            AutoPostBack="True"
                            EnableVirtualScrolling="true"
                            Filter="Contains"
                            EnableAutomaticLoadOnDemand="true"
                            HighlightTemplatedItems="true"
                            ShowMoreResultsBox="true"
                            AllowCustomText="true"
                            MarkFirstMatch="true" 
                            SortCaseSensitive="False"
                            ItemsPerRequest="20">
                            <HeaderTemplate>
                                <table style="width: 350px; text-align: left">
                                    <tr>
                                        <td style="width: 110px;">Last Name</td>
                                        <td style="width: 110px;">First Name</td>
                                        <td style="width: 130px;">Employee ID</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 315px; text-align: left">
                                    <tr>
                                        <td style="width: 125px;">
                                            <%#DataBinder.Eval(Container.DataItem, "LName")%>
                                        </td>
                                        <td style="width: 125px;">
                                            <%#DataBinder.Eval(Container.DataItem, "FName")%>
                                        </td>
                                        <td style="width: 100px;">
                                            <%#DataBinder.Eval(Container.DataItem, "EmpID")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>
Patrice
Top achievements
Rank 1
 answered on 11 Nov 2011
1 answer
152 views

I want to get the client Id of grid cell with the help of cleint side.

Please find the client side code which I am using to get

function handleRowClick(sender, args)

{

var masterTable = sender.get_masterTableView();

var cellIndex = args.get_domEvent().target.cellIndex;

var cellText = args.get_domEvent().target.innerHTML;

var colName = masterTable.getColumnUniqueNameByCellIndex(getHeaderRow(sender), cellIndex) ;
var cellID=???;

}

function getHeaderRow(sender)

{

var masterTable = sender.get_masterTableView();

return masterTable.HeaderRow == null ? sender.get_masterTableViewHeader().get_element() : masterTable.HeaderRow;

}

and use this line of code within grid for clientevents

 

<ClientEvents OnFilterMenuShowing="filterMenuShowing" OnRowClick="handleRowClick" />

Please suggest on it .

Thanks
Shimab


Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
172 views
Hi,

I want to call a javascript function just before the click event of filterMenu for "Equals" option.
How can I achieve this?

TIA.
Princy
Top achievements
Rank 2
 answered on 11 Nov 2011
3 answers
111 views
Hi,

By default in the week view the time is aligned vertically and the days are aligned horizontally.

Is there any way I can get the time to align horizontally and the days vertically? (please look at the attachment for an example)


Ivana
Telerik team
 answered on 11 Nov 2011
7 answers
137 views
Hi,

I am experiencing a problem in my scheduler. When I drag resize an appointment in week og day mode, the Recorrencerule is not updated, although I check the "resize the series" radio. This results in the appointment Start and End times being updated, but not the RecurrenceRule.

I am taking the RecurrenceRule from the "appointmentToUpdate" parameter and putting that into the appointment I want to update.

public override void Update( RadScheduler owner, Appointment appointmentToUpdate ) { 
      HL_Appointment app = GetDBAppointment( appointmentToUpdate ); 
      if( app != null ) { 
        app.End = appointmentToUpdate.End; 
        int redParID = 0; 
        if( appointmentToUpdate.RecurrenceParentID != null && int.TryParse( appointmentToUpdate.RecurrenceParentID.ToString(), out redParID ) ) 
          app.RecurrenceParentID = redParID; 
        app.RecurrenceRule = appointmentToUpdate.RecurrenceRule; 
        app.Start = appointmentToUpdate.Start; 
        app.Subject = appointmentToUpdate.Subject; 
        ReadyUpdateAppointmenRessources( appointmentToUpdate ); 
        db.SubmitChanges(); 
      } 
    } 


Am I forgetting some small setting somewhere?



Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
79 views
Hey Telerik,

Just a quick question. I experienced a pretty curious bug under Internet Explorer.

The web application I'm building upon has a Master Page which defines some a horizontal navigation bar at the top of the page.

After opening a RadWindow with Content Template, then closing the RadWindow, the horizontal navigation bar becomes invisible. This only occurs on Internet Explorer, only with Content Template RadWindows, and only if they are Modal.

I was especially careful to go through all of my code and make sure there were no early terminations of HTML mark-up controls. That is, something like 
<div id="foo" />

would not be acceptable due to the parsing standards of IE. As such, I am confident in saying that I am properly terminating my HTML mark-up.

That being said, I was able to resolve the issue like so:

OnClientBeforeShow = "AddModal";
OnClientBeforeClose = "RemoveModal";

//Bug -- IE removes 'TopBar' when closing a modal, content template RadWindow. Circumvent by removing the property right before close.
function AddModal(radWindow) {
    radWindow.set_modal(true);
}
 
function RemoveModal(radWindow) {
    radWindow.set_modal(false);
}

Which is awesome -- I am happy to have fixed the bug. Nevertheless, I am left very curious. What's going on here? Why would this implementation have better results than setting the Modal property explicitly?

Thanks,

Sean
Marin Bratanov
Telerik team
 answered on 11 Nov 2011
1 answer
280 views

Good day;

It seems that the postback texchanged event of a radinput(textbox) control interferes with opening a radwindow as a popup. The net effect is that the window (dialog) will open and close automatically.

Unfortunatley; copyright laws prevent me from posting the source but I will do my best to explain it correctly.

I'm working on a user control composed of:
        - RADINPUT(TEXTBOX) (autopostback off)
        - ASP IMAGE BUTTON
        - RAD WINDOW object, set to modal, with the navigateurl set to "dialog.aspx", linked to the ASPIMAGEBUTTON via OpenerElementID

 
The Popup page, say dialog.aspx is composed mainly of:
    - Textbox to enter search value
    - asp image button - triggers off the search
    - radgrid to display the results

The objective of the control is to provide a text thats tied to a search dialog. If the user doesnt know the value they can search for it via the dialog, select the value they want and bring it back to the text box.

    Everything works well and is awesome. Except, a new requirement came in. God wants whatever text that users type in the textbox of the user control come across to the search dialog window and be defaulted into the textbox for the search. Perfectly reasonable.

In order to achieve this I added a querystring value to carry the value from the textbox into the dialog.aspx. In order to modify the navigateurl of the radwindow I added codebehind to the textchanged event of the user control textbox and turned on its autopostback. Mostly it works....however.....there is one scenario where I believe the postback from the textbox control is interfering with the rad windows opening.

The scenario is:
    Enter text into the textbox; without tabing out or hitting enter; click on the image button.

The action above should cause the following in order:

1. Run textbox.textchanged event and Update the navigateurl of the radwindow.
2. Open the rad window dialog.

What actually happens is that the radwindow opens and closes. If I click on the image to open it again, it seems the navigateurl did not get updated by the textbox event. In other words, it seems that clicking on the button while the focus is still on the textbox causes the postback from the textbox to get shorted and the opening of the dialog to be aborted.

I have managed to work around this by turning off the textbox's autopostback and adding some client side code. However, if in the future we need to activate the autopostback for the textcontrol in order to manage the textchanged event on any asp that implements it the problem will resurface.

Thanks in advance for the help;
David

Marin Bratanov
Telerik team
 answered on 11 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?