Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
91 views
Standard Grid via LINQ DS
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure? Delete means delete." />

  
Protected Sub ReportGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles ReportGrid.ItemCommand
    If e.CommandName = "Delete" Then
        Dim filepath As String = (CType(e.Item, GridDataItem)).OwnerTableView.DataKeyValues(e.Item.ItemIndex)("Doc_Path").ToString
        If System.IO.File.Exists(Server.MapPath("/Files/" & filepath)) Then
            System.IO.File.Delete(Server.MapPath("/Files/" & filepath))
         End If
    End If
   
End Sub

Fires every time faithfully in IE 7. In FF 4.0 it fails miserably. Ideas/Workarounds?

Lenny_shp
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
381 views
hi,
  In edit form template of gridview i used radnumerictextbox. I validate the value using requiredfiled validator. My initial value is 0 and i set in the required field validator. How can i handle empty text. When i delete values in textbox and press update the validator not captured the error and i got the old value before the textbox used.

How can i hablde this issue?
Devinder
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
371 views
I have a couple of textbox in an Edit Form Template and I need to show or hide one of these textboxes depending upon the data value for that particular row item.  How would I set this textbox to be invisible in the inline edit mode.
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
121 views
Hi,

I have a requirement like:

I have a datatable with 10 columns, out of which I am showing only 5 columns on page. Page also have export button, which is working fine and exporting only five columns with sorting & filtering.

Now due to some requirement , client is expecting to show 5 columns as is on page but while exporting, excel should contain all 10 columns.

Is it possible to full fill this requirement?
Avinash
Top achievements
Rank 1
 answered on 28 Mar 2011
17 answers
478 views
I set EnableEmbeddedSkins="false" and set my custom skin for my radgrid.

The below 3 problems occured when the grid has scrollbar :

1. scrollbar Header background image is not displaying. How to get scrollbar header background.
2. When scrolls, the scrollbar displays tooltip saying that "Page 1 of 1". How to remove this.
3. After the data rows in the grid, one empty row was added at the end. How to remove this.
4. The styles are not applied to the grid when I browse from Firefox.

Kindly help me to fix those problems.

See the attached image for your reference. The problems are circled in Red color in the image.
Rabeek Ahamed
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
149 views
Hi,
    I am using RadGrid. but I am facing some design related prob.
Please download attached .jpeg file and you will get my prob.

RadGrig is like this - 

<telerik:RadGrid runat="server" ID="rgQuestions" OnNeedDataSource="rgQuestions_NeedDataSource"
                                AllowPaging="True" AllowMultiRowSelection="true" OnRowDrop="rgQuestions_RowDrop"
                                Width="100%" PageSize="30" EnableHeaderContextMenu="true" Skin="Default" AutoGenerateColumns="false">
                                <MasterTableView DataKeyNames="Q_QuestionId" TableLayout="Fixed">
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldAlias="Category" FieldName="Q_CategoryName" HeaderValueSeparator=" : ">
                                                </telerik:GridGroupByField>
                                            </SelectFields>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="Q_CategoryName" SortOrder="Ascending"></telerik:GridGroupByField>
                                            </GroupByFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Q_Categoryid" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_CategoryName" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Order" ItemStyle-Width="25px" HeaderStyle-Width="25px"
                                            ItemStyle-HorizontalAlign="Left">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Question">
                                        </telerik:GridBoundColumn>
                                        <%-- <telerik:GridTemplateColumn HeaderText="Edit">
                                    <ItemTemplate>
                                         <asp:HyperLink id="hlinkEdit" runat="server" ToolTip="Edit" ImageUrl="../Images/edit.gif" NavigateUrl='<%#"AddQuestions.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>' >                                          </asp:HyperLink>
                                    </ItemTemplate>
                                    </telerik:GridTemplateColumn>--%>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                    <Resizing AllowColumnResize="true" />
                                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                    <%-- <ClientEvents OnRowDropping="onRowDropping" />--%>
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                </ClientSettings>
                                <PagerStyle Mode="NumericPages" PageButtonCount="4" />
                            </telerik:RadGrid>


waiting for reply...
Pavlina
Telerik team
 answered on 28 Mar 2011
11 answers
262 views
Hi,

We have created a user control which has one radgrid control. The paging/sorting/filtering works well when tested locally.
But when we upload the user control to sitefinity site, the radgrid binds the data correctly but paging/sorting/filtering does not work.
On clicking on these options, it does a post back but no change on the grid.

Can you please help us figure out the issue?

Thank you,
Jay Mehta.
Tsvetina
Telerik team
 answered on 28 Mar 2011
3 answers
104 views
Hi Friends,
Please help me on this condition for MINDATE.

 MinDate='<%# Convert.ToDateTime(Eval("startDate")).ToString("dd/MMM/yyyy") %>'

I have startdate and Finish date. In finish date people cannot enter date lesser than or equal to start date.
So I used the MinDate but MINdate is allowing to enter start date if it is equal . How to avoid enetering same date equal to start date.
I only can enter finish dates greater than start dates.

Please help me in achieving this.

Regards,
Bharath.


Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Mar 2011
1 answer
145 views
We would like to request a new server-side event for the RadGrid. Please add an event called OnLoad or AfterNewBinding. The purpose of this event would be to fire after the grid has been loaded with data. At this point, it is not easy to detect when the datasource's data has changed on the grid so we can select the first row. We can't use pre-render event as the data has not yet been populated. We also tried the ObjectDataSource's Selected event and the data has not been loaded either. 

If we had an event which fired after any new data has been bound and loaded, this would be easy. 

Thank you for your consideration.
Princy
Top achievements
Rank 2
 answered on 28 Mar 2011
1 answer
168 views
Hello Telerik's team!

I would know, is it possible to delete file after upload it?

Thank you!
Dimitar Terziev
Telerik team
 answered on 28 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?