Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
We are getting a crash in the scheduler that is webService bound whenever we have it set to weekview, with the groupBy property set and the showResourceHeaders set to false.

I will try to include the source files that should allow you to duplicate this issue, I am using version 2009.3.1103.

.aspx
<script runat="server"> 
protected void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e) 
    { 
        // Clear any previous resources in the scheduler 
        RadScheduler1.Resources.Clear(); 
 
        var consultants = new List<RssSchedulerConsultant> 
                              { 
                                  new RssSchedulerConsultant 
                                      {Name = "test1", Id = 1} 
                              }; 
 
        // Create our new sub-classes schedulerInfo class 
        var info = new RssSchedulerInfo 
                                     { 
                                         ViewStart = e.SchedulerInfo.ViewStart, 
                                         ViewEnd = e.SchedulerInfo.ViewEnd, 
                                         ViewableConsultants = consultants, 
                                         Consultant = null 
                                     }; 
 
        // Assign it to the eventArgs 
        e.SchedulerInfo = info; 
    } 
</script> 
 
  <telerik:RadScheduler ID="RadScheduler1" runat="server" Height="100%"  
    WeekView-GroupBy="Consultant" SelectedView="WeekView"  
    OnResourcesPopulating="RadScheduler1_ResourcesPopulating"  
    ShowResourceHeaders="false">  
    <WebServiceSettings Path="~/WebServices/ConsultantDayViewScheduler.asmx" ResourcePopulationMode="ServerSide" />  
  </telerik:RadScheduler>  

RssSchedulerInfo.cs
using System.Collections.Generic; 
using Telerik.Web.UI; 
using System; 
 
namespace Sonic.Rrs.MvcWeb.WebServices.Models 
{ 
    public class RssSchedulerInfo : SchedulerInfo 
    { 
        public IList<RssSchedulerConsultant> ViewableConsultants { get; set; } 
 
        public RssSchedulerConsultant Consultant { get; set; } 
    } 
 
    public class RssClinic 
    { 
        public int Id { get; set; } 
        public string Name { get; set; } 
        public DayOfWeek StartDay { get; set; } 
        public DayOfWeek EndDay { get; set; } 
    } 
 
    public class RssSchedulerConsultant 
    { 
        public string Name { get; set; } 
        public long Id { get; set; } 
        public RssClinic Clinic { get; set; } 
    } 
} 

WebService
[WebMethod(EnableSession = true)] 
        public IEnumerable<ResourceData> GetResources(RssSchedulerInfo schedulerInfo) 
        { 
            var resources = new List<ResourceData>(); 
            foreach (RssSchedulerConsultant consultant in schedulerInfo.ViewableConsultants) 
            { 
                var resourceItem = new ResourceData 
                                       { 
                                           Available = true, 
                                           Key = consultant.Id.ToString(), 
                                           Text = consultant.Name, 
                                           Type = "Consultant" 
                                       }; 
                resources.Add(resourceItem); 
            } 
 
            return resources; 
        } 

Any ideas?
T. Tsonev
Telerik team
 answered on 07 Dec 2009
5 answers
304 views
Hello,
I have an aspx form with a window manager on there, and I am opening new windows client side based on user action.  When the window is created, I want to set a custom icon that may be different depending on what the user clicked (Search, Edit Customer, Edit Order, New Order, etc...).  The windows are opening fine, and the iconUrl is set, because I retrieve it later, and show it in a listing of open windows.  However, only the default icon appears in the window's title.  Am I missing a call or something to tell it to refresh the title bar? 

Thanks in advance.
Lance


I am using the following code to open the windows.
                function OpenWindow(url, id, iconUrl)  
                {  
                    var wnd = $find(id);  
                    if (!wnd)  
                    {  
                        wnd = window.radopen(url, id);  
                        if (iconUrl)  
                        {  
                            wnd.set_iconUrl(iconUrl);  
                        }  
                    }  
                    else 
                    {  
                        wnd.show();  
                    }  
                    return false;  
                } 

Georgi Tunev
Telerik team
 answered on 07 Dec 2009
