Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
86 views
Hi,

I update 'telerik.web.ui.dll' to version 2011.2.915.40, then radeditor doesn't work with IE9, but works with IE8.

Please help me to solve this. problem.

Wei
Rumen
Telerik team
 answered on 07 Mar 2012
1 answer
137 views
Hi All,
In Rad Scheduler i am able to show my resource names in header, now i want to show my resource names in footer also, How can i show my resource names in footer of the scheduler.

Thanks,
Madhan
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
2.0K+ views
Hi,

I followed the below blog post to load items from WCF Service.
http://blogs.telerik.com/veselinvasilev/posts/09-04-08/how-to-use-wcf-services-with-asp-net-ajax-databound-controls.aspx

I need to add an item 'Primary' to this Combobox. Also I dont want this item to be filtered out based on the CustomText the user types in.
This item always needs to be there in the ComboBox.

Any suggestions ???


Thank you for your help,
Neelima
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
95 views
Hello,

Can RadRibbonMenu have multiple columns? I'm using the RadRibbon as applicationmenu but there are to much items in the RadRibbonMenu for 1 column so I tried to force it in multiple columen but without succes.

Regards, 
  JosM
Kate
Telerik team
 answered on 07 Mar 2012
6 answers
455 views
I have a popup page which has three buttons on top (with the names "Hide Filter", "Apply Filter" and "Reset")

Now I want to set focus on second button ("Apply Filter"), but the focus is always goes to first button ("Hide Filter") whenever I click on the page.


I have also set second button (Apply Filter) as default button :
     <form id="form1" runat="server" defaultbutton="btnERSApplyFilter" defaultfocus="btnERSApplyFilter">

I have also set focus on page load to second button (Apply Filter):

    btnERSApplyFilter.Focus();

But both are not working.. please suggest me some solution.


Thanks
Mukesh

Denis
Top achievements
Rank 2
 answered on 07 Mar 2012
8 answers
161 views
Hi,

I have a problem with ajaxifing 5 checkboxes in this RadComboBox.

<telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server">
   <telerik:RadComboBox ID="RadComboBox2" Runat="server" AllowCustomText="True" EmptyMessage="Alle Lagen"
               DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value" Width="230px" >
               <ItemTemplate>
                           <div>
                               <asp:CheckBox runat="server" ID="chk1" Checked="false" onclick="onCheckBoxClick(this)"
                                   AutoPostBack="True"
                                   oncheckedchanged="chk1_CheckedChanged" />
                               <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1">
                                   <%# Eval("Text") %>
                               </asp:Label>
                           </div>
                       </ItemTemplate>
               <CollapseAnimation Duration="200" Type="OutQuint"></CollapseAnimation>
           </telerik:RadComboBox>
           <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/combobox.xml">
           </asp:XmlDataSource>
   </telerik:RadAjaxPanel>

This is the code behind to add the ajaxsettings to the RadAjaxManager:
Protected Sub RadComboBox2_DataBound(sender As Object, e As System.EventArgs) Handles RadComboBox2.DataBound
 
        For Each item As RadComboBoxItem In RadComboBox2.Items
            Dim chk As CheckBox = DirectCast(item.FindControl("chk1"), CheckBox)
            Dim text As Label = DirectCast(item.FindControl("Label1"), Label)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(chk, GridView1, RadAjaxLoadingPanel1)
           
        Next
 
    End Sub

When I click one of the checkboxes, the loading panel is visible for a short time, but the gridview1 isn't updating.
When I click another checkbox, the request doesn't use ajax but loads the whole site. Also when I click another checkbox.
Only the first "click" is ajaxifyed, but the gridview1 is not affected. 

Here is the link to the ajaxifyed Page: http://pension.sundaymedia.info/einrichtungajax.aspx?Typ=Pension
And here the same page with no ajaxsettings added: http://pension.sundaymedia.info/Einrichtung.aspx?Typ=Pension

The left ComboBox is the Problem-Combo-Box

Best regards from Germany,
Stefan
Stafan Müller
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
80 views
Hi,

I'm using scheduler control to programming technical resources and show resources programmed in a timeline view. But, the scrollbars of control is too small. 

How I can change the size of scrollbar?

