Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
385 views
Hello,

I would like to suggest two useful features for FileExplorer:

1-) Integrate the Image Editor in context menu to resize image files.
2-) Add paging support for folders with large number of files.


Kind Regards,
Newton
Michael
Top achievements
Rank 1
 answered on 25 Jun 2009
1 answer
207 views
I want to create a CustomValidator that will ensure that one of two different controls has a value. How do I get a reference to both controls in the ServerValidate event? My grid looks something like:

<telerik:RadGrid ID="MyGrid" runat="server" 
    OnNeedDataSource="MyGrid_NeedDataSource" 
    OnItemDataBound="MyGrid_ItemDataBound" 
    OnInsertCommand="MyGrid_InsertCommand" 
    OnUpdateCommand="MyGrid_UpdateCommand" 
    OnDeleteCommand="MyGrid_DeleteCommand" 
    > 
    <MasterTableView DataKeyNames="Key" CommandItemDisplay="Top" EditMode="InPlace"> 
        <Columns> 
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" 
                <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                <ItemStyle Width="40px" HorizontalAlign="Center" /> 
            </telerik:GridEditCommandColumn> 
 
            <telerik:GridTemplateColumn UniqueName="Category" HeaderText="Category"> 
                <ItemStyle Width="100px" /> 
                <HeaderStyle Width="100px" /> 
                <ItemTemplate> 
                    <%#DataBinder.Eval(Container.DataItem, "Category.Name") %> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="CategoryEdit" runat="server" 
                        Width="100%" 
                        DataSourceID="CategoryDataSource"  
                        DataTextField="Name" DataValueField="Key" 
                        SelectedValue='<%#Bind("CategoryKey") %>'> 
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
 
            <telerik:GridTemplateColumn UniqueName="Contact" HeaderText="Contact"> 
                <ItemStyle Width="150px" /> 
                <HeaderStyle Width="150px" /> 
                <ItemTemplate> 
                    <%#DataBinder.Eval( Container.DataItem, "ContactName" )%> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="ContactEdit" runat="server" 
                        Width="100%" 
                        DataSourceID="ContactDataSource"  
                        DataTextField="Name" DataValueField="Key" 
                        SelectedValue='<%#Bind("ContactKey") %>'> 
 
                    <asp:CustomValidator ID="ContactOrDescriptionValidator" runat="server"  
                        Display="Dynamic" 
                        ErrorMessage="Item must have a contact or a description." 
                        OnServerValidate="MyGrid_ContactOrDescriptionValidator_ServerValidate" 
                        > 
                    </asp:CustomValidator> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
 
            <telerik:GridTemplateColumn UniqueName="Description" HeaderText="Description"> 
                <ItemStyle Width="150px" /> 
                <HeaderStyle Width="150px" /> 
                <ItemTemplate> 
                    <%#DataBinder.Eval( Container.DataItem, "Description" )%> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <telerik:RadTextBox ID="DescriptionEdit" runat="server"  
                        Width="100%" MaxLength="50" 
                        Text='<%#Bind("Description") %>'> 
                    </telerik:RadTextBox> 
                </EditItemTemplate> 
            </telerik:GridTemplateColumn> 
 
            <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn"  
                CommandName="Delete" 
                <HeaderStyle Width="20px" HorizontalAlign="Center" /> 
                <ItemStyle Width="20px" HorizontalAlign="Center" /> 
            </telerik:GridButtonColumn> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid>  


Notice that my CustomValidator does not have a ControlToValidate value because I want to ensure that either the ContactEdit combo box has a value or the description has a value. Is there a way to do this or am I required to have a custom edit form?
Thomas
Top achievements
Rank 1
 answered on 25 Jun 2009
0 answers
99 views
I am correctly receiving a parameter passed to a RadWindow using:

    protected void Page_Load(object sender, EventArgs e)
    {
          WORDC.SelectParameters["WORID"].DefaultValue = Request.QueryString["WORID"];
    }


How do I get the stored proc, WORDC to execute? It is in a RadTabStrip control:
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Outlook"
         MultiPageID="WORDetails" DataSourceID="WORDC" SelectedIndex="0" AutoPostBack="true">

TIA,

Joe B
 
Brad
Top achievements
Rank 2
 asked on 25 Jun 2009
2 answers
90 views
I have a Radgrid with EditMode="EditForms". When adding a new record, I accidently hit the Enter key and it cleared all data I entered. What event get fired by clicking on Enter key and how to prevent this from happening?

I also tried in editing and noticed that clicking on Enter key make the screen reload the data. All updates are gone.

Does anyone come cross this kind of problem?

Thanks!
Ying
Ying
Top achievements
Rank 1
 answered on 25 Jun 2009
0 answers
87 views
Hi

   I want an arrow image at end of RadMenuItem text if it has childs...

   And How can i change that arrow image in to another image after it expanded..

   Thanks
    Srikanth gn
srikanth
Top achievements
Rank 1
 asked on 25 Jun 2009
1 answer
118 views
I am using the RadScheduler with advanced edit and insert forms.  I used the SchedulerDefaultForm from the demo site as my starting point and have changed quite a bit of it to get it to do what I want.  I have it wired up to use the javascript file that allows me to use recurrence and I've added some more fields.  I have the inserting, deleting, and editing (of both single occurrence and series) working just fine.

