Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views
Hi,

I'm having a problem in autosize "true" in IE8. window appears scroll bar.
This error only happens with IE8 anyone have any solutions?

thks,
Bruno.

<telerik:RadWindow ID="Win_Central" runat="server"                                
                                Modal="true"
                                Behaviors="Close"
                                InitialBehaviors="Close"                                                                                                                                
                                ReloadOnShow="true"                                
                                OnClientBeforeClose="OnClientBeforeClose"
                                OnClientClose="OnClientClose"
                                OnClientActivate="OnClientActivate"
                                AutoSize="true">
</telerik:RadWindow>
Bruno Roberto
Top achievements
Rank 1
 answered on 29 Jun 2010
1 answer
165 views
There is an automatic feature on RadGrid (and on the default ASP.NET GridView) control for paging the rows in grid. If the datasource is an ObjectDataSource and we set the Select, Insert, Update, Delete, SelectCount methods, and set the EnablePaging="true", and the StartRowIndexParameterName, MaximumRowsParameterName properties also filled with the name of parameters of the ObjectDataSource overloaded method for paging, then the RadComboBox does not set value for the startRow and the pageSize parameter. As a side-effect the RadComboBox does not call the SelectCount method too.
 Here is an example:
 
 The ObjectDataSource declaration:
<asp:ObjectDataSource ID="dsEmplTable" runat="server" DataObjectTypeName="TableObjects.EmplTable" 
        TypeName="TableObjects.EmplTableAdapter" DeleteMethod="DeleteEmplTable" 
        InsertMethod="InsertEmplTable" SelectMethod="SelectEmplTable" UpdateMethod="UpdateEmplTable" 
        OldValuesParameterFormatString="original_{0}" EnableCaching="true" CacheDuration="10" 
        SortParameterName="sortExpression" SelectCountMethod="SelectCount" 
        EnablePaging="true" StartRowIndexParameterName="startRow" MaximumRowsParameterName="pageSize" 
        > 

 The select methods of the TableAdapter class:
 [DataObjectMethod(DataObjectMethodType.Select, true)]  
public EmplTableList SelectEmplTable(string sortExpression, int startRow, int pageSize)  
{  
    //If we use RadComboBox then the values of the startRow and the pageSize variables are 0  
    //If we use RadGrid then these parameters filled properly by default 
 
    //Here we want select only a range of employees from a tons of employee 
    DataAccessLayer.GetEmployees(emplTableCollection, startRow, pageSize); 
 
    SelectCount = emplTableCollection.Count; 
 
    _empltableData = empltableCollection;   
    return _empltableData;  
}  
  • SelectCount is a property on Adapter and its value is strored in Session variable for performance issue

 The select count method of the Adapter class:
public int SelectCountEmplTable() 
    return SelectCount; 

 The RadComboBox that is using the declared ObjectDaraSource below:
<telerik:RadComboBox runat="server" ID="RadComboBox2" DataTextField="EmplId" 
               DataValueField="EmplId" HighlightTemplatedItems="true" Height="190px" Width="220px" 
               DropDownWidth="420px" DataSourceID="dsEmplTable" EnableVirtualScrolling="true" 
               EnableAutomaticLoadOnDemand="True" ItemsPerRequest="10" ShowMoreResultsBox="true"  
               OnItemsRequested="RadComboBox2_ItemRequested" 
               OnItemDataBound="RadComboBox2_ItemDataBound" 
               OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" 
               OnDataBinding="RadComboBox2_DataBinding" 
               > 
               <HeaderTemplate> 
                   <ul> 
                       <li class="col1">Employee Id</li> 
                   </ul> 
               </HeaderTemplate> 
               <ItemTemplate> 
                   <ul> 
                       <li class="col1"><%# DataBinder.Eval(Container.DataItem, "EmplId") %></li
                   </ul> 
               </ItemTemplate> 
