Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
93 views
Hi,

I've got a problem.
When I open RadWindow1 with for example 800x600 dimension and then open a second, bigger RadWindow2 with for example 950x640 dimension the parent window default.aspx (fullscreen with 1280x1024 screen resolution) gets scrollbars visible.
Is there a posibility to fix this problem? I've a little sample project to illustrate. But how can I attach this zip file to the forum?

Thanks, Tobi
Tobias
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
90 views
Hi!

Is it possible to show a loading panel while uploading a file with the fileexplorer. If so, how could i do this

Regards,
Marlou
Fiko
Telerik team
 answered on 16 Dec 2009
3 answers
153 views
Hi All,

I am using following code, after loading grid data those record are displayed in grid, the real problem is that once i unchecked any record from first page(i.e. grid first page), and move to next page and again come back the first page, it will not display unchecked record, why?

<telerik:RadGrid ID="rgEventResult" Width="100%" runat="server" AllowFilteringByColumn="false"
                AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="false"
                AllowMultiRowSelection="true" AutoGenerateColumns="False" Height="370px" PageSize="10"
                OnNeedDataSource="rgEventResult_NeedDataSource" OnItemCreated="rgEventResult_ItemCreated"
                OnItemDataBound="rgEventResult_ItemDataBound">
                <HeaderContextMenu EnableEmbeddedSkins="False" />
                <ItemStyle Wrap="True" />
                <PagerStyle AlwaysVisible="True" ShowPagerText="true" Mode="NextPrevAndNumeric" />
                <MasterTableView DataKeyNames="Id" ItemStyle-Wrap="true" TableLayout="Auto">
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="SelectColumn" HeaderStyle-Width="25px">
                            <HeaderStyle Width="25px"></HeaderStyle>
                        </telerik:GridClientSelectColumn>
                        <telerik:GridBoundColumn UniqueName="EventAttendeeId" HeaderText="Event Attendee Id"
                            DataField="EventAttendeeId" Display="false" />
                        <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="EventEmail" />
                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="EventFirstName" />
                        <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="EventLastName" />
                        <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company" UniqueName="EventCompanyName" />
                        <telerik:GridBoundColumn DataField="Status" HeaderText="Registration Status" UniqueName="EventStatus" />
                        <telerik:GridBoundColumn DataField="EventTitle" HeaderText="Event Title" UniqueName="EventTitle" />
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowColumnHide="false" AllowColumnsReorder="false" AllowDragToGroup="false"
                    ReorderColumnsOnClient="false">
                    <Selecting AllowRowSelect="True" />
                    <Resizing ClipCellContentOnResize="false" AllowColumnResize="true" ResizeGridOnColumnResize="true" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ScrollHeight="100%" />
                </ClientSettings>
            </telerik:RadGrid>

protected void rgEventResult_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            ContactListDetailService.ContactListDetailClient proxyDetail = new ContactListDetailService.ContactListDetailClient();
            List<System.Guid> eventIds = new List<Guid>();
            List<System.Guid> statusIds = new List<Guid>();

            if (Session["EventIds"] != null)
            {
                eventIds = Session["EventIds"] as List<System.Guid>;
            }

            if (Session["StatusIds"] != null)
            {
                statusIds = Session["StatusIds"] as List<System.Guid>;
            }

            try
            {
                epp2ClientPL.ContactListDetailProperties[] details = proxyDetail.LoadByEventAndStatusIds(eventIds.ToArray(), statusIds.ToArray());
                rgEventResult.DataSource = details; // proxyDetail.LoadByEventAndStatusIds(eventIds, statusIds);
                lblTotal.Text = details.Count().ToString();
            }
            catch
            { }
            finally
            {
                if (proxyDetail != null)
                {
                    proxyDetail.Close();
                    proxyDetail = null;
                }
            }
        }

protected void rgEventResult_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem dataItem = (GridDataItem)e.Item;
                dataItem.Selected = true;
            }
        }

waiting for reply


Thanks & Regards,
Dharmesh





Schlurk
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
90 views
Morning all,

I just follow the example ( http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx) using DialogOpener, and I have been asked to disable 'Delete' from context menu. I can not find a way to access to default RadContextMenu. Does anybody know how to do this?  BTW: I am working on RadControls_for_ASP.NET_AJAX_2009_1_402.

Q2: I use subversion for version control, so that I can see the .svn hidden folder after setting up dialogParams.ViewPaths. Is there any way to not show such hidden folders except implementing customer FileSystemContentProvider.

Q3: How can I show image thumbnails after loading image manager with my current version (have no chance to upgrade to higher version recently)

Many thanks in advance.

Cheers,
Rachael
Rumen
Telerik team
 answered on 16 Dec 2009
1 answer
866 views
Hi,

