Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Most grid events have a Changed event (Index, Sort, PageSize, etc.) but Groups only have a Changing event..??

Shinu
Top achievements
Rank 2
 answered on 13 Dec 2011
1 answer
189 views
Is there are way to drag and drop items that are within a datalist.  See code below, i want to be able to drag and drop rows "Make, Model,....  Thanks.

Here is some sample code:
<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" runat="server" GridLines="None" AllowPaging="true" AllowSorting="true" PageSize="6">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView TableLayout="Fixed">
            <ItemTemplate>
                <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
                <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>' runat="server">
                    <b>Make:</b>
                    <%# Eval("Make")%>
                    <br />
                    <b>Model:</b>
                    <%# Eval("Model")%>
                    <br />
                    <b>Year:</b>
                    <%# Eval("Year")%>
                    <br />
                </asp:Panel>
            </ItemTemplate>
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings AllowDragToGroup="true" AllowRowsDragDrop="true">
            <Selecting AllowRowSelect="true" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        </ClientSettings>
    </telerik:RadGrid>
</asp:Content>

Shinu
Top achievements
Rank 2
 answered on 13 Dec 2011
1 answer
112 views
Hi All,

I have a RadComboBox that I need to cancel events on the client-side blur event. There are no javascript errors in Firefox. However, in IE I receive the following error:

Line: 498
Error: Object doesn't support property or method 'set_cancel'

The Java Script :

function onBlur(sender, eventArgs) {
        eventArgs.set_cancel(true);
}

And the control:
<telerik:RadComboBox runat="server" ID="RadComboBox1" ToolTip="RadComboBox"  Width="100px" DataSource="<%# Model.TestData%>" DataTextField="TestText"    DataValueField="TestID" Skin="SampleSkin" EnableEmbeddedSkins="false" OnDataBound="RadComboBox1_DataBound"  OnClientBlur="onBlur">
</telerik:RadComboBox>

Please assist.

Thanks,
Betty
Princy
Top achievements
Rank 2
 answered on 13 Dec 2011
1 answer
365 views
Hello,

I currently have a RadGrid that is configured for exporting PDF and Excel files.  An Excel and PDF icon automatically appear in the upper right of the grid.

How can I change it so that the PDF and Excel buttons appear at the Bottom Right of the RadGrid (and also Bottom Left)...

Thanks,
Jai
Shinu
Top achievements
Rank 2
 answered on 13 Dec 2011
3 answers
151 views
I have a rad grid with a grid template column of checkboxes. Some are checked and some aren't, I do that in the code behind on the item data bound event. I have a button to export to excel but I need to export only the rows that aren't checked. I really don't even know where to start to do this. What would be the best way to go about this? Here's how I'm exporting right now.

Protected Sub export_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles export.Click
     RadGrid1.ExportSettings.OpenInNewWindow = True
     RadGrid1.ExportSettings.ExportOnlyData = True
     RadGrid1.ExportSettings.IgnorePaging = True
     RadGrid1.MasterTableView.ExportToExcel()
 End Sub
Web Services
Top achievements
Rank 2
 answered on 12 Dec 2011
4 answers
94 views
Hi,

I'm currently evaluating the ASP.NET AJAX Telerik components for use in a Daily Employee Scheduler web app I'll be making.  I've looked at both the RadScheduler and RadGrid however I don't think either fully meets our needs and I'm wondering what you would suggest I use (if any).

