Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
278 views
Hi I have a problem I need to change the background color of a timeslot container , when i click over it and is not assigned to a appointment ?

How can i do that ,pleasse help me?
NEX
Top achievements
Rank 1
 answered on 13 Apr 2012
1 answer
109 views
Hi, I have a wizard running as part of a custom add-in for Outlook 2010. In one of the wizard dialogs I have a Telerik GridView control. The wizard dialog window that contains the Grid is re-sizable and I would like to have the Telerik Grid dynamically resize as the user re-sizes the Wizard dialog.

Any suggestions on how to achieve this would be greatly appreciated.

Thanks
Gary 
Pavlina
Telerik team
 answered on 13 Apr 2012
1 answer
112 views
Hi,
I'm got some problem while using the rad slider  control.
1) I using the rad tab strip that have two tabs for each user control inside the multipage container.
2) Each user control page( .ascx) , I using asp.net update panel in order to rendering partially on each page.
eg. I have two user control pages.
general.ascx and slider.ascx(which contain the slider control)
In general page , i have a button named process.
The problem is once i click on the process button in the general.ascx page, and then i go to the slider.ascx page ,the rad slider disappear.
Please see the attachment picture, below.


Thanks
Yamin




Tsvetina
Telerik team
 answered on 13 Apr 2012
9 answers
598 views
I've run into a problem using the asp.net ajax RadComboBox that is dynamically added to the page, which is caused by it losing its value if more than one postback occurs.

I select an item in the combobox and then trigger a postback.  After the first postback the initially selected value is still selected, but after a second postback it is not.  The old style RadComboBox and the built in DropDownList both retain their selected value.

Here's a simple test example that shows the problem.  The aspx simply contains a repeater with a placeholder inside it.

        <asp:ScriptManager ID="scriptManager" runat="server"></asp:ScriptManager> 
        <asp:Repeater ID="repTest" runat="server"> 
            <ItemTemplate> 
                <div> 
                    <asp:PlaceHolder ID="plcTest" runat="server"></asp:PlaceHolder> 
                </div> 
            </ItemTemplate> 
        </asp:Repeater> 
 
        <asp:Button ID="btnTest" runat="server" Text="PostBack" /> 

In the ItemDataBound event handler the combo boxes are created and added to the placeholder.  If I select Item 2 in each combo box and then click the button twice then at the end the first two combo boxes still have Item 2 selected but the asp.net ajax RadComboBox has reverted to Item 1.

        protected void Page_Load(object sender, EventArgs e) 
        { 
            repTest.DataSource = new int[] { 1, 2, 3 }; 
            repTest.DataBind(); 
        } 
 
        protected override void OnInit(EventArgs e) 
        { 
            base.OnInit(e); 
            repTest.ItemDataBound += new RepeaterItemEventHandler(repTest_ItemDataBound); 
        } 
 
        private void repTest_ItemDataBound(object sender, RepeaterItemEventArgs e) 
        { 
            PlaceHolder plcTest = (PlaceHolder)e.Item.FindControl("plcTest"); 
 
            switch ((int)e.Item.DataItem) 
            { 
                case 1: 
                    DropDownList cbo1 = new DropDownList(); 
                    cbo1.ID = "cbo1"; 
                    cbo1.DataSource = GetComboData(); 
                    cbo1.DataBind(); 
                    plcTest.Controls.Add(cbo1); 
                    break; 
                case 2: 
                    Telerik.WebControls.RadComboBox cbo2 = new Telerik.WebControls.RadComboBox(); 
                    cbo2.ID = "cbo2"; 
                    cbo2.DataSource = GetComboData(); 
                    cbo2.DataBind(); 
                    plcTest.Controls.Add(cbo2); 
                    break; 
                case 3: 
                    Telerik.Web.UI.RadComboBox cbo3 = new Telerik.Web.UI.RadComboBox(); 
                    cbo3.ID = "cbo3"; 
                    cbo3.DataSource = GetComboData(); 
                    cbo3.DataBind(); 
                    plcTest.Controls.Add(cbo3); 
                    break; 
            } 
        } 
 
        private string[] GetComboData() 
        { 
            return "Item 1;Item 2;Item 3".Split(';'); 
        } 
