Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
86 views
Hi
I made one page in which i dynamically bind item templates to radgrid now if i use ClientSettings>>Scrolling tag for freeze number of columns than it will show both scroll bar that i doesnt want because there already two vertical scrollbars on popup page and main page in which rad grid will display. I tried some jquery or css for lock first column with overflow-x:auto; where i succeed getting only horizontal srollbar but failed to lock first column so is there any way for achieve this issue ?
Advance thanks!
Mayur
Top achievements
Rank 1
 answered on 14 Jun 2012
2 answers
73 views
Hi all :)

I'd like to add a buttonColumn only for few lines of my radgrid.
For example, it could be the lines where one of my database field has is value to "true"
I don't know how to make that.

Thx
Caro
Top achievements
Rank 1
 answered on 14 Jun 2012
5 answers
504 views
I have a RadGrid in a FormView.  I bind to the FormView with an object datasource. The grid binds to a List that is a property of the object datasource object.   The first time loading the page (in Edit Mode) which retrieves a record everything works fine and the grid binds to the List.    When I hit Submit to save everything I get the error.  We are running 2010.1.415.35
                    <telerik:RadGrid   
                        ID="RegGrid"   
                        runat="server" 
                        Skin="Windows7"   
                        BorderStyle="None" 
                        GridLines="None"   
                        Width="650px"   
                        PageSize="20"   
                        AllowFilteringByColumn="true" 
                        AllowSorting="True"   
                        ShowFooter="True"   
                        AllowPaging="True"   
                        AutoGenerateColumns="False" 
                        EnableLinqExpressions="false"   
                        AllowAutomaticInserts="false"   
                        AllowAutomaticUpdates="false" 
                        AllowAutomaticDeletes="false"    
                        OnItemCreated="RegGrid_ItemCreated" 
                        OnItemCommand="RegGrid_ItemCommand" 
                        OnItemDataBound="RegGrid_ItemDataBound" 
                        OnDeleteCommand="RegGrid_DeleteCommand" 
                        OnInsertCommand="RegGrid_InsertCommand" 
                        OnUpdateCommand="RegGrid_UpdateCommand" 
                        OnNeedDataSource="RegGrid_NeedDataSource">  
                        <ClientSettings> 
                            <Selecting AllowRowSelect="false" /> 
                        </ClientSettings> 
                        <MasterTableView   
                            DataKeyNames="regRequest,item" 
                            EditMode="InPlace" 
                            AllowFilteringByColumn="True" 
                            ShowFooter="True"   
                            CommandItemDisplay="Top"   
                            InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                            CommandItemSettings-AddNewRecordText="Add Package"   
                            ItemStyle-VerticalAlign="top" 
                            AlternatingItemStyle-VerticalAlign="top"   
                            HeaderStyle-HorizontalAlign="Center">  
                            <Columns> 
                                <telerik:GridTemplateColumn AllowFiltering="false">  
                                    <ItemTemplate> 
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Edit">Edit</asp:LinkButton> 
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" OnClientClick="javascript:return confirm('Delete this Reg Item?')">Delete</asp:LinkButton> 
                                    </ItemTemplate> 
                                    <EditItemTemplate> 
                                        <asp:LinkButton ID="LinkButton3" runat="server" Text='<%# ((GridItem)Container).OwnerTableView.IsItemInserted? "Insert" : "Update" %>' 
                                            CommandName='<%# ((GridItem)Container).OwnerTableView.IsItemInserted? "PerformInsert" : "Update" %>'></asp:LinkButton> 
                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> 
                                    </EditItemTemplate> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridBoundColumn DataField="regRequest" Visible="false" /> 
                                <telerik:GridDropDownColumn UniqueName="ddcRegItems" DataField="item" ListTextField="name" ListValueField="item"   
                                     DataSourceID="sqlRegRequestItem" HeaderText="Reg Item" DropDownControlType="DropDownList" EmptyListItemText="- Select A Package -" EmptyListItemValue="0" /> 
                                <telerik:GridBoundColumn DataField="quantity" HeaderText="Qty" DataFormatString="{0:n}" /> 
                                <telerik:GridBoundColumn DataField="price" HeaderText="Price" DataFormatString="{0:C}" ReadOnly="true" /> 
                                <telerik:GridCalculatedColumn HeaderText="Total (USD)" UniqueName="ExtendedPrice"   
                                    DataType="System.Double" DataFields="quantity, price" Expression="{0}*{1}" FooterText="Total : " 
                                    Aggregate="Sum" DataFormatString="{0:C}" /> 
                            </Columns> 
                        </MasterTableView> 
                        <PagerStyle Mode="NextPrevAndNumeric" /> 
                    </telerik:RadGrid> 
    protected void RegGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
          
        RIM.Event.Resources.Regcode.Request _request = (RIM.Event.Resources.Regcode.Request)(Session["Request"]);  
        if (_request != null)  
        {  
            // SELECT NON-DELETED ITEMS  
            List<RegItem> _regitems = _request.regItems.FindAll(p => p.deleted != true);  
              
            ((RadGrid)source).DataSource = _regitems;  
        }  
    } 
