Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
131 views
I have a combobox that is populated by a sqldatasource. I would like for the combobox to show..."Please select an item" or just have it blank, when the page loads. How do i accomplish this?
Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
116 views
I am working on cleaning up an application and am running into a problem where there is an instance of a the schedular that displays as if its absolutely positioned in IE7, later browsers display it correctly. I don't think its a stylesheet issue as it uses the telerik skin. I also had this problem with the radgrid on the same page but solved it by removing some attributes that were off.
<%@ Page EnableSessionState="ReadOnly" Language="C#" MasterPageFile="~/MasterPages/DivBase.master" Title="<%$Resources:GlobalResource,iTasker%>" AutoEventWireup="true" Inherits="iTaskerWebApplication.Forms_Home" Codebehind="Home.aspx.cs" %> 
<%@ OutputCache Duration="60" VaryByParam="None" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<asp:Content ID="content" ContentPlaceHolderID="contentPlaceHolder" Runat="Server"
 
<script language="javascript" type="text/javascript"
    function windowPrintScheduler(siteID, startDate, endDate, selectedView, showFullTime, minPerRow) { 
        window.showModalDialog("Schedule/SchedulerPrintContainer2.aspx?SiteID=" + siteID + "&StartDate=" + startDate + "&EndDate=" + endDate + "&SelectedView=" + selectedView + "&ShowFullTime=" + showFullTime + "&MinPerRow=" + minPerRow, new Array(0), "dialogHeight: 800px; dialogWidth: 1000px; edge: Raised; center: Yes; scroll: Yes; help: No; resizable: No; status: No;"); 
    } 
</script> 
 