The app will generate a schedule that consists of which area the employee will be working for a given day (time ranges etc don't matter).  I also want to be able to drag and drop a work area between two employees and have their value swap, or click to modify on an assigned area to easily change it.  If we think of this as a grid, employee names would be the row header, the date would be the column header and the work area would be the cell value.

The RadScheduler component is attractive (easily able to move around appointments and create new ones), but looks like it's hard coded to have times along the left hand column, ideally I'd like to have employee's names there and the date on the top column but I don't know if that is possible.

The RadGrid component is also attractive, but there doesn't seem to be support for dragging and dropping cells in it, only entire rows.

Any input would be appreciated.  Thanks!
Travis
Top achievements
Rank 1
 answered on 12 Dec 2011
4 answers
199 views
I'm new to radcontrols and need to know how to set the date picker to line up with the other controls... It's below the line a the line a little bit from the pictures.  I'm not sure how to correct this error.

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
    .formLayout
    {
        background-color: #f3f3f3;
        border: solid 1px #a1a1a1;
        padding: 10px;
        width: 300px;
    }
    
    .formLayout label, .formLayout input
    {
        display: block;
        width: 120px;
        float: left;
        margin-bottom: 10px;
    }
 
    .formLayout label
    {
        text-align: right;
        padding-right: 20px;
    }
 
    br
    {
        clear: left;
    }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="formLayout">
        <label>Title</label>
        <select>
            <option>Mr.</option>
            <option>Dr.</option>
            <option>Ms.</option>
            <option>Mrs.</option>
        </select><br />
        <label>First Name</label>
        <input id="name" name="name"><br />
        <label>Last Name</label>
        <input id="Text1" name="name"><br />
        <label>Move in date:</label>
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
        </telerik:RadDatePicker><br/>
        <label>Address</label>
        <input id="address1"><br />
</div>
</asp:Content>
Paul
Top achievements
Rank 1
 answered on 12 Dec 2011
4 answers
168 views
I've spent several hours and multiple approaches to implement both single-clicking and double-clicking in the same listbox.  The results of my testing indicate that it's not possible.

Is this a known bug/deficiency with your listbox?

Robert
Robert
Top achievements
Rank 1
 answered on 12 Dec 2011
12 answers
482 views
I am looking at this example.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultvb.aspx


I do not want the user to have to click any type of "Save" button.  I just want the filters the user applied to a grid to be available the next time they come back to this page.  What would be best way to go about this be?
Ryan
Top achievements
Rank 1
 answered on 12 Dec 2011
2 answers
190 views
Hello all. Been trying to solve a problem to no avail. Have tried everything I can. Basically trying to set the minimun and maximum values of a range validator residing inside RadGrid. But it's not working.

Here is my code.

    <telerik:GridTemplateColumn DataField="claim_date" DataType="System.DateTime"
        FooterText="Totals: " HeaderText="Date" SortExpression="claim_date"
        UniqueName="claim_date">
 
 
        <ItemTemplate>
            <asp:Label ID="claim_dateLabel" runat="server"
                Text='<%# Eval("claim_date", "{0:MM/dd/yyyy}") %>'></asp:Label>
                 
        </ItemTemplate>
 
         
        <EditItemTemplate>
                        <telerik:RadDatePicker ID="claim_dateTextBox" runat="server" DBSelectedDate='<%# Bind("claim_date") %>' Width="100" />
                                                           
             <asp:RequiredFieldValidator ID="fvDateRequiredFieldValidator" runat="server" ErrorMessage="Claim date is required" ControlToValidate="claim_dateTextBox" ValidationGroup="DataEntryChk" Display="Dynamic" Font-Bold="true"  />                                       
             
<asp:RangeValidator ID="fvDateValidator" Type="Date" ControlToValidate="claim_dateTextBox" runat="server" ErrorMessage="Cannot save claim item. Please select/enter a date in the same month as the voucher month." SetFocusOnError="True" ValidationGroup="DataEntryChk" Display="Dynamic" Font-Bold="true"  />  
 
        </EditItemTemplate>
 
        
    </telerik:GridTemplateColumn>


And in code behind I have the following.

Protected Sub ClaimsGV_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles ClaimsGV.ItemCommand
 
 
    If e.CommandName = RadGrid.UpdateCommandName Or e.CommandName = RadGrid.PerformInsertCommandName Or e.CommandName = RadGrid.EditCommandName Then
 
 
        Dim editform As GridEditFormItem = DirectCast(DirectCast(e.Item, Telerik.Web.UI.GridDataItem).EditFormItem, GridEditFormItem)
        'Dim editform As GridEditableItem = CType(e.Item, GridEditableItem)
 
 
        Dim fvDateValidator As RangeValidator = CType(editform.FindControl("fvDateValidator"), RangeValidator)
 
 
        If fvDateValidator IsNot Nothing And iMaxEndDate <> "" And iMinStartDate <> "" Then
            fvDateValidator.Enabled = True
            fvDateValidator.Visible = True
            fvDateValidator.MinimumValue = iMinStartDate.ToShortDateString
            fvDateValidator.MaximumValue = iMaxEndDate.Date.ToShortDateString
        End If
 
 
    End If
 
 
End Sub

John
Top achievements
Rank 1
 answered on 12 Dec 2011
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?