4 answers
141 views
Hi all,

I have 20 columns in grid, i wanted to show header in 2 rows (10 columns,10 columns) and also it should support grouping and sorting, please tell me any possible ways to do this,  it is very urgent for me, please save me, help me regarding this.
pradeep k
Top achievements
Rank 1
 answered on 07 Dec 2009
2 answers
224 views
Hi folks there !

I have been using the RAD GRID for a quite some while in my project.

I have enabled the FILTERING option on to my RAD GRID.

How can I minimize the HEIGHT of the TEXT BOX that appers with the FILTER Icon when we enable the filtering option.

Please help.

Below is the code that I ahve been using in my application :-

<telerik:RadGrid ID="AllFilesRadGrid" runat="server" DataSourceID="AllFilesSqlDataSource" 
                    GridLines="None" AllowFilteringByColumn="True" Skin="Vista">  
                    <MasterTableView AutoGenerateColumns="False"  DataKeyNames="File_Id" AllowFilteringByColumn="True" DataSourceID="AllFilesSqlDataSource">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="File_Name" HeaderText="File Name" SortExpression="File_Name" 
                                UniqueName="File_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">  
                                <ItemStyle Width="50px" CssClass="GridCSS" /> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="File_Path" HeaderText="File Path" SortExpression="File_Path" 
                                UniqueName="File_Path" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">  
                                <ItemStyle Width="50px" CssClass="GridCSS" /> 
                            </telerik:GridBoundColumn>                        
                            <telerik:GridBoundColumn DataField="File_Type" HeaderText="File Type" SortExpression="File_Type" 
                                UniqueName="File_Type" ReadOnly="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">  
                            </telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn DataField="StatusOfFile" HeaderText="File Status" SortExpression="StatusOfFile" 
                                UniqueName="StatusOfFile" ReadOnly="True" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="File_UploadedDate"  DataType="System.DateTime" 
                                HeaderText="Uploaded Date" SortExpression="File_UploadedDate" UniqueName="File_UploadedDate" DataFormatString="{0:MM/dd/yy}"  HtmlEncode="false">  
                            </telerik:GridBoundColumn> 
                                 <telerik:GridBoundColumn DataField="File_UploadedByName" DataType="System.Int32" HeaderText="Uploaded By" 
                                SortExpression="File_UploadedByName" UniqueName="File_UploadedByName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn" AllowFiltering="false" AutoPostBackOnFilter="false"  ShowFilterIcon="false">  
                                <ItemTemplate> 
                                  
                                    <asp:ImageButton ID="DownloadImageButton" AlternateText="Download" runat="server" ImageUrl="~/Images/download_manager2.png" Width="16px" Height="16px" CommandArgument='<%# Eval("File_FullPath") %>'  onclick="DownloadImageButton_Click" /> 
                                    &nbsp;  
                                    &nbsp;  
                                    <asp:ImageButton ID="ArchiveImageButton" AlternateText="Archive" runat="server" ImageUrl="~/Images/archiver.png" Width="16px" Height="16px" CommandArgument='<%# Eval("File_FullPath") %>' onclick="ArchiveImageButton_Click" /> 
                                      <cc1:ConfirmButtonExtender ID="ArchiveConfirmButtonExtender" runat="server" ConfirmText="Are you sure you want to archive ?" TargetControlID="ArchiveImageButton" > 
                                    </cc1:ConfirmButtonExtender> 
                                    &nbsp;  
                                    <asp:ImageButton ID="DeleteImageButton" AlternateText="Delete" runat="server" ImageUrl="~/Images/editdelete.png" Width="16px" Height="16px" CommandArgument='<%# Eval("File_FullPath") %>' onclick="DeleteImageButton_Click" /> 
                                    <cc1:ConfirmButtonExtender ID="DeleteConfirmButtonExtender" runat="server" ConfirmText="Are you sure you want to delete ?" TargetControlID="DeleteImageButton" > 
                                    </cc1:ConfirmButtonExtender> 
                                </ItemTemplate> 
                                 <ItemStyle Width="330px" /> 
                                 <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings EnableRowHoverStyle="true">  
                    <Selecting AllowRowSelect="True" /> 
                    </ClientSettings> 
                </telerik:RadGrid> 
 Please help me ..