<div dir="<%=Resources.GlobalResource.PageDir %>"
    <table border="0" cellpadding="3" cellspacing="0" align="center" width="100%"
        <!--<tr> 
            <td colspan="2"
             <asp:Label ID="lblWelcomeMessage" runat="server"></asp:Label> 
            </td> 
        </tr>--> 
        <tr runat="server" id="trBreakdown" visible="false"
            <td colspan="2"
                <div id="forFieldset"
                        <div class="pageLabel"><%=Resources.GlobalResource.CurrentWeekCost %></div
 
                  <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"
                                    <asp:LinkButton ID="lbtnSchedule1" runat="server" OnClick="lbtnSchedule_Click"><%=Resources.GlobalResource.GoToSchedule %></asp:LinkButton> 
                                </div> 
                                <telerik:RadGrid AutoGenerateColumns="False" ID="gridBreakdown" AllowSorting="True" ShowFooter="True" runat="server" GridLines="None"  
                                  onneeddatasource="gridBreakdown_NeedDataSource" onitemdatabound="gridBreakdown_ItemDataBound"
                                    <PagerStyle Mode="NextPrevAndNumeric" /> 
                                    <MasterTableView ShowGroupFooter="false" BorderWidth="0" CellSpacing="-1"
                                        <RowIndicatorColumn> 
                                            <HeaderStyle ></HeaderStyle
                                        </RowIndicatorColumn> 
                                        <ExpandCollapseColumn> 
                                            <HeaderStyle ></HeaderStyle
                                        </ExpandCollapseColumn> 
                                        <ItemStyle /> 
                                        <AlternatingItemStyle /> 
                                        <Columns> 
                                            <telerik:GridBoundColumn Aggregate="None" DataField="RoleName"  
                                                HeaderText="<%$Resources:GlobalResource,Role%>" 
                                                FooterText="<%$ Resources:GlobalResource, Total %>"  
                                                HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="CountDistinct" DataField="EmpName"  
                                                HeaderText="<%$Resources:GlobalResource,ResourceName%>" FooterText="<%$Resources:GlobalResource,Resources%>" FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="None" DataField="EffectiveCost" DataFormatString="{0:c}" 
                                                HeaderText="<%$Resources:GlobalResource,EffectiveHourlyRate%>" 
                                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center" Wrap="True"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day1Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day2Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day3Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day4Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day5Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day6Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day7Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="TotalHours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="TotalCost" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:c}" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                        <GroupByExpressions> 
                                            <telerik:GridGroupByExpression> 
                                                <GroupByFields> 
                                                    <telerik:GridGroupByField FieldName="OverTimeTypeName" /> 
                                                </GroupByFields> 
                                                <SelectFields> 
                                                    <telerik:GridGroupByField FieldName="OverTimeTypeName" HeaderText="<%$ Resources:GlobalResource, Compensation %>" /> 
                                                </SelectFields> 
                                            </telerik:GridGroupByExpression> 
                                        </GroupByExpressions> 
                                    </MasterTableView> 
 
                                </telerik:RadGrid>  
                             
                </div> 
            </td> 
        </tr> 
        <tr> 
            <td rowspan="2" runat="server" id="tdScheduler" visible="false" valign="top"
                <div id="forFieldset"
                   <div class="pageLabel"><%=Resources.GlobalResource.TodaysSchedule %></div
                        <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"
                                    <asp:LinkButton ID="lbtnSchedule2" runat="server" OnClick="lbtnSchedule_Click"><%=Resources.GlobalResource.GoToSchedule %></asp:LinkButton> 
                                </div> 
                                                    <telerik:RadScheduler  
                                    ID="schedulerSite"  
                                    EnableEmbeddedBaseStylesheet="true" 
                                    runat="server" 
                                    EnableViewState="true" 
                                    Width="650px" 
                                    Height="450px" 
                                    DayEndTime="19:00:00"  
                                    DayStartTime="07:00:00"  
                                    HoursPanelTimeFormat="htt" 
                                    NumberOfHoveredRows="1"  
                                    ValidationGroup="schedulerSite" 
                                    WorkDayEndTime="19:00:00"  
                                    WorkDayStartTime="07:00:00"  
                                    DataStartField="StartTime" 
                                    DataEndField="Endtime" 
                                    DataKeyField="SiteScheduleID"  
                                    DataSourceID="ObjectDSSchedule"  
                                    DataSubjectField="Subject" 
                                    MinutesPerRow="60" 
                                    TimeLabelRowSpan="1" 
                                    ShowAllDayRow="False" 
                                    ReadOnly="true" 
                                    DisplayDeleteConfirmation="False" 
                                    ShowNavigationPane="False" 
                                    onappointmentdatabound="schedulerSite_AppointmentDataBound"
                                    <MonthView UserSelectable="False" /> 
                                    <WeekView UserSelectable="False" /> 
                                    <TimelineView UserSelectable="False" /> 
                                    <DayView DayEndTime="19:00:00" DayStartTime="07:00:00" UserSelectable="false" /> 
                                    <AppointmentTemplate> 
                                        <asp:Label runat="server" ID="lblSubject"><%# Eval("Subject") %></asp:Label> 
                                    </AppointmentTemplate> 
                                </telerik:RadScheduler> 
                                <asp:ObjectDataSource ID="ObjectDSSchedule" runat="server"  
                                    SelectMethod="SiteScheduleLoad" TypeName="iTasker.DAL.ScheduleHandler"
                                    <SelectParameters> 
                                         <asp:ProfileParameter Name="connectionstring"  
                                            PropertyName="DatabaseConnectionString" Type="String" /> 
                                            <asp:SessionParameter Name="siteID" SessionField="SiteID" Type="String" /> 
                                        <asp:Parameter Name="startDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                        <asp:Parameter Name="endDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                    </SelectParameters> 
                                </asp:ObjectDataSource> 
                            
                </div> 
            </td> 
            <td runat="server" id="tdMessages" visible="false" valign="top"
                <div id="forFieldset"
                    <div class="pageLabel"
                        <%=Resources.GlobalResource.Messages %> 
                    </div> 
                    <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"
                                    <asp:LinkButton ID="lbtnMessages" runat="server" OnClick="lbtnMessages_Click"><%=Resources.GlobalResource.GoToMessages %></asp:LinkButton> 
                                </div> 
                                <telerik:RadGrid ID="gridMessages" runat="server" EnableViewState="false" 
                                    PageSize="10" AllowSorting="True" Height="180px" 
                                    AllowMultiRowSelection="False" AllowPaging="True"  
                                    ShowGroupPanel="False" GridLines="None" 
                                    AutoGenerateColumns="False"  
                                    onneeddatasource="gridMessages_NeedDataSource"
                                    <PagerStyle Mode="NextPrevAndNumeric"
                                    </PagerStyle> 
                                    <MasterTableView DataKeyNames="MessageID,Flagged,Read" DataMember="Mails" AllowMultiColumnSorting="True" TableLayout="Fixed"
                                        <Columns> 
                                            <telerik:GridTemplateColumn UniqueName="Importance" Groupable="False"
                                                <HeaderStyle Width="30px"></HeaderStyle> 
                                                <ItemStyle></ItemStyle
                                                <ItemTemplate> 
                                                    <asp:Image ID="ImportantImage" BorderWidth="0px"  
                                                        ImageUrl='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Important"))? "~/Forms/Messages/img/Important_transparent.gif" : "~/Forms/Messages/img/Important_grey.gif" %>' 
                                                        AlternateText="Importance" Style="float: right;" runat="server"
                                                    </asp:Image> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="MailIcon" Groupable="False"
                                                <HeaderStyle Width="30px"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                                <ItemTemplate> 
                                                    <asp:Image ID="MailIcon" BorderWidth="0px"  
                                                        ImageUrl='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Read"))? "~/Forms/Messages/img/mailIcon.gif" : "~/Forms/Messages/img/mailIcon.jpg" %>' 
                                                        Style="float: right;" runat="server" AlternateText="MailIcon"
                                                    </asp:Image> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="FromUserName" GroupByExpression="From Group By FromUserName" 
                                                SortExpression="FromUserName"
                                                <HeaderStyle></HeaderStyle
                                                <ItemStyle></ItemStyle
                                                <ItemTemplate> 
                                                    <%# DataBinder.Eval(Container.DataItem, "FromUserName") %> 
                                                    <br /> 
                                                    <div class="MailSubject"
                                                        <%# DataBinder.Eval(Container.DataItem, "MessageSubject") %> 
                                                    </div> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings AllowDragToGroup="False" EnableRowHoverStyle="false"
                                        <Selecting AllowRowSelect="false"></Selecting> 
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1"></Scrolling> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
                                
                </div> 
            </td> 
        </tr> 
        <tr> 
            <td runat="server" id="tdTasks" visible="false" valign="top"
                <div id="forFieldset"
                    <div class="pageLabel"><%=Resources.GlobalResource.Tasks %></div
                    <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"
                                    <asp:LinkButton ID="lbtnTasks" runat="server" OnClick="lbtnTasks_Click"><%=Resources.GlobalResource.GoToTasks %></asp:LinkButton> 
                                </div> 
                   
                                <telerik:RadGrid ID="gridTasks" ShowStatusBar="True" AutoGenerateColumns="False" 
                                    GridLines="None" AllowSorting="True" Height="180px" EnableViewState="false" 
                                    runat="server"  
                                    onneeddatasource="gridTasks_NeedDataSource"
                                    <MasterTableView DataKeyNames="TaskID" DataMember="Tasks" TableLayout="Fixed"
                                        <Columns> 
                                            <telerik:GridTemplateColumn DataField="Task" SortExpression="Task" HeaderText="<%$ Resources:GlobalResource,Tasks %>" 
                                                UniqueName="Task"
                                                <ItemTemplate> 
                                                    <asp:Label ID="TaskNameLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Task") %>'></asp:Label> 
                                                </ItemTemplate> 
                                                <HeaderStyle /> 
                                                <ItemStyle /> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn DataField="Duration" SortExpression="Duration" 
                                                UniqueName="Duration"
                                                <ItemTemplate> 
                                                    <asp:Label ID="DurationLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Duration") %>'></asp:Label> 
                                                </ItemTemplate> 
                                                <HeaderStyle /> 
                                                <ItemStyle /> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings EnableRowHoverStyle="false" AllowDragToGroup="false"
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1" /> 
                                        <Selecting AllowRowSelect="False" /> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
                            
                </div> 
            </td> 
        </tr> 
        <tr runat="server" id="trSchedule" visible="false"
            <td> 
                <div id="forFieldset"
                    <div class="pageLabel"><%=Resources.GlobalResource.MySchedule %></div
         
                                <asp:Button ID="btnPrintScheduler" runat="server" Text="<%$ Resources:GlobalResource, PrintScheduler %>" OnClick="btnPrintScheduler_Click" /> 
                                <telerik:RadScheduler  
                                    ID="schedulerEmployee" EnableEmbeddedBaseStylesheet="true" 
                                    runat="server" 
                                    EnableViewState="true" 
                                    DayEndTime="19:00:00"  
                                    DayStartTime="07:00:00"  
                                    HoursPanelTimeFormat="htt" 
                                    NumberOfHoveredRows="1"  
                                    ValidationGroup="schedulerSite" 
                                    WorkDayEndTime="19:00:00"  
                                    WorkDayStartTime="07:00:00"  
                                    DataStartField="StartTime" 
                                    DataEndField="Endtime" 
                                    DataKeyField="SiteScheduleID"  
                                     DataSourceID="ObjectDSScheduleEmp" 
                                    DataSubjectField="Subject" 
                                    MinutesPerRow="60" 
                                    TimeLabelRowSpan="1" 
                                    ShowAllDayRow="False" 
                                    ReadOnly="true" 
                                    DisplayDeleteConfirmation="False" 
                                    ShowNavigationPane="True" 
                                    onappointmentdatabound="schedulerSite_AppointmentDataBound"
                                    <MonthView UserSelectable="False" /> 
                                    <WeekView UserSelectable="True" DayEndTime="19:00:00" DayStartTime="07:00:00" /> 
                                    <TimelineView UserSelectable="False" /> 
                                    <DayView DayEndTime="19:00:00" DayStartTime="07:00:00" UserSelectable="True" /> 
                                    <AppointmentTemplate> 
                                        <asp:Label runat="server" ID="lblSubject" Font-Size="X-Small" ><%# Eval("Subject") %></asp:Label> 
                                    </AppointmentTemplate> 
                                </telerik:RadScheduler> 
                                <asp:ObjectDataSource ID="ObjectDSScheduleEmp" runat="server"  
                                    SelectMethod="SiteScheduleLoad" TypeName="iTasker.DAL.ScheduleHandler"
                                    <SelectParameters> 
                                        <asp:ProfileParameter Name="connectionstring"  
                                            PropertyName="DatabaseConnectionString" Type="String" /> 
                                        <asp:SessionParameter Name="siteID" SessionField="SiteID" Type="String" /> 
                                        <asp:Parameter Name="startDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                        <asp:Parameter Name="endDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                    </SelectParameters> 
                                </asp:ObjectDataSource> 
                            <div style="clear: both;"></div> 
                </div> 
            </td> 
        </tr> 
    </table> 