Cat Cheshire
Top achievements
Rank 1
 answered on 13 Apr 2012
1 answer
284 views
Hi,

I have a RadGrid with Items Drag-and-drop functionality. It works great unless I have more than 6 rows which allows a vertical scroll bar in the grid. When I have a vertical scroll bar and try to drag the last item/row to the first or second row, it doesn't work. I have attached snap shots and code.

Looks like the issue is with IE8 Browser.

Please help.

Thanks
<telerik:RadGrid AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False" cssClass="Grid" ID="grdWorkDistrRules"
             ItemPlaceholderID="RulesContainer" OnDetailTableDataBind="grdWorkDistrRules_DetailTableDataBind" OnRowDrop="grdWorkDistrRules_RowDrop"
             OnItemDataBound="grdWorkDistrRules_OnItemDataBound" OnNeedDataSource="grdWorkDistrRules_OnNeedDataSource"
             OnItemCommand="grdWorkDistrRules_ItemCommand"  runat="server" ShowGroupPanel="True" Skin="Windows7" Width="600">
               <MasterTableView DataKeyNames="Id" GroupLoadMode="Server" CommandItemDisplay="Top">
                    <CommandItemTemplate>
                       <telerik:RadToolBar ID="tbRules" runat="server" Width="100%" 
                           OnButtonClick="RadToolBar1_ButtonClick" OnPreRender="tbRules_PreRender">
                           <Items>
                               <telerik:RadToolBarButton Text="All" CommandName="ShowAll"  CheckOnClick="true" Value="ShowAll" Group="Rules" ></telerik:RadToolBarButton>
                               <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>
                               <telerik:RadToolBarButton Text="Active" CommandName="ShowActive"  CheckOnClick="true" Value="ShowActive" Group="Rules"> </telerik:RadToolBarButton>
                               <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>
                               <telerik:RadToolBarButton Text="Inactive" CommandName="ShowInactive" CheckOnClick="true" Value="ShowInactive" Group="Rules"></telerik:RadToolBarButton>                          
                               <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton>
                           </Items>
                       </telerik:RadToolBar>
                   </CommandItemTemplate>
 
                   <Columns>                                  
                       <telerik:GridDragDropColumn HeaderStyle-Width="30px" Visible="true" />                    
                       <telerik:GridEditCommandColumn UniqueName="EditRule" ButtonType="ImageButton" HeaderStyle-Width="30px" />                     
                       <telerik:GridBoundColumn UniqueName="Sequence" DataField="Sequence" HeaderText="Sequence" HeaderStyle-Width="70" />
                       <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" />
                       <telerik:GridTemplateColumn HeaderText="Queue" >
                           <ItemTemplate>
                               <uc:WorkItemQueue id="ctlWorkItemQueue" runat="server" />
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>                             
                      <telerik:GridBoundColumn UniqueName="Status" DataField="IsActive" HeaderText="Status" HeaderStyle-Width="45"/>
                   </Columns>
                
               <NestedViewSettings >
                   <ParentTableRelation>
                       <telerik:GridRelationFields DetailKeyField="Id" MasterKeyField="Id" />
                   </ParentTableRelation>
               </NestedViewSettings>
               <NestedViewTemplate>
               <asp:Panel ID="NestedViewPanel" runat="server" >
                   <div >
                       <fieldset style="padding: 10px;">
                          <table style="float:left;text-align:top;" >
                               <tr>
                                   <td> Facilities:</td>
                                   <td><%# PopulateFacilities(Eval("Id").ToString())%></td>
                               </tr>
                               <tr>
                                   <td colspan="4">Created by <%# Eval("CreatedBy")%>, <%# Eval("CreatedOn") %></td>
                               </tr>
                               <tr>
                                   <td colspan="4">Modified by <%# Eval("ModifiedBy")%>, <%# Eval("ModifiedOn") %></td>          
                               </tr>
                          </table> 
                       </fieldset>
                   </div>
               </asp:Panel>
               </NestedViewTemplate>
           </MasterTableView>
           <ClientSettings AllowRowsDragDrop="true">                
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true"/>
               <Scrolling AllowScroll="true" UseStaticHeaders="true" />
           </ClientSettings>
       </telerik:RadGrid>
