Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
70 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
162 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
184 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
121 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
147 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
96 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
294 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
1 answer
64 views
Hi Telerik stuff, 

while looking the demo client-side Grid / Declarative Binding I found out that when filtering is set, no paging is possible. The 
table always returns to the first page.

No such behaviour occurs on Programatic Binding Demo.

Regards, 
Kristijan
Pavlina
Telerik team
 answered on 11 Nov 2011
2 answers
97 views
Hi

I have a rad grid which has a delete column at the end which is GridTemplateColumn.

The user can add to the form using EditMode="InPlace". When this insert row appears I want the delete button for this row to be invisible (because you can't delete a record that hasn't been inputted yet).

Does anyone know how to do this please?

Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2011
7 answers
89 views
Please have a look at the attached screen shot.

The image includes a RadTextBox and a RadEditor. The Textbox is rendered with an image as a background so it shows up dark. The edirot doesn't.

I assume that this was a concious decision on the part of someone at Telerik Towers, I just can't figure out why.

The problem I have is it looks dreadful on a page that has a lot of skinned TextBoes and a RadEditor.

Do I have an option for fixing this? By fixing it, I mean, obviously, getting it to look like the rest of the controls on a page.

--
Stuart
Rumen
Telerik team
 answered on 11 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?