</div> 
</asp:Content> 
 
 

3tx9340
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
76 views
Can i change the "SearchPatterns" in the Fileexplorer window from another aspx-site. I use the File Selector Dialog. I would like use only "SearchPatterns"  jpg, png and gif from the one aspx-site and pdf, ppt ... from the other aspx-site. Can i transfer the right "SearchPatterns" to the Fileexplorer windows?

br
Reiner
Lini
Telerik team
 answered on 07 Oct 2009
1 answer
69 views
I have a simple RadListBox and RadFileExplorer on a page, I would like to click on an item in the listbox and change the ViewPaths, UploadPaths and DeletePaths of the RadFileExplorer based on the listbox selection.

I have configured a RadAjaxManager to update the RadFileExplorer when the Listbox selection is made.

Problem is that this new BindExplorer method available in the latest release is not accessible because it is protected.

Does anyone have any pointers?
Lini
Telerik team
 answered on 07 Oct 2009
1 answer
135 views
Hi,

I am using rotator to show 8 images. Below is a sample code. First time when the page loads, it shows all images proper in the rotator.
But when I press the next or previous buttons, it cuts the image at the start or end.

This issue is also with Telerik's demo. I have attached it's image. Is there any specific property or any logic to show all images proper every time user clicks the next or previous buttons ?

      <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"
                Width="560px">
                <telerik:RadRotator ID="radRotator1" RotatorType="buttons" runat="server" Width="547px"
                    Height="65px" ScrollDuration="100" ItemHeight="60px" ItemWidth="74px" WrapFrames="true">
                    <Items>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image" ImageUrl='~/1.jpg'
                                    CssClass="rotImage"  Width="60px" Height="60px"
                                    BorderWidth="1px"   />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image1" ImageUrl='~/2.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image2" ImageUrl='~/3.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/4.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/5.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/6.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/7.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/8.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                    </Items>
                </telerik:RadRotator>
            </telerik:RadAjaxPanel>
