Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
When overflowbehavior is set to scroll on your Q3 beta demos the scroll bar seems to be disabled.  For example try the "first look" sample and click expand to 24 hrs.  Along the same lines if you place scheduler control in a radpane with overflowbehavior set to expand it seems not respect the borders of the radpane and the vertical scroll bar of the radpane doesn't seem to scroll the scheduler control.

Thanks in advance,
--Greg
T. Tsonev
Telerik team
 answered on 20 Oct 2008
2 answers
141 views
hello,

i am using a UserControl for my grid's EditForm. usually i have no problems.

but now i have a problem.. if i use a normal RadComboBox:

<Telerik:RadComboBox ID="rcbVictims"  
DataValueField="VictimPersonID"  
    DataTextField="Name"  
    DropDownWidth="300"  
    ShowToggleImage="false"  
    AllowCustomText="False"  
    MarkFirstMatch="true"  
    Skin="Gray"  
    TabIndex="2"  
    runat="server"> 
     
</Telerik:RadComboBox> 

...this works when i bind to it like so:

private void MyEditForm_DataBinding(object sender, System.EventArgs e) 
{ 
    //bind 
    rcbVictims.DataSource = Victims.GetVictimsByReport(reportID); 
    rcbVictims.DataBind(); 
    rcbVictims.Items.Insert(0, new RadComboBoxItem()); 
 
    //set current value 
    rcbVictims.Items.FindItemByValue(DataBinder.Eval(this.DataItem, "VictimPersonID").ToString()).Selected = true; 
 
    rcbVictims.DataSource = null; 
} 
 

BUT, if i try to use multi columns:

<Telerik:RadComboBox ID="rcbVictims" DataValueField="VictimPersonID" DataTextField="Name" DropDownWidth="300" ShowToggleImage="false" AllowCustomText="False" MarkFirstMatch="true" Skin="Gray" TabIndex="2" runat="server"> 
    <ItemTemplate> 
        <%# DataBinder.Eval(Container.DataItem, "VictimNumber")%> - <%# DataBinder.Eval(Container.DataItem, "Name")%> 
    </ItemTemplate> 
</Telerik:RadComboBox> 

...then the ComboBox fails to render anything -- i only see my separator char, " - ".. No "VictimNumber" nor "Name".

why is this happening?

to test, i placed the same into a non-grid, normal ASPX page. worked fine there.


thanks,
matt


matt
Top achievements
Rank 1
 answered on 20 Oct 2008
1 answer
179 views
I have implemented using the examples in the forum a combobox with a treeview in the itemtemplate. The problem i am having is that the Itemtemplate consumes the entire dropdown area and the "all categories" item i have is not available in the dropdown list. I am using the dropdowns as filters so i need the user to be able to clear the selection. See example below. The "all categories" item is displayed in the combo text box on initial load. When the combo is expanded "all categories" is not a selecteble item. Once the user selects a category there is no way for them to reset the filter to "all categories". Is this by design?

<telerik:RadComboBox ID="comboCategories" runat="server" Height="400px" Style="vertical-align: top;" 
                Width="200px"> 
                <ItemTemplate> 
                    <div id="divCategories"> 
                        <telerik:RadTreeView ID="treeCategories" runat="server" DataFieldID="ID" DataFieldParentID="ParentID" 
                            EnableViewState="true" DataSourceID="sqlDocCategories" DataTextField="Name" DataValueField="ID" 
                            OnClientNodeClicking="categoryClicking"> 
                        </telerik:RadTreeView> 
                    </div> 
                </ItemTemplate> 
                <Items> 
                    <telerik:RadComboBoxItem Text="All Categories" Value="" /> 
                </Items> 
            </telerik:RadComboBox> 

Veselin Vasilev
Telerik team
 answered on 20 Oct 2008
1 answer
198 views
Hi all

I am using RadScheduler

I want to delete appointment of radscheduler from clientside.
I don't want to execute serverside event.

How can be it achieved?


Thanks
T. Tsonev
Telerik team
 answered on 20 Oct 2008
1 answer
119 views
Is there a way to determine if the user selected to edit the occurrence or edit the series when a selection is made from the recurrence action dialog? 

I would would like to be able to determine this, and then execute some server side code based on the selection. 

I am using the RadScheduler for ASP.NET 2008 Q2 release.

Thank you,
Andrew
T. Tsonev
Telerik team
 answered on 20 Oct 2008
3 answers
216 views
Hi All,

I am using radScheduler

How to delete appointment from serverside event 'RadScheduler1_AppointmentDelete' of Radscheduler.