I am using a Telerik RadGrid in my project.
The concept is i will use single grid for the whole project.
In that grid SelectColumn[one checkbox column],Edit and Delete columns are common for all pages.
Other column will vary based on the page.

So i have set 'AutoGenerateColumn = true'.
And i have created 3 static columns i.e) one.GridClientSelectColumn and two GridButtonColumns [one for delete and another one for edit].
At run time i will bind the grid as 'AutoGeneratecolumn = true' other columns will come based the datasource.

I have assigned the 'Item-Style' for the Horizontal and Vertical alignments.But it is not working.
Here is my code in aspx
 <MasterTableView> 
                        <Columns> 
                            <Telerik:GridClientSelectColumn UniqueName="SelectColumn" ItemStyle-HorizontalAlign="Center" 
                                ItemStyle-VerticalAlign="Middle"
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
                            </Telerik:GridClientSelectColumn> 
                            <Telerik:GridButtonColumn UniqueName="EditColumn" CommandName="View" ButtonType="ImageButton" 
                                ImageUrl="~/img/Edit.gif" Text="Edit" HeaderText="Edit" ItemStyle-Width="20px" 
                                HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center" Resizable="false" 
                                Visible="false"
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
                            </Telerik:GridButtonColumn> 
                            <Telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" Text="Delete" 
                                HeaderText="Delete" ButtonType="ImageButton" ImageUrl="~/img/Delete_Telerik.gif" 
                                ConfirmText="Are you sure you want to delete?" ItemStyle-VerticalAlign="Middle" 
                                ConfirmTitle="Delete" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center" 
                                Resizable="false"
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
                            </Telerik:GridButtonColumn> 
                        </Columns> 
                        <NoRecordsTemplate> 
                            <table width="100%" style="height: 75px;" border="0" cellpadding="1" cellspacing="1"
                                <tr align="left"
                                    <td align="left" valign="middle"
                                        <br /> 
                                        <br /> 
                                        No records to display 
                                    </td> 
                                </tr> 
                            </table> 
                        </NoRecordsTemplate> 
                    </MasterTableView> 

But still Select checkbox, Edit image and Delete image and other column Text all are left aligned.
What is the problem?
I need to set vertical aligned middle and horizondal aligned center...
Please give me the solution.

Thanks,
Kumar
Dimo
Telerik team
 answered on 16 Dec 2009
2 answers
114 views
Hi, I am using Q2 2009, using a Radgrid, I have a few GridHyperLinkColumn's, they export fine to PDF and Excel, but usung ExportToCSV() simply returns an empty field on those columns. I have ExportOnlyData set to true and in order to be able to use these columns I had to do the trick for the CSV depicted here , which is kind of an old post and it reads that this problem had already been addressed, am I missing something?

Thanks
Luis



luisfernandoCR
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
63 views
Binding the radcomboboxes in the edit item template in radgrid,where two radcomboboxes has relation.and they had to be selected when we  click edit.

Example:

I have two radcombobboxes in two  Different  EditItem Templates's ,one radcombobox consists of country's and based on the selection of the country another rad combobox is get databinded with city.

While inserting there is no problem,but when i click edit the radcomboboxes are not been selected with there selected values.
Veselin Vasilev
Telerik team
 answered on 16 Dec 2009
2 answers
373 views
How to Set the Default Font to the Rad Editor

By default  it is taking the Default  System font(Times New Roman) in my system
How to add The Fonts List to the RadEditor
Please help me to find the Solution
Rumen
Telerik team
 answered on 16 Dec 2009
3 answers
179 views
Hello,

Is it possible to only load the controls inside of RadSlidingPane when the pane is being expanded?  I can only see client events that can handle expand/collapse actions.  Is it possible to handle these type of events on the server side?

thank you,

Jerry
Svetlina Anati
Telerik team
 answered on 16 Dec 2009
1 answer
111 views
Hi,

I have been having some trouble with the following:

My application has a number of RadNumericTextboxes, in which decimal numbers are entered. My current (and desired) culture settings use a ',' as a decimal separator. My users want to be able to use the '.' on their numeric pad for entering it (much like calc.exe does, it accepts both ',' and '.' and enters a ',').
This does not work with the control and I don't think there is a direct way of setting this option.
If there is an option, please tell me.

As I expect there is no such option, I have written a piece of javascript to handle the OnKeyPress event:
function Dot2Comma(sender, eventArgs) { 
      var c = eventArgs.get_keyCharacter(); 
      if (c == '.') { 
        eventArgs.set_cancel(true); 
        sender.Value = sender.Value + ','; 
      } 
    } 

It goes wrong on the line "sender.Value = sender.Value + ',';" is there any way of adding the ',' from javascript?

Would it be possible to add this functionality in a later version of the telerik radcontrols?
Dimo
Telerik team
 answered on 16 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?