Lini
Telerik team
 answered on 07 Oct 2009
0 answers
125 views
hello,
This should be simple, i have a combobox with AllowCustomText="true"   and EmptyMessage="Select.." , i am providing a clear button[server side code] on the page and the combobox should go to "Select.."  onButton clicked. i have tried a lot of things and it just does not work. how do i do this ?

works with 

 

 

rcb.ClearSelection()

 

 

rcb.Text = String.Empty

 


AR
Top achievements
Rank 1
 asked on 07 Oct 2009
1 answer
125 views
Hi,

On the pie chart, when we mouse hover an  area, can  we display the series names(X and Y column names)


How can do the mouse hover option on the pie chart?

Thanks for your reply
Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
223 views
Hello,

We are using Telerik Controls Version 2009.2.826.20 in our application and we are experiencing difficulties with RAD TreeView Node in the Context Menu Item.

Below is the set of RAD Controls we are using in the Application:
  1. Toolbar control. (This renders the functioanlity very fine)
  2. RAD Splitter Control.
  3. Left Pane we got RAD TreeView Control. (Implement Load on Demand using Page Behind Method)
  4. Right Pane we got sub Panels using DIV Controls. We are show/hide the Div's depending on the items selected in the Context Menu of the Tree View Control.

When we run the application, we are able to expand or collapse the Nodes. When the User right click a Node and select an item from the Context Menu, the event for the Context menu throws Object Reference Error. Sometimes it works and some times it doesnt work.