Everything is working fine except for the validation.  I have tried to strip out the validation that comes with the SchedulerDefaultForm (where the validation message is displayed as a tooltip) so that it matches the validation I'm using in the rest of my site.  I edited the javascript file to get rid of the tooltip functionality (commmented out the _initializeAdvancedFormValidators function) and I have most of it working.  For instance, when I don't fill in the Subject field and I exit the textbox or click "Save", the validator shows up like I want it to.  The problem has to do with the validators on the start and end date and time fields.  When I clear a date or time field and move out of the box, the validator shows up like I want it to.  However, when I click the "Save" button the validator disappears.  So if I try to save an appointment without a subject and start date, the subject validator displays but the start date validator does not, even though I'm using requiredFieldValidators for both.  In both cases, when I clear the field and move out of the textbox, the validator appears like it should.  It's only when I click "Save" that the problem occurs.

I know the validator is firing because when I fill out all required fields except the start date, I am still unable to submit the form.  However, no message appears indicating why I cannot submit the form.  

Another issue I am having is that I cannot get a validation summary to display anywhere on the page.  The setup I have is that I have a InsertEvent.ascx control and a DefaultSchedulerForm.ascx control inside of the InsertEvent.ascx control.  The save button is on the InsertEvent.ascx control and I would like my validation summary to be on the InsertEvent.ascx control.  However, even though validation is firing and the individual validators are displaying next to the fields, the validaiton summary does not display.  I have tried moving it to the DefaultSchedulerForm.ascx control and it still doesn't display.  I have checked my validation groups on everything and it all looks okay.  Any ideas?
laura
Top achievements
Rank 1
 answered on 25 Jun 2009
1 answer
110 views
Hello,

Is it possible for RadGrid and its DetailTables to share a single instance of EntityDataSource?

So, if i have two tables Orders and OrderItems where OrderItems would have FK OrderID to Orders table.  Now with EntityDataSource property setup to "include" OrderItems, I should be able to define a DetailTable with DataMember = '<%# Eval("OrderItems) %>', and yes, sharing the same data source as MasterTableView.  I know this is possible in a ListView but I couldn't get it to work with RadGrid.

Thanks!
Nikolay Rusev
Telerik team
 answered on 25 Jun 2009
2 answers
64 views
We are working with RadEditor in a RadWindow.  I have been able to duplicate this behavior in you live demo (RadEditor in a RadWindow) (that was installed with Q1 2009 assemblies)

When you open the window, switch to HTML view and remove all content. 
Switch back to Design view. 
Type a line of text ("test" is sufficient), the highlight the line, and try to apply the H1 (or any other ones besides 'normal').

The dropdown becomes "Paragraph" and all your text disappears in design mode.  The text loses all formatting (if the save even works at this point).  If you switch between.  A javascript error is generated if you switch again between HTML and design modes.

We could not reproduce this behavior on the web site live demo so either you have already addressed this issue?

Thanks!
Shawn
Top achievements
Rank 1
 answered on 25 Jun 2009
2 answers
343 views
Hi,

Does any one of you have answer for providing user need indentation for the Detail table in a RAD Grid control? By default, it is coming with some depth of indentation, but I need more room for the detail table to differentiate it from the master table.

The RAD Grid version is 4.6 

Hope someone have answer for this.

Thanks in Advance
Viswa

Viswanathan
Top achievements
Rank 1
 answered on 25 Jun 2009
2 answers
289 views

We purchased the Telerik ASP.Net AJAX control set last week, and one of the main reasons for this purchase was the virtual scrolling grid.

This grid example is flawed in three major ways:

1)      The virtual item count is hard-coded

2)      The selected rows are being determined by the row ID of the selected table

3)      The scrolling does not function properly.

The example being used is based on a very unrealistic query from a single table where the row selections are being determined by the row id's of the table. In almost any real-world example, a query would be derived from a query involving more than a single table, which would preclude the use of a table row id as a row selection device. I have figured out how to get around this limitation using SQL Server 2005, which has a built in function called ROW_NUMBER() that allows me to add row numbers from the returned recordset, and select a subset of the returned records by row number.  Another problem with this example is the fact that you have used a hard-coded value for the virtual Item Count. Once again, in a real-world scenario, no query would produce the same number of results every time, and in order for the virtual scrolling to work properly, this is a necessity. I got around this problem by performing a second query without limiting the returned rows to just get the count.

But the problem I can’t get around is that the scrolling in this example does not work properly in IE or Firefox. Just navigate to the example, and click a single time on the down arrow at the base of the scroll bar. Wait for 3-5 seconds, and click the arrow again. Do this 4-6 times and you will see the problem.

1st Click – grid moves down one row (no problem)

2nd Click - grid moves down one row (no problem)

3rd Click – grid moves down one row, then goes to page two, and the grid posts back to the server and returns a single record from page 2.

4th Click – grid posts back, the scroll tool tip indicates that the grid is moving to page4, then changes to indicate page 5, but the paging navigation at the bottom is indicates that we are on page 4

5th Click – grid posts back, the scroll tool tip indicates that the grid is moving to page 6, then changes to indicate page 8, but the paging navigation at the bottom indicates that we are on page 6

6th Click – grid posts back, the scroll tool tip indicates that the grid is moving to page 9, then changes to indicate page 13, but the paging navigation at the bottom indicates that we are on page 9

Every subsequent click of the down arrow causes the grid to post back to the server.

Veli
Telerik team
 answered on 25 Jun 2009
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?