Ajay
Ajay
Top achievements
Rank 2
 answered on 07 Dec 2009
6 answers
163 views
Hello,

I hope someone can help me with my issues I've got.
First of all I'll try to explain what I've got.

I've got a Telerik RadGrid built into a WebPart. This radgrid has a SharePoint list as a datasource. At the moment there is no need to edit or delete any items from the sharepoint list via the RadGrid. I was able to set paging on and some filter methods.

Now my goal is to have the same RadGrid in the SharePoint WebPart, but now AJAX-enabled.
Especially the paging should be handled with AJAX. I think I've read about every article on this website and just can't seem to find any good documentation how to ajax-enable a telerik radgrid.

I've read this article
http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html
and was able to get this timer update to work.  I just can't seem to find a way how to enable my RadGrid for AJAX.

It seems that all the information out there is based on web applications with a designer mode.

I've also tried the Telerik SharePoint demo (http://sharepoint.telerik.com/Pages/default.aspx) and analyzed the code, but it seems that this too is not built into a webpart.

I hope you can help me with this issue. And I gave enough information about my problem.
Thanks in advance for helping me

Paul



Yavor
Telerik team
 answered on 07 Dec 2009
3 answers
119 views
Hi all,

How can I set the HeaderText based on a Property instead of hardcode it?

If I e.g. has property in my cs-file called "EnglishHeader" like this:

public string EnglishHeader 
{ 
    get 
    { 
        return "My english header"; 
    } 
} 

And want to get it in the aspx-file something like:

<telerik:GridBoundColumn DataField="OrderNumber" HeaderText="<%= EnglishHeader %>" /> 

Best regards,
Kenneth
Princy
Top achievements
Rank 2
 answered on 07 Dec 2009
3 answers
279 views
Hi Team,

I am using 2009 version of Telerik dll. We have minimum height provision for the
RadDockZone , and we can set it by MinHeight property.

In my application, I want whenever I am resizing any Dock control its height should be set to minimum "100px".

For Example:
In I am expanding any Dock control, then I am removing its height property so that it will be exanded to the contents height. This works fine when content is large.
But Conside the case where dock contains only 1 line. In the case height is set the auto i.e. very less pixel.
I tried access height in DockInit event its is giving null as we are removing height while expanding.

Do we have any provision of setting height to some minimum valye?

 

Pero
Telerik team
 answered on 07 Dec 2009
1 answer
118 views
I am trying to overcome the cross domain issue. Could you tell if it is possible to use the Window control to open up google, then search for a web site and go to it, then once I close the window, pass the URL back to the calling page.
Georgi Tunev
Telerik team
 answered on 07 Dec 2009
1 answer
125 views
Hi,

I am using the radgrid control with row/column resize turned on. When the grid is rendered on screen i could see an empty column getting added(As the very first column).

On pre_render event though i am not abe to get a handle to this column, since i would like to put some data in this first column.

Is there way by which either i could hide this first columnt getting created or put value into that column.

(e.Item as GridDataItem)[(RadGrid1.MasterTableView.AutoGeneratedColumns[0] as GridBoundColumn).UniqueName] on item created event gives me the columns i had inserted in the dataset and associated to grid.

Any help would be appreciated.

Thanks
Rohith
Pavlina
Telerik team
 answered on 07 Dec 2009
2 answers
101 views
Hello,

         I am using NestedRadGrid in my application.
         The MasterTableGrid is bound inside NeedDataSource event.
         Also, the NestedRadGrid is bound on the the RadGrid1_DetailTableDataBind() Event.

         I am getting data from the database, in which I have one column COMPLETE/INCOMPLETE.
         So, I want to mark that column text as BLUE when COMPLETE & RED when INCOMPLETE in NestedRadGrid.


        Please reply me as Soon as Possible,




Thanks,
Kunal Govani
       
kunal patel
Top achievements
Rank 1
 answered on 07 Dec 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?