Why is the behavior as such? Can you help us to resolve this issue?

Below is the Code we have in our application for the Context Menu Item Event:
(We are accessing the node using e.Node and if the e.Node is present it works. In so many cases e.Node is becoming NULL and this is giving us the error Object Reference not set to an instance of an Object)
(The application works if we use the button from the ToolBar. Because in ToolBar event, we are accessing the Node using SelectedNode property and that works)

    Protected Sub RdTViewPerspective_ContextMenuItemClick(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.RadTreeViewContextMenuEventArgs) Handles RdTViewPerspective.ContextMenuItemClick
        Try
            Select Case e.MenuItem.Value.ToUpper()
                Case "SAP_INFO"
                    HideAllPanels()
                    DisplayGeneralInformation(e.Node)
                    DisplaySAPInfoPanel(e.Node)
                    ReSetToolBarButtons(e.Node)
                Case Else
                    'Nothing to do.
            End Select
        Catch ex As Exception
            log.Info(ex.Message.ToString())
            Response.Redirect("CustomError.aspx?Msg=" + Server.UrlEncode(ex.Message.ToString()) + "&ErrorSource=" + Server.UrlEncode(ex.Source.Replace(Environment.NewLine, "-----><BR>").ToString()) + "&ErrorStack=" + Server.UrlEncode(ex.StackTrace.ToString()), False)
        End Try
    End Sub


Thanks
Sri K Gamini.
Sri
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
94 views
sorry,i have poor english ,would like to read .

vs2010 ,ie8
aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" 
    CodeBehind="OperRecord.aspx.cs" Inherits="tc_xmc_web.Admin.OperRecord" Theme="Admin" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
    <script src="../Js/Calendar/WdatePicker.js" type="text/javascript"></script>  
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <div class="divmenu_title">  
        操作记录  
    </div>  
    <div class="pdefault">  
<telerik:RadAjaxManager runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
 
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource_OperationRecord_SP" 
            GridLines="None" AllowPaging="True" PageSize="2" PagerStyle-AlwaysVisible="false">  
            <MasterTableView DataSourceID="SqlDataSource_OperationRecord_SP">  
                <Columns>  
                    <telerik:GridBoundColumn DataField="Operation" UniqueName="oper">  
                    </telerik:GridBoundColumn>  
                </Columns>  
            </MasterTableView>  
        </telerik:RadGrid>  
      </div>  
<asp:SqlDataSource ID="SqlDataSource_OperationRecord_SP" runat="server" ConnectionString="<%$ ConnectionStrings:tc_xmc_dbConnectionString %>" 
</asp:SqlDataSource>  
</asp:Content> 