Protected Sub RadScheduler1_AppointmentDelete(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles radSchedulCalender.AppointmentDelete


 End Sub

Thanks

Peter
Telerik team
 answered on 20 Oct 2008
2 answers
165 views
I have a hierarchial grid with 3 levels.  Only the deepest level is editable.  Instead of having a link button on each row, I have checkboxes and a link button in the CommandItemDisplay to allow for edit mode of multiple rows at once. 

When selecting 1 row at a time for editing, everything works fine.  The problem is when I go into edit mode for multiple rows.  For example, I have 2 rows and both are checked.  The first row doesn't go into edit mode, but the second row does. 

The code executes without errors and all selected rows are getting the Edit property set to true, but after rebinding I do not get the expected results of 2 rows in edit mode.

Here is my code:

Protected Sub grdOR_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdOR.PreRender  
 
        If Not ViewState("grdOR_EditIndex") Is Nothing Then 
 
            Dim Keys() As String = ViewState("grdOR_EditIndex").ToString.Split(",")  
            Dim nestedTableViewSKU As GridTableView = CType(grdOR.MasterTableView.Items(Convert.ToInt32(Keys(0))), GridDataItem).ChildItem.NestedTableViews(0)  
            Dim nestedTableViewStore As GridTableView = CType(nestedTableViewSKU.Items(Convert.ToInt32(Keys(1))), GridDataItem).ChildItem.NestedTableViews(0)  
 
            For Each item As GridDataItem In nestedTableViewStore.Items  
 
                Dim chk As CheckBox = DirectCast(item("chkEdit").Controls(0), CheckBox)  
 
                If chk.Checked Then 
 
                    item.Edit = True 
 
                End If 
 
            Next 
 
            nestedTableViewStore.Rebind()  
 
        End If 
 
    End Sub 
 
    Protected Sub grdOR_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdOR.ItemCommand  
 
        Select Case e.CommandName  
 
            Case "MULTIEDIT" 
 
                Dim SKUItem As GridDataItem = CType(e.Item.OwnerTableView.ParentItem, GridDataItem)  
                Dim StyleItem As GridDataItem = CType(SKUItem.OwnerTableView.ParentItem, GridDataItem)  
 
                ViewState("grdOR_EditIndex") = StyleItem.ItemIndex & "," & SKUItem.ItemIndex  
 
        End Select 
 
    End Sub 
 

<telerik:RadGrid ID="grdOR" runat="server" AutoGenerateColumns="False" GridLines="None" Width="100%" Skin="WebBlue" AllowMultiRowSelection="True" > 
            <MasterTableView DataKeyNames="STYL_SEQ_NUM,RVD_QTY" AllowAutomaticUpdates="True" NoDetailRecordsText="No SKU records to display." NoMasterRecordsText="No Style records to display." EditMode="InPlace">  
                <DetailTables> 
                    <telerik:GridTableView runat="server" DataKeyNames="STYL_SEQ_NUM,MSC_MDSE_NUM" NoDetailRecordsText="No Store records to display." > 
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn Visible="True">  
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="CLR_CDE" HeaderText="Color Code" UniqueName="CLR_CDE" > 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="CLR_DCD" HeaderText="Color Desc" UniqueName="CLR_DCD" > 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="STYL_SEQ_NUM" HeaderText="SSN" UniqueName="STYL_SEQ_NUM" > 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="MSC_MDSE_NUM" HeaderText="MSC" UniqueName="MSC_MDSE_NUM" > 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="RVD_QTY" HeaderText="RVD_QTY" UniqueName="RVD_QTY">  
                                <HeaderStyle Width="50px" /> 
                                <ItemStyle Width="50px" /> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridButtonColumn ButtonType="PushButton" Text="Zero" UniqueName="ZERO" CommandName="ZEROSKU">  
                                <HeaderStyle Width="50px" /> 
                                <ItemStyle Width="50px" /> 
                            </telerik:GridButtonColumn> 
                        </Columns> 
                        <DetailTables> 
                            <telerik:GridTableView runat="server" DataKeyNames="STOR_CDE,MSC_MDSE_NUM,RVD_QTY" EditMode="InPlace" AllowAutomaticUpdates="True" CommandItemDisplay="Top" Width="100%" > 
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridClientSelectColumn UniqueName="chkEdit" /> 
                                    <%--<telerik:GridTemplateColumn UniqueName="CheckCol" HeaderText="CheckCol" >    
                                     <ItemTemplate>    
                                         <asp:CheckBox ID="chkStore" runat="server" />    
                                     </ItemTemplate>    
                                    </telerik:GridTemplateColumn> --%> 
                                    <telerik:GridTemplateColumn DataField="STOR_CDE" HeaderText="Store" UniqueName="STOR_CDE" > 
                                        <ItemTemplate> 
                                            <%#Eval("STOR_CDE")%> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <%#Eval("STOR_CDE")%> 
                                        </EditItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn DataField="ORDR_QTY" HeaderText="Quantity" UniqueName="ORDR_QTY">  
                                        <ItemTemplate> 
                                            <%#Eval("ORDR_QTY")%> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <%#Eval("ORDR_QTY")%> 
                                        </EditItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn DataField="MSC_MDSE_NUM" HeaderText="MSC" UniqueName="MSC_MDSE_NUM">  
                                        <ItemTemplate> 
                                            <%#Eval("MSC_MDSE_NUM")%> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <%# Eval("MSC_MDSE_NUM") %> 
                                        </EditItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn DataField="RVD_QTY" HeaderText="RVD_QTY" UniqueName="RVD_QTY">  
                                        <ItemTemplate> 
                                            <%#Eval("RVD_QTY")%> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <asp:TextBox ID="txtRevisedQuantity" runat="server" Text='<%# Bind("RVD_QTY") %>' /> 
                                        </EditItemTemplate> 
                                        <HeaderStyle Width="110px" /> 
                                        <ItemStyle Width="110px" /> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                                <EditFormSettings> 
                                    <EditColumn UniqueName="EditCommandColumn1">  
                                    </EditColumn> 
                                </EditFormSettings> 
                                <CommandItemTemplate>     
                                    <asp:LinkButton ID="btnEdit" runat="server" CommandName="MULTIEDIT" Text="Edit" Visible="true" OnClientClick="setEditMode('EDIT')" />    
                                    <asp:LinkButton ID="btnUpdate" runat="server" CommandName="MULTIUPDATE" Text="Update" Visible="false" OnClientClick="setEditMode('UPDATE')" />     
                                    <asp:LinkButton ID="btnCancel" runat="server" CommandName="MULTICANCEL" Text="Cancel" Visible="false" OnClientClick="setEditMode('CANCEL')" />    
                                </CommandItemTemplate> 
                            </telerik:GridTableView> 
                        </DetailTables>                         
                    </telerik:GridTableView> 
                </DetailTables> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn Visible="True">  
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ITEM_DES" HeaderText="Desc" UniqueName="ITEM_DES">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="VEN_STYL_NUM" HeaderText="Style" UniqueName="VEN_STYL_NUM">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="STYL_SEQ_NUM" HeaderText="SSN" UniqueName="STYL_SEQ_NUM">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridTemplateColumn DataField="RVD_QTY" HeaderText="RVD_QTY" UniqueName="RVD_QTY">  
                        <ItemTemplate> 
                            <%#Eval("RVD_QTY")%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <asp:TextBox ID="txtRevisedStyle" runat="server" Text='<%# Bind("RVD_QTY") %>' /> 
                        </EditItemTemplate> 
                        <HeaderStyle Width="50px" /> 
                        <ItemStyle Width="50px" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridButtonColumn ButtonType="PushButton" Text="Zero" UniqueName="ZERO" CommandName="ZEROSTYLE">  
                        <HeaderStyle Width="50px" /> 
                        <ItemStyle Width="50px" /> 
                    </telerik:GridButtonColumn> 
                </Columns> 
                <EditFormSettings > 
                    <PopUpSettings Modal="True" /> 
                </EditFormSettings> 
            </MasterTableView> 
            <ClientSettings> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                <Selecting AllowRowSelect="True" /> 
                <ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" OnGridCreated="GridCreated"/>  
            </ClientSettings> 
        </telerik:RadGrid> 

Please advise.

Rob
Rob
Top achievements
Rank 1
 answered on 20 Oct 2008
3 answers
62 views
I have several date pickers on a page.  If the user selects any date on or after 1/1/2008, everything works fine.  If they user selects anything on or earlier than 12/31/2007, the SelectedDate is blank.  What am I doing wrong?
Daniel
Telerik team
 answered on 20 Oct 2008
3 answers
73 views
I have RadTabs and RadAjaxpanel  with asp.panel inside. Depending on what tab is click im loading dynamicly control inside asp.panel. Controls are loading without postback that is ok... but no javascript functions are not found on new control... if i click view source, indeed i see source from old control and that is not strange that i cant reach it. Can somebody help me to avoid this problem ASAP  b/s i cant link treeview with js functions on my second control.
Jogn
Top achievements
Rank 1
 answered on 20 Oct 2008
1 answer
125 views
How do I make a RadGrid with a RadTreeview beside it and they both relate the same Data? And If the RadTreeview is collapsed, the same data in the radgrid will not be shown. Thanks
Iana Tsolova
Telerik team
 answered on 20 Oct 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?