Meera
Top achievements
Rank 1
 answered on 14 Jun 2012
1 answer
87 views
As I move an appointement a server side event AppointmentUpdate fires.
AppointmentUpdate fires also when an update comes from advanceform.

How do I know if it is fired because of a drag and drop? 
thank you
Plamen
Telerik team
 answered on 14 Jun 2012
1 answer
83 views
Hi all,

I have set filtering in my radgrid using 'Allow Filtering By column'. I have made the filter button invisible and set autopostbackonfilter on each column want to give the user an idea about what to be given in the textbox, by giving a text like 'Enter name to filter'. How can I  accomplish this?

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 14 Jun 2012
7 answers
166 views
Navigation Pane in radscheduler gets skip. When i try to navigating to weekly base or monthly base , it is navigate to other part, after that it stops to navigate and again to navigate previous week, it skips that week and show the before one. It skips the in between week scheduled. Can u please help me to sort out this problem.
Balaji
Top achievements
Rank 1
 answered on 14 Jun 2012
1 answer
137 views
Hello!!

I need change "insert" tooltip on Inline Add by "save".
Where are this tooltip? I couldn't find it on global resources.


thanks!
Princy
Top achievements
Rank 2
 answered on 14 Jun 2012
1 answer
120 views
Hello Telerik,
we have problems uploading files under Windows XP/IE8.
When we add files only the flashing yellow indicator is shown, but the file is not freed.

The same
behavior was observed in your demo:
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/asyncupload/defaultcs.aspx

The normal async upload without using file explorer works without problems
:
http://demos.telerik.com/aspnet-ajax/upload/examples/async/webmail/defaultcs.aspx

hope you can help us

regards Ronny
Peter Filipov
Telerik team
 answered on 14 Jun 2012
2 answers
91 views
In the AdvancedForm i added some controls

example:
 <ul class="rsTimePickers">
                        <li class="rsTimePick">
                            <label for='<%= VisibleFromDate.ClientID %>_dateInput_text'>Visible from</label><%--
                                Leaving a newline here will affect the layout, so we use a comment instead.
                                --%><telerik:RadDatePicker runat="server" ID="VisibleFromDate" CssClass="rsAdvDatePicker"
                                    Width="110px" SharedCalendarID="SharedCalendar" Skin='<%# Owner.Skin %>' Culture='<%# Owner.Culture %>'
                                    MinDate="1900-01-01">
                                    <DatePopupButton Visible="True" />
                                    <DateInput ID="DateInput1" runat="server" DateFormat='<%# Owner.AdvancedForm.DateFormat %>'
                                        EmptyMessageStyle-CssClass="riError" EmptyMessage=" " EnableSingleInputRendering="false" />
                                </telerik:RadDatePicker>
                             
                        </li>
</ul>

but i can figure out how to get the raddatepicker VisibleFromDate value in the AppointmentInsert function (i tried custom attributes with no success)

I found this thread that seems to apply to my case
protected void Radscheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.AdvancedInsert)
    {
        _VisibleFromDate = (raddatepicker)e.Container.FindControl("VisibleFromDate");
             
    }
}

I got an error here VisibleFromDate control is not found.

I just want to get values from custom controls in the insert but I'm struggling for days,
Help!


Jean-Marc
Top achievements
Rank 1
 answered on 14 Jun 2012
5 answers
130 views

If you have validation controls and RadGrid in the same page, when you are trying to add a new record using the RadGrid Insert command the other control in the same form will fire validation. To solve this issue use this setting in your RadGrid

 

<ValidationSettings EnableValidation="false" CommandsToValidate="NO" ValidationGroup="no" />

 

Basically I am tricking the RadGrid control by passing bogus string to CommandToValidate and ValidationGroup in addition to EnabelValidation should be set to false.

 

I believe this a bug in telerik control but they claim the problem is fixed.


My version is 2009.3.1407.35
 

Thanks

Mohammed

Chamin
Top achievements
Rank 1
 answered on 14 Jun 2012
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?