web.config  (i doubt there are problems ) :
<?xml version="1.0"?>  
<configuration>  
 
 
 
  <configSections>  
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>  
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        </sectionGroup>  
      </sectionGroup>  
    </sectionGroup>  
  </configSections>  
 
 
  <appSettings/>  
  <connectionStrings>  
    <add name="tc_xmc_dbConnectionString" connectionString="Data Source=192.168.23.4;Initial Catalog=tc_xmc_db;User ID=sa" providerName="System.Data.SqlClient"/>  
    <add name="NorthwindConnectionString" connectionString="Data Source=192.168.23.16;Initial Catalog=Northwind;User ID=sa;PassWord=123789" providerName="System.Data.SqlClient"/>  
  </connectionStrings>  
 
  <system.web>  
    <compilation debug="true" targetFrameworkMoniker=".NETFramework,Version=v4.0">  
      <assemblies>  
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
 
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
      </assemblies>  
 
    </compilation>  
    <!--  
            The <authentication> section enables configuration   
            of the security authentication mode used by   
            ASP.NET to identify an incoming user.   
        -->  
    <authentication mode="Windows"/>  
    <!--  
            The <customErrors> section enables configuration   
            of what to do if/when an unhandled error occurs   
            during the execution of a request. Specifically,   
            it enables developers to configure html error pages   
            to be displayed in place of a error stack trace.  
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">  
            <error statusCode="403" redirect="NoAccess.htm" />  
            <error statusCode="404" redirect="FileNotFound.htm" />  
        </customErrors>  
        -->  
 
 
    <pages>  
      <controls>  
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.30512.29188, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>  
        <!--Telerik-->  
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
        <!--Telerik-->  
 
      </controls>  
    </pages>  
 
    <httpHandlers>  
      <remove verb="*" path="*.asmx"/>  
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
      <!--Telerik-->  
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>  
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>  
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>  
      <!--Telerik-->  
    </httpHandlers>  
    <httpModules>  
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <!--Telerik-->  
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>  
      <!--Telerik-->  
    </httpModules>  
 
  </system.web>  
 
 
  <system.codedom>  
    <compilers>  
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">  
        <providerOption name="CompilerVersion" value="v4.0"/>  
        <providerOption name="WarnAsError" value="false"/>  
      </compiler>  
    </compilers>  
  </system.codedom>  
 
  <!--   
        The system.webServer section is required for running ASP.NET AJAX under Internet  
        Information Services 7.0.  It is not necessary for previous version of IIS.  
    -->  
  <system.webServer>  
    <validation validateIntegratedModeConfiguration="false"/>  
    <modules>  
      <remove name="ScriptModule"/>  
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </modules>  
    <handlers>  
      <remove name="WebServiceHandlerFactory-Integrated"/>  
      <remove name="ScriptHandlerFactory"/>  
      <remove name="ScriptHandlerFactoryAppServices"/>  
      <remove name="ScriptResource"/>  
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </handlers>  
  </system.webServer>  
 
 
</configuration> 

please help  ,thanks.

-------------

without ajax runing ok!

why?
Pavlina
Telerik team
 answered on 07 Oct 2009
3 answers
158 views
I have a combo box in my grid, when I edit the underlying data I want the current data item to be selected in the combo box

<telerik:GridTemplateColumn UniqueName="CastMember" HeaderText="Cast Member" DataField="CastMemberName" 
                        SortExpression="CastMember" ItemStyle-HorizontalAlign="Left">  
                          
                        <ItemTemplate> 
                            <%#DataBinder.Eval(Container.DataItem, "CastMemberName")%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadComboBox DataTextField="CastMemberName" Skin="Vista" 
                                DataValueField="CastMemberName"   
                                ID="RadComboBoxCastMember"   
                                runat="server"   
                                Width="220px" > 
                            </telerik:RadComboBox> 
                        </EditItemTemplate> 
 
<ItemStyle HorizontalAlign="Left"></ItemStyle> 
                    </telerik:GridTemplateColumn> 

in my codebehind I have this

protected void RadGridCastList_ItemCreated(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                if (e.Item.IsInEditMode)  
                {  
                    GridEditableItem editItem = e.Item as GridEditableItem;  
                    RadComboBox combo = (RadComboBox)editItem.FindControl("RadComboBoxCastMember");  
                    combo.DataTextField = "CastMemberName";  
                    combo.DataValueField = "CastMemberName";  
                    combo.DataSource = castmanager.CastNames();  - a list of cast member names
                    combo.DataBind();  
                    try  
                    {  
                        combo.FindItemByValue(DataBinder.Eval(e.Item.DataItem, "CastMemberName").ToString()).Selected = true;  
                    }  
                    catch (NullReferenceException ex)  
                    {  
                        combo.SelectedIndex = 0;  
                    }  
 
                    RadNumericTextBox rntb = (RadNumericTextBox)editItem.FindControl("RadNumericTextBoxDisplayOrder");  
                    try  
                    {  
                        rntb.DbValue = (int)DataBinder.Eval(e.Item.DataItem, "DisplayOrder");  
                    }  
                    catch (Exception ex2)  
                    {  
                        //  
                    }  
                }  
                else  
                {  
 
                }  
            }  
              
 
        } 


this line
combo.FindItemByValue(DataBinder.Eval(e.Item.DataItem, "CastMemberName").ToString()).Selected = true;

should select the current name in the combo, but it doesnt.  The first item in the the combo is always set.
Ive used this method many, many times before and its always worked, yet in this case it wont !

Ive checked the value in CastMemberName and its a valid name that is in  the data bound to the combo.
Can anyone see what the problem is ?
Parth
Top achievements
Rank 1
 answered on 07 Oct 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?