Thanks, cmarquez
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
124 views
I need to get the info of the file while it is uploading to insert the record into the database. Such as the size of the file. Is there anyway to do that? In the Upload File case.
protected void rfeStorage_ItemCommand(object sender, RadFileExplorerEventArgs e)
       {
           //file manager
           string path = e.Path.Remove(0, e.Path.IndexOf("/") + 1);
           path = path.Remove(0, path.IndexOf("/") + 1);
           path = path.Replace("/", @"\");
           path = @oCompany.StorageBoxLocation + @"\" + path;
           using (UNCAccessWithCredentials unc = Generic.GetDocumentCredentials(path.Remove(path.LastIndexOf(@"\"))))
           {
               if (unc.NetUseWithCredentials())
               {
                   switch (e.Command)
                   {
                       case "UploadFile":
                           FilesCOL f = new FilesCOL();
                           f.Name = Path.GetFileName(path);
                           f.UserID = oUsers.UserID;
                           f.isShared = false;
                           f.isDeleted = false;
                           FilesDAL.Insert(ref f);
 
                           FileLogCOL fileLog = new FileLogCOL();
                           fileLog.UserID = oUsers.UserID;
                           fileLog.Action = "Uploaded";
                           fileLog.LogDate = DateTime.Now;
                           fileLog.FilePath = path;
                           fileLog.FileID = f.FileID;
                           FileLogDAL.Insert(ref fileLog);
                           break;
 
                       case "MoveDirectory":
                           break;
 
                       case "CreateDirectory":
                           break;
 
                       case "DeleteDirectory":
                           break;
 
                       case "DeleteFile":
 
 
 
                           FileLogCOL fileLog3 = new FileLogCOL();
                           FileLogCOL fileLog5 = FileLogDAL.SelectFileLog(path);
                           fileLog3.UserID = oUsers.UserID;
                           fileLog3.Action = "Deleted";
                           fileLog3.LogDate = DateTime.Now;
                           fileLog3.FilePath = getNewPath(e.Path);
                           fileLog3.FileID = fileLog5.FileID;
                           FileLogDAL.Insert(ref fileLog3);
                           FilesCOL f2 = FilesDAL.Select(fileLog3.FileID);
                           f2.isDeleted = true;
                           FilesDAL.Update(ref f2);
                           break;
 
                       case "MoveFile":
 
 
                           FileLogCOL fileLog2 = new FileLogCOL();
                           FileLogCOL fileLog4 = FileLogDAL.SelectFileLog(path);
 
                           fileLog2.FilePath = getNewPath(e.NewPath);
                           fileLog2.UserID = oUsers.UserID;
                           fileLog2.Action = "Moved";
                           fileLog2.LogDate = DateTime.Now;
                           fileLog2.FileID = fileLog4.FileID;
                           FileLogDAL.Insert(ref fileLog2);
                           break;
                   }
               }
           }
       }

Dobromir
Telerik team
 answered on 07 Mar 2012
1 answer
94 views
Hi,

I was wondering if anyone could help with my issue. 

I have a custom control that contains a RadContextMenu. This control is in the itemTemplate of a RadListView. Whenever there is more than one result IE crashes and closes the browser. This happens on IE6, IE7, IE8 and IE9. I have narrowed it down to the ContextMenu (with the menu's visible property set to false everything works).It works perfectly on Chrome, FF, Safari.

I use the same control multiple times on other pages. This is done through a repeater, not the list view.

Any help would be appreciated.

Thanks,

Daniel
Peter
Telerik team
 answered on 07 Mar 2012
3 answers
538 views

I have a hierarchal grid with check boxes against all the records (both parent and child), I also have a select all option which selects all the records in parent as well child. I am unable find the inner grid using FindControl method. Do let me know if you have any suggestion.

 

protected void ToggleSelectedState(object sender, EventArgs e)
        {
             
           if ((sender as CheckBox).Checked)
            {
                foreach (GridDataItem dataItem in radGridProgramList.MasterTableView.Items)
                {                   
                    (dataItem.FindControl("cbSelect") as CheckBox).Checked = true;
                    dataItem.Selected = true;
                    RadGrid radGridPolicyList = (RadGrid)dataItem.FindControl("radGridPolicyList");
                    foreach (GridDataItem InnerdataItem in radGridPolicyList.MasterTableView.Items)
                    {
                        (InnerdataItem.FindControl("cbSelect") as CheckBox).Checked = true;
                        InnerdataItem.Selected = true;
                    }                
                      
                }
                  
            }
            else
            {
                foreach (GridDataItem dataItem in radGridProgramList.MasterTableView.Items)
                {
                    (dataItem.FindControl("cbSelect") as CheckBox).Checked = false;
                    dataItem.Selected = false;
                }
            
        }
<telerik:RadGrid ID="radGridProgramList" AllowMultiRowSelection="true" runat="server" Width="100%" Height="476px" ShowStatusBar="true" AutoGenerateColumns="False" 
      PageSize="15" AllowSorting="True" AllowPaging="True" OnItemCommand="RadGrid_ItemCommand"
      OnNeedDataSource="RadGrid_NeedDataSource" OnPreRender="RadGridClientList_PreRender" GridLines="Vertical">
           <ClientSettings AllowExpandCollapse = "true"  EnableRowHoverStyle="true">
               <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
               <Selecting AllowRowSelect="false" />                
           </ClientSettings>
           <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView ClientDataKeyNames="ProgramId" Name="Programs" Width="100%" GridLines="Vertical" NoMasterRecordsText="" ShowHeadersWhenNoRecords="false">
               <Columns>
               <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                           <HeaderTemplate>
                            <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                           </HeaderTemplate>
                           <ItemTemplate>
                               <asp:CheckBox id="cbSelect" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>
                  <telerik:GridBoundColumn SortExpression="ProgramId" HeaderText="Program ID" DataField="ProgramId" UniqueName="ProgramId" Visible="false" />
                                   <telerik:GridTemplateColumn UniqueName="ProgramName" HeaderText="Program Name" DataField="ProgramName" HeaderStyle-Width="280px">
                                       <ItemTemplate>
                                           <asp:Label ID="lblProgramName" runat="server" Text='<%#(Eval("ProgramName").ToString().Length >39)?Eval("ProgramName").ToString().Substring(0, 39) + "...":Eval("ProgramName") %>' />
                                           <telerik:RadToolTip ID="ProgramNameToolTip" runat="server" TargetControlID="lblProgramName" Width="150px"
                                           RelativeTo="Element" Position="MiddleRight" EnableShadow="true"><%# Eval("ProgramName") %></telerik:RadToolTip>
                                       </ItemTemplate>
                                   </telerik:GridTemplateColumn>
                                   <telerik:GridBoundColumn SortExpression="ProgramEffectiveDate" AllowSorting = "false" HeaderText="Eff. Date" DataField="ProgramEffDate" DataFormatString="{0:MM/dd/yyyy}" />
                                   <telerik:GridBoundColumn SortExpression="ProgramExpiryDate" AllowSorting = "false" HeaderText="Exp. Date" DataField="ProgramExpDate" DataFormatString="{0:MM/dd/yyyy}" />
                                   <telerik:GridBoundColumn SortExpression="FSGOfficeName" AllowSorting = "false"  HeaderText="FSG Office" DataField="FSGOfficeName" />
                                   <telerik:GridBoundColumn SortExpression="FSGProgramTeamName" AllowSorting = "false" HeaderText="FSG Team" DataField="FSGTeamName" />
                                   <telerik:GridTemplateColumn Reorderable="false" Resizable="false">
                                       <HeaderStyle Width="20px" />
                                       <ItemStyle Width="20px" HorizontalAlign="Center" />                                        
                                   </telerik:GridTemplateColumn>
               </Columns>
               <NestedViewTemplate>
                   <div class="programBackground">
                       <telerik:RadGrid ID="radGridPolicyList" AllowMultiRowSelection="true" runat="server" AutoGenerateColumns="false" OnNeedDataSource="RadGrid_NeedDataSource" OnItemCommand="RadGrid_ItemCommand">
                       <ClientSettings AllowExpandCollapse = "true"  EnableRowHoverStyle="true">
                           <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
                           <Selecting AllowRowSelect="false" />                
                       </ClientSettings>
                           <MasterTableView ClientDataKeyNames="PolicyId" Name="Policies" Width="100%" GridLines="Vertical" NoMasterRecordsText="" ShowHeadersWhenNoRecords="false">                                    
                                               <Columns>
                                               <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">                                                
                                               <ItemTemplate>
                                               <asp:CheckBox id="cbSelect" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                                               </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridBoundColumn SortExpression="PolicyId" HeaderText="PolicyId" DataField="PolicyId" UniqueName="PolicyId" Visible="false" />
                                                   <telerik:GridBoundColumn SortExpression="PolicyNumber" HeaderText="Policy Number" DataField="PolicyNumber" />
                                                   <telerik:GridBoundColumn SortExpression="PolicyEffectiveDate" HeaderText="Policy Eff. Date" DataField="PolicyEffectiveDate" />
                                                   <telerik:GridBoundColumn SortExpression="PolicyExpiryDate" HeaderText="Policy Exp. Date" DataField="PolicyExpiryDate" />
                                                   <telerik:GridTemplateColumn Reorderable="false" Resizable="false">
                                                       <HeaderStyle Width="20px" />
                                                       <ItemStyle Width="20px" HorizontalAlign="Center" />                                                        
                                                   </telerik:GridTemplateColumn>
                                               </Columns>                               
                               <NoRecordsTemplate>The Program doesn't have Policies</NoRecordsTemplate>
                           </MasterTableView>
                           <ClientSettings AllowKeyboardNavigation = "true" >
                   <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                   <Selecting AllowRowSelect="True"></Selecting>                
                 </ClientSettings>
                       </telerik:RadGrid>
                   </div>
               </NestedViewTemplate>
               <NoRecordsTemplate>There are no clients</NoRecordsTemplate>
           </MasterTableView>
           <ClientSettings AllowKeyboardNavigation = "true" >
                   <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                   <Selecting AllowRowSelect="True"></Selecting>                
                 </ClientSettings>
       </telerik:RadGrid>

Shinu
Top achievements
Rank 2
 answered on 07 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?