</telerik:RadComboBox> 

 My workaround: I've created some Session variable to retrieve the required variables (startRow, pageSize) at ObjectDataSource.Selecting event and set when the ItemRequested.
        protected void Page_Load(object sender, EventArgs e) 
        { 
            this.dsEmplTable.Selecting += new ObjectDataSourceSelectingEventHandler(dsEmplTable_Selecting); 
 
            if (Session["RADCOMBOBOX2_STARTROW"] == null
            { 
                Session.Add("RADCOMBOBOX2_STARTROW", 1); 
            } 
        } 
 
        void dsEmplTable_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) 
        { 
            e.Arguments.StartRowIndex = (int)Session["RADCOMBOBOX2_STARTROW"]; 
            e.Arguments.MaximumRows = (int)Session["RADCOMBOBOX2_MAXIMUMROWS"]; 
        } 

 The questions:
 Why RadComboBox does not support a similiar paging behavior as RadGrid supports?

 Will the new beta support this automatically as RadGrid supports it?

 Maybe I can't understand well the possibilities with RadComboBox and everything works fine if the datasource is ObjectDataSource. I don't want to preclude my mistake. :) So if there is a support for ObjectDataSource paging then how should I use RadComboBox with ObjectDataSource?


Kalina
Telerik team
 answered on 29 Jun 2010
1 answer
55 views
Are any changes planned for RAD Chart in Q2 2010 release?
Giuseppe
Telerik team
 answered on 29 Jun 2010
1 answer
108 views
Hi,

I have been using my grid in EditMode = Popup, it has been working fine but now the edit form stays visible after clicking 'Update' (I am sure it was closing automatically before). I have removed all code in the 'UpdateCommand' event just to be safe but still it does not disappear, any ideas as to what I can check?
Princy
Top achievements
Rank 2
 answered on 29 Jun 2010
1 answer
70 views
Hi-

I am currently getting no text on the spell check dialog.  It is working on one server but not another, I am not sure what I should be looking for.

Could someone please assist ?

Thank you,

-Daniel
Georgi Tunev
Telerik team
 answered on 29 Jun 2010
1 answer
142 views
Have 2 questions, but the error first.  When I select the edit button after changed the rule name, no values are put into my newValues hashtable.  So my edit never takes place.  Other question is I have 2 controls to help create 1 item for a column during edit. How would I combine the control values during the edit.  The two controls are a datepicker and a timeselector control.

Code Behind
   protected void ruleLV_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)
    {
        ruleLV.DataSource = dt;
    }

    protected void ruleLV_ItemCommand(object sender, RadListViewCommandEventArgs e)
    {
        if (e.CommandName == RadListView.CancelCommandName)
        {
            ruleLV.InsertItemPosition = RadListViewInsertItemPosition.None;
           // ruleLV.FindControl("Button1").Visible = true;
        }
        else if (e.CommandName == RadListView.UpdateCommandName)
        {
            RadListViewEditableItem item = (RadListViewEditableItem)e.ListViewItem;
            Hashtable newValues = new Hashtable();
            item.ExtractValues(newValues);

            DataTable newDT = dt;
            DataRow[] changedRows = newDT.Select("RuleID = " + e.ListViewItem.OwnerListView.DataKeyValues[e.ListViewItem.OwnerListView.EditIndexes[0]]["RuleID"].ToString());


            if (changedRows.Length != 1)
            {
                e.Canceled = true;
                return;
            }
            changedRows[0].BeginEdit();
            try
            {
                foreach (DictionaryEntry entry in newValues)
                {
                    changedRows[0][(string)entry.Key] = entry.Value;
                }
                changedRows[0].CancelEdit();
                this.ViewState["_lvds"] = newDT;
            }
            catch (Exception ex)
            {
                changedRows[0].CancelEdit();
                e.Canceled = true;
            }



        }
    }