Kris
Top achievements
Rank 1
 answered on 13 Apr 2012
4 answers
207 views
I've got a site using RadSplitter with two RadPanes. One is navigation the other content. I want the browser tab title to reflect the title of the web page showing in the content pane.

I've tried something like this from a interval timer. But iframe.document.title is not the title of the web page. Any ideas?

var iframe = $find("<%= ContentPane.ClientID %>").getExtContentElement();                   
document.title = iframe.document.title;
 
paaland
Top achievements
Rank 2
 answered on 13 Apr 2012
1 answer
87 views
Hi,

 Wrong page entries are showing in telerik self referencing hierarchy grid. It should page entries from parent entries of the grid only but it is showing child entries count also. please see the attachment for more details.

What is 26-99 of 36 in the screen shot? it should be 26-36 of 36. This is page2. In page1 also it is showing 1-175 of 36 but it should be 1-25 of 36.

please give me proper fix.

Thanks,
Rajasekhar.
Eyup
Telerik team
 answered on 13 Apr 2012
1 answer
78 views
Here is the code that I am trying. How to hide autogenerated edit column based on cell text?
protected void StoresGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            TableCell cell = (TableCell)item["StoreId"];
           if(cell.Text=="1")
      //how to hide autogenerated edit column here
              
}
}

Princy
Top achievements
Rank 2
 answered on 13 Apr 2012
1 answer
166 views
All the standard ASP.net controls that have a ImageURL property accept relative urls (ex. ~/img/image.gif)

When I place a relative URL into a Rad Rating Item, it doesn't resolve the URL, it simply embeds this as a literal value to the page's CSS.

<telerik:RadRatingItem CssClass="ratingItem" Value="1" ImageUrl="~/img/ratings/rating_1_normal.png" ToolTip="Very Easy" SelectedImageUrl="~/img/ratings/rating_1_selected.png" HoveredImageUrl="~/img/ratings/rating_1_hover.png" />

I can adjust the URL's accordingly by removing the ~/ and change it to an absolute path, however when published to a server sometimes the path is a little different. This results in the images not displaying because the CSS is pointing to the wrong place.  Is this by design?

I used this code to resolve the URLs so that I could use relative paths in the image URL properties:
If String.IsNullOrEmpty(item.ImageUrl) = False Then
              If item.ImageUrl.StartsWith("~/") Then
                  item.ImageUrl = ResolveUrl(item.ImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.SelectedImageUrl) = False Then
              If item.SelectedImageUrl.StartsWith("~/") Then
                  item.SelectedImageUrl = ResolveUrl(item.SelectedImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.HoveredImageUrl) = False Then
              If item.HoveredImageUrl.StartsWith("~/") Then
                  item.HoveredImageUrl = ResolveUrl(item.HoveredImageUrl)
              End If
          End If
          If String.IsNullOrEmpty(item.HoveredSelectedImageUrl) = False Then
              If item.HoveredSelectedImageUrl.StartsWith("~/") Then
                  item.HoveredSelectedImageUrl = ResolveUrl(item.HoveredSelectedImageUrl)
              End If
          End If

Is there ever going to be an implementation of allowing relative paths in the image URL fields?
Niko
Telerik team
 answered on 13 Apr 2012
3 answers
52 views
Hi,

We have RadEditor 5.8.12.0 and MOSS 2007.

RadEditor works fine in non-IE browsers, but it also is activated in IE. I have not specifically activated it, just deployed it in Solution Management after un-deploying the Lite 4.5 version.

I would like RadEditor to NOT activate in IE, instead using the MOSS built-in rich text editor.

How do I achieve this?

Many thanks

Mark
Stanimir
Telerik team
 answered on 13 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?