Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
333 views
I noticed that the client side Appointment object does not have the Resources collection in it.

How can I have an external edit custom RadWindow, for a scheduler with multiple resources?

For example I have 3 Sales People in ResourceView and a database of clients, which can be seen by any of my 3 sales people.  So I would have a 3 column ResourceView schedule and a RadWindow popup...with possibly a grid for all the customers (unless you have a better suggestion).

I could add the resource to the advanced edit form but that would create a drop down and with >100+ clients, it would not make sense to filter them through the drop down.

So I need a custom window, RadWindow, but I need to know how to send it the Resource.ID from the Appointment?

Thank you, the scheduler is awesome so far!
LGG
T. Tsonev
Telerik team
 answered on 16 May 2008
1 answer
165 views
I have 2 combo boxes on my page.  when I change the first one, it loads the 2nd combo data (using a template).  However, the SELECTED item displayed in the combo box does not change.

telerik:RadComboBox ID="cmbCarrier" runat="server" DataSourceID="sqlCarrier" 
        DataTextField="Name" DataValueField="CARRIER_ID" AutoPostBack="True" Width="388px" CausesValidation="False">  
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </telerik:RadComboBox> 
    Select Contract:  
    <telerik:RadComboBox  ID="cmbContract" runat="server" DataSourceID="sqlContracts" MarkFirstMatch="true" OnDataBound="cmbContract_DataBound" EnableLoadOnDemand="true" HighlightTemplatedItems="true"   Width="420px"  OnItemDataBound="cmbContract_ItemDataBound" OnSelectedIndexChanged="cmbContract_SelectedIndexChanged" CausesValidation="False" > 
                                <HeaderTemplate> 
                            <table style="width: 100%; text-align: left">  
                                <tr> 
                                    <td style="width: 125px;">  
                                        Contract ID  
                                    </td> 
                                    <td style="width: 125px;">  
                                        Carrier  
                                    </td> 
                                    <td style="width: 125px;">  
                                        Description  
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table style="width: 100%; text-align: left">  
                                <tr> 
                                     <td style="width: 125px;">  
                                        <%# DataBinder.Eval(Container.DataItem, "CONTRACT_ID") %> 
                                    </td> 
                                    <td style="width: 125px;">  
                                        <%# DataBinder.Eval(Container.DataItem, "Name") %> 
                                    </td> 
                                    <td style="width: 125px;">  
                                        <%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %> 
                                    </td> 
                                 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </telerik:RadComboBox> 
    protected void cmbContract_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)  
    {  
        {  
            e.Item.Text = ((DataRowView)e.Item.DataItem)["CONTRACT_ID"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["Name"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["DESCRIPTION"].ToString();  
            e.Item.Value = ((DataRowView)e.Item.DataItem)["CONTRACT_ID"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["Name"].ToString() + "; " + ((DataRowView)e.Item.DataItem)["DESCRIPTION"].ToString();  
        }  
 
    } 

I simply want the first item in the list to be displayed.
Rosi
Telerik team
 answered on 16 May 2008
1 answer
57 views

How can i give the Script in RADAjaxManager like this for ScriptManager ??

It is possible for ScriptManager.

<asp:ScriptManager ID="Temp" runat="Server">

<

Scripts>

<asp:ScriptReference Path="~/JScript.js" />

</Scripts>

</

asp:ScriptManager>

Steve
Telerik team
 answered on 16 May 2008
2 answers
151 views
I’m looking for a way to hide columns in the RadGrid that does not contain any data.

Anyone got an idea on how to do this without iterating the whole grid?
Carsten Højgaard
Top achievements
Rank 1
 answered on 16 May 2008
3 answers
228 views
Hi,

I got a problem using RadGrid v2008.1.415.20: the GridEditCommandColumn OK button's image is missing when adding a new row. It's there when editing an existing row. The cancel image is always present.

This is both in IE6 and Firefox 2, with all the different skins I tried (Default2006, Default, Web20).

I'm using the following code to create the RadGrid on a bare page:

<telerik:RadGrid ID="rgrdTransits" runat="server" OnNeedDataSource="rgrdTransits_NeedDataSource" AutoGenerateColumns="false" Skin="Default2006"> 
   <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" EditMode="InPlace"> 
      <Columns> 
         <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" SortExpression="Id" UniqueName="Id" > 
         </telerik:GridBoundColumn> 
         <telerik:GridBoundColumn DataField="Nom" HeaderText="Nom" SortExpression="Nom" UniqueName="Nom"> 
         </telerik:GridBoundColumn> 
         <telerik:GridEditCommandColumn ButtonType="ImageButton"> 
         </telerik:GridEditCommandColumn> 
      </Columns> 
   </MasterTableView> 
</telerik:RadGrid> 

Any ideas how to solve this issue ?

Thanks,

Dominic.
Sebastian
Telerik team
 answered on 16 May 2008
3 answers
159 views

I have a 3-tier hierarchical grid that looks like this:

Areas
    Attributes
        Details

In the Attributes detail table, there are three columns: Description, Grade and Comments. I am performing in-place editing and have chosen to use a GridDropDownColumn tied to a LinqDataSource to bring back a simple english-value pair list that fills the Grade column. This is causing a problem on the client that apparently stops the RadAjaxManager from working. If I take the dropdown out and put a regular bound control back in, all is well. Other custom columns seem to work ok.

Another problem I've run into is that the Description field is supposed to be a read-only field and is marked as such. There are times when hitting Update or Cancel that the grid forgets it's a read-only field and presents a textbox instead.

A third problem I'm having is that when I perform an action that fills the grid I run the following code to turn on edit mode by default in the Attributes detail table:

Protected Sub grdRatingDetail_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdRatingDetail.PreRender  
 
     For Each nestedViewItem As GridNestedViewItem In grdRatingDetail.MasterTableView.GetItems(GridItemType.NestedView)  
         For Each newnest As GridTableView In nestedViewItem.NestedTableViews  
             For Each row As GridDataItem In newnest.Items  
                 row.Edit = True 
             Next  
         Next  
     Next  
 
End Sub 

This code works great every time except the first time the grid is shown - in that case, all the rows' backgrounds are yellow indicating they're in edit mode, but no controls show and the Edit column still shows "Edit" instead of "Update/Cancel."

Rob
Princy
Top achievements
Rank 2
 answered on 16 May 2008
4 answers
216 views
Hi,
I have a grid that has its datasource set server-side.
I have added a GridButtonColumn. What i want to do is instead of when the button is clicked going to the server-side _ItemCommand of the grid, i want it to run a javascript function client-side...

Is this possible ? here is my GridButtonColumn code...

<

Columns><telerik:GridButtonColumn Text="View" CommandName="View"></telerik:GridButtonColumn></Columns>


Thanks
Mark

Mark
Top achievements
Rank 1
 answered on 16 May 2008
7 answers
242 views
I am trying to create an IFRAME within a radEditor WCM field control, but it is getting stripped out when I publish the page.

I have ALLOWSCRIPTS=TRUE in config.xml and I have ALLOWSPECIALTAGS=TRUE in the RadE:radEditorField control in my page layout.

Is there a workaround?

Thanks,
John
John Way
Top achievements
Rank 1
 answered on 16 May 2008
2 answers
155 views

I got an error message trying to install SP1, RadControls for ASP.NET AJAX, saying I must remove previous versions.  So I sam trying to remove them.

In Vista control panel AddRemovePrograms I see:

RadCalendar v2.2
RadMenu v4.4
RadUpload v2.4
RadWindow v1.9

When I try  to uninstall I get Error 1001.

How can I Uninstall these old Telerik programs?

John Davis
Top achievements
Rank 2
 answered on 16 May 2008
6 answers
152 views
Whille moving an appointment in Scheduler works only sometime successfully, some other time browser gives Javascript error at following location:

var _af=_a5[i].parentNode.parentNode.rows[_ae].cells[_a5[i].cellIndex];

in following script: (I am trying move appointment when there is scrollbar in the scheduler and I am almost at the middle or bottom of the scrollbar).

_onDocumentMouseMove:function(e){ var _a5=this.get_cells(); var _a6=$telerik.getScrollOffset(document.body,true); if(this._dragging&&this._draggingAppointment){ for(var i=0,_a8=_a5.length;i<_a8;i++){ var _a9=_a5[i].targetRect; var x=e.clientX; var y=e.clientY; x+=_a6.x; y+=_a6.y; var _ac=_a9.y+_a9.height; var _ad=_a9.x+_a9.width; if(x>=_a9.x&&x<=_ad&&y>=_a9.y&&y<=_ac){ var _ae=0; if(this._dragOrigin){ _ae=this._draggingAppointment._originalParent.parentNode.parentNode.rowIndex+(_a5[i].parentNode.rowIndex-this._dragOrigin.parentNode.rowIndex); }else{ this._dragOrigin=_a5[i].parentNode.cells[0]; } if(_ae<0){ _ae=0; } var _af=_a5[i].parentNode.parentNode.rows[_ae].cells[_a5[i].cellIndex]; if(_af.firstChild==this._draggingAppointment._domElement.parentNode){ return; } if(_af.firstChild.nodeType==3){ _af.removeChild(_af.firstChild); var _b0=this._draggingAppointment._domElement.parentNode.cloneNode(false); _b0.style.zIndex=999; if($telerik.isFirefox){ _b0.style.height=_af.clientHeight+"px"; } _af.appendChild(_b0); } if(this.get_selectedView()!="MonthView"){ _af.firstChild.appendChild(this._draggingAppointment._domElement); }else{ _af.childNodes[1].appendChild(this._draggingAppointment._domElement); } this._keepElementInView(this._draggingAppointment._domElement); return; } } } }
Corey Alguire
Top achievements
Rank 1
 answered on 16 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?