MarkUp

 <telerik:RadListView ID="ruleLV" runat="server" AllowPaging="True"
                DataKeyNames="RuleID" ItemPlaceholderID="RulePlaceHolder"
                onitemcommand="ruleLV_ItemCommand" onneeddatasource="ruleLV_NeedDataSource"
                PageSize="5" Skin="Windows7">
                <LayoutTemplate>
                    <table ID="Table1" runat="server">
                        <tr>
                            <th ID="SummaryIdHdr" runat="server" width="150px">
                                Rule ID</th>
                            <th ID="BegTimeStampHdr" runat="server" width="200px">
                                Start Date/Time</th>
                            <th ID="EndTimeStampHdr" runat="server" width="200px">
                                End Date/Time</th>
                        </tr>
                        <tr ID="RulePlaceHolder" runat="server">
                        </tr>
                    </table>
                    <fieldset style="text-align: center; background-color: white;">
                    </fieldset>
                </LayoutTemplate>
                <EditItemTemplate>
                    <tr ID="rules" runat="server" bgcolor="white">
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SummaryID") %>'> </asp:TextBox>
                        </td>
                        <td>
                            <telerik:RadDatePicker ID="startDate" runat="server"
                                Calendar-ShowRowHeaders="false" SelectedDate='<%# Bind("BegTimeStamp") %>'>
                            </telerik:RadDatePicker>
                        </td>
                        <td>
                            <MKB:TimeSelector ID="time1" runat="server" Date='<%# Bind("BegTimeStamp") %>'
                                MinuteIncrement="1">
                            </MKB:TimeSelector>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("BegTimeStamp") %>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("EndTimeStamp") %>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" CommandName="Update" Text="Update"
                                Width="70px" />
                        </td>
                        <td>
                            <asp:Button ID="Button2" runat="server" CausesValidation="false"
                                CommandName="Cancel" Text="Cancel" Width="70px" />
                        </td>
                    </tr>
                </EditItemTemplate>
                <ItemTemplate>
                    <tr ID="rules0" runat="server" bgColor="White">
                        <td>
                            <%#Eval("SummaryID") %></td>
                        <td>
                            <%#Eval("BegTimeStamp") %></td>
                        <td>
                            <%#Eval("EndTimeStamp") %></td>
                        <td>
                            <asp:Button ID="Button1" runat="server" CommandName="Edit" Text="Edit" />
                        </td>
                    </tr>
                </ItemTemplate>
            </telerik:RadListView>
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="ruleLV"
                PageSize="1" Width="550px">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField />
                </Fields>
            </telerik:RadDataPager>

Rosen
Telerik team
 answered on 29 Jun 2010
7 answers
202 views
I find that whenever I use RadTabStrip + RadMultipage in a complex FormView, I get:
  1. Slower and slower response inside VS2008...
  2. Memory bloat - up to about 1Gb used - then...
  3. VS crashes (3 times this morning!! Each after use of 1Gb memory)

I only seem to have this problem when using these components in a complex form - otherwise VS etc is quite stable

Ideas?

XP SP3 (4Gb ram)
Telerik 2010 controls
ASP.NET 2.0/3.5

Steve
Dimitar Milushev
Telerik team
 answered on 29 Jun 2010
1 answer
143 views
Hi,

We currently have a RadAjaxPanel within a TabPanel. Within the RadAjaxPanel we have a user control which contains a repeater that displays a list of product results and each result has an add to basket button. This button adds one of the product by default to the basket (and the mini basket within the page) unless the user puts a different amount in the quantity box.

However whenever this button is pressed, it adds 2 of the product to the basket. We use the usercontrol elsewhere in the site and it works as it should. However when placed inside a RadAjaxPanel it appears to not work as it should.

Any ideas?

Thanks
Paul
Veli
Telerik team
 answered on 29 Jun 2010
1 answer
149 views
We are running into issues where the scheduler is adjusting the visible location of appointments based on daylight savings.  We do not need this functionality.  Can this be disabled?
T. Tsonev
Telerik team
 answered on 29 Jun 2010
1 answer
285 views
Hi,

Is there an easy way to create a CSS style to set the width and height of a RadToolTip?

Currently I am setting them as part of the declaration (see below) of the RadToolTip, but would like to make it easier to maintain with a single style.

<

 

telerik:RadToolTip Title="Help" runat="server" ID="RadToolTipPassword" HideEvent="ManualClose"

 

 

ShowEvent="OnClick" TargetControlID="imgPassword" IsClientID="false" Width="150" Height="300" />

 



Thanks,
Shinu
Top achievements
Rank 2
 answered on 29 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?