Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I have a rad grid I am creating the columns programtically but the grid is setup static.  Whenever I do an inline edit the textbox pops up in the cell I want to edit but I can NOT type in the box.  If I right click and do a select all then I can type in the box but other than that the box will not Get Focus with the mouse or the keyboard despite the fact it is in edit mode?

This seems to be a rare event I could not find a solution on the net.  I am hoping it is something simple cause this one seems like a hard one.

                                   <ContentTemplate>
                                        <telerik:RadGrid ID="dgCompDetails" runat="server" AutoGenerateColumns="False" BorderStyle="Solid" CellSpacing="0" GridLines="None" Skin="Sitefinity">
                                            <ClientSettings>
                                                <Selecting CellSelectionMode="SingleCell" />
                                            </ClientSettings>
                                            <MasterTableView AllowNaturalSort="False" EditMode="InPlace" AllowAutomaticUpdates="True">
                                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                                </RowIndicatorColumn>
                                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                                </ExpandCollapseColumn>
                                                <EditFormSettings>
                                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                                    </EditColumn>
                                                </EditFormSettings>
                                                <PagerStyle PageSizeControlType="RadComboBox" />
                                            </MasterTableView>
                                            <PagerStyle PageSizeControlType="RadComboBox" />
                                            <FilterMenu EnableImageSprites="False">
                                            </FilterMenu>
                                        </telerik:RadGrid>
                                    </ContentTemplate>

'Code behind creation of columns

            boundColumn = New GridBoundColumn()
            dgCompDetails.MasterTableView.Columns.Add(boundColumn)
            boundColumn.DataField = "ippComponentSrcValue"
            boundColumn.UniqueName = "dgippComponentSrcValue"           
            boundColumn.Display = True
            boundColumn.HeaderText = "Value"



Stefan
Top achievements
Rank 2
 answered on 11 Jun 2013
1 answer
133 views
I am creating a Gantt chart with the Telerik RadChart and it has almost all the features we need.
But I also want to have an edit link inside the bar alongside the label text to open up a different page when clicked on.
I am also using the Active region's url property but need another hyperlink in there. I would also like to have a couple of images
to denote the start and end date etc. I tried giving some html text as the value for the seriesitem label's text property but that is not working. Is there any other way of doing this? I have attached an image of what is expected.
Petar Kirov
Telerik team
 answered on 11 Jun 2013
3 answers
238 views
ask I know for RadTreeList1.Items is only can get currently visible items, which mean those collapse item will not get into the list. Can I know any API that can get all items in RadTreeList include collapse item.
Angel Petrov
Telerik team
 answered on 11 Jun 2013
1 answer
169 views
HTML:
  <telerik:RadComboBox EnableScreenBoundaryDetection="false" ID="cbxSearch"
                    runat="server" AllowCustomText="True" EmptyMessage="" EnableLoadOnDemand="True"
                    EnableVirtualScrolling="True" Height="200px" HighlightTemplatedItems="True" MarkFirstMatch="False"
                    OnClientItemsRequesting="OnClientItemsRequesting" ShowMoreResultsBox="True" ShowToggleImage="False"
                    >
                    <HeaderTemplate>
                        <table id="Table1"  runat="server">
                            <tr>
                                <td > </td> 
                                <td"> Name </td>
                                <td > FName</td>
                                <td > LName </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="width: 100%; text-align: left"  onclick="StopPropagation(event)">
                            <tr>
                                <td style="width: 15px">
                                  <asp:CheckBox runat="server" ID="chk"  onclick="onCheckBoxClick(this)" />
                                </td> 
                                <td style="width: 75px">
                                    <%#DataBinder.Eval(Container.DataItem, "name")%>
                                </td>
                                <td style="width: 75px">
                                    <%#DataBinder.Eval(Container.DataItem, "fname")%>
                                </td>
                                <td style="width: 75px">
                                    <%#DataBinder.Eval(Container.DataItem, "lname")%>
                                </td>
                            </tr>
                        </table>
                  </ItemTemplate>
            </telerik:RadComboBox>

Server Side Code:

   Protected Sub cbxSearch_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs RadComboBoxItemsRequestedEventArgs) Handles cbxSearch
.ItemsRequested

  
            Dim lstUsers =  DatabaseCall(e.Text,  e.NumberOfItems + 1, e.NumberOfItems + 100)

            If lstUsers.Count < 100Then
                  e.EndOfItems = True
            Else
                  e.EndOfItems = False
            End If
         
            Try
                cbxSearch.Datasource= lstUsers
                cbxSearch.DataBind()
            Catch
                e.Message = "No matches"
            End Try

        End Sub

  
        Protected Sub cbxSearch_ItemDataBound(ByVal sender As Object, ByVal e As RadComboBoxItemEventArgs) Handles cbxSearch.ItemDataBound
            e.Item.Text = (DirectCast(e.Item.DataItem, user)).name
            e.Item.Value = (DirectCast(e.Item.DataItem,user)).Id.ToString()
        End Sub
   
Js:
   function onCheckBoxClick(chk) {
    var combo = $find(cbxSearch);
    var selectedItems = $("hdField");
    var text = "";
    var selectedIds = "";
    var items = combo.get_items();
    for (var i = 0; i < items.get_count(); i++) {
        var item = items.getItem(i);
        var chk = $get(combo.get_id() + "_i" + i + "_chk");
        if (chk.checked) {
            text += item.get_text() + ",";
            selectedIds += item.get_value() + ",";
        }
    }
    text = text.replace(/,$/, "");
    userinfoIds = selectedIds.replace(/,$/, "");
    combo.set_text(text);
    selectedItems.value = selectedIds;
}

With the help of this tutorial http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

I was able to build multi column multi select combobox with load on demand. 
But i am facing a problem when I scroll down in the combobox to get next 100 items from the database, im able to bind next 100 items to combobox but the client Ids of checkboxes are same as previous 100 .
    var chk = $get(combo.get_id() + "_i" + i + "_chk");

So im not able to figure out which items are selected.


Any help will be appreciated.

Thanks




Jerry
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
150 views
RadFormDecorator does not decorate input type=button when class attribute is present.
Demo below.
Regards

<%@ Page Title="" Language="C#" MasterPageFile="~/TestUnit/TelerikBug/DecoratedButtonMaster.Master" AutoEventWireup="true" CodeBehind="DecoratedButton.aspx.cs" Inherits="TestUnit.TelerikBug.DecoratedButton" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 
    <script type="text/javascript" src="jquery-1.8.3.js"></script>
 
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
    <div id="addbuttonpanelid">
 
        <input type="button" id="button20" value="bugdecoratedbutton"  class="bug"/><br />
        <input type="button" id="button1" value="decoratedbutton"/><br />
        <input type="button" id="button5" disabled="disabled" value="decorateddisabledbutton" class="bug"/><br />
 
    </div>
 
    <script type="text/javascript">
 
 
        $(document).ready(
            function () {
 
                $("<br/>")
                    .appendTo("#addbuttonpanelid");
 
                $("<input type='button' id='button2' value='afterready'/>")
                    .appendTo("#addbuttonpanelid");
 
                $("#button1").click(function () {
 
                    $('#button5').removeAttr('disabled');
 
                    $("<input type='button' id='button3' value='onclick'/>")
                    .appendTo("#addbuttonpanelid");
                     
                    $("<input type='button' id='button6' disabled='disabled' value='onclick'/>")
                    .appendTo("#addbuttonpanelid");
 
                    $("<input type='button' id='button10id' name='voter' value='VOTER' class='bug'/>")
                    .appendTo("#addbuttonpanelid");
                     
 
                    var decorator = $find("RadFormDecoratorID");
                    if (decorator) {
                        decorator.decorate();
                    }
 
 
                });
 
 
            }
        );
 
    </script>
 
</asp:Content>
Danail Vasilev
Telerik team
 answered on 11 Jun 2013
3 answers
124 views
Hi,

I am using telerik version 2013.1.130.35.

I am trying to bind Grid (RadPivotGrid) with OLAP Cube using ADOMD in a SharePoint application page.

<OlapSettings ProviderType="Adomd">
            <AdomdConnectionSettings Cube="XXXX" DataBase="XX" ConnectionString="Provider=MSOLAP;Data Source=SERVERNAME;Initial Catalog=XX;User Id=Domain\UserName;Password=Password;">
            </AdomdConnectionSettings>
        </OlapSettings>

When page gets loaded, no data gets populated in grid.

Requesting you to provide assistance to have this issue resolved.

Thanks and Regards,
Amit Thakkar
Tsvetoslav
Telerik team
 answered on 11 Jun 2013
4 answers
146 views
I have a RadMenu that display when a button is hovered over.  I set a fixed size height on the menu of 600px.  I would like the sub-menus to line up at the top edge of the parent menu instead of coming out next to the parent item. 

The root items are dynamic so I cannot simply use the Offset properties.

I am attaching two images.

urbanBaldGuy
Top achievements
Rank 1
 answered on 11 Jun 2013
10 answers
746 views

Тhe FREE Telerik RadFormDecorator is a unique control that provides great skinning capabilities for standard Microsoft form controls like buttons, checkboxes, text areas, fieldsets, scrollbars, etc.

  • Style all page UI elements from a central location.
  • Page layout is preserved.
  • Choose from 14 ready skins or make your own.

The FREE distribution of RadFormDecorator also includes a TRIAL version of all other controls from the RadControls for ASP.NET AJAX Suite. 

The product is provided to you and the community complimentary and is available through electronic download. This complimentary community edition does not come with dedicated support, however, you may access the supplemental support resources (documentation, forums). We hope you enjoy this product and take full advantage of all the resources available to you.

ONLINE DEMOS    DOWNLOAD


Danail Vasilev
Telerik team
 answered on 11 Jun 2013
2 answers
325 views
Here is my javascript that open simple browser popup but i want to open using radwindow i'm new for telerik control so how can i do this?

<script language="javascript" type="text/javascript">
            function openTest(num, cid) {
                var nAgt = navigator.userAgent;
              
                if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10/i.test(navigator.userAgent))
                    window.open("default.aspx?ChapterNum=" + num + "&cid=" + cid, "DefaultPage");
                else
                window.showModalDialog("Course.aspx?ChapterNum=" + num + "&cid=" + cid, null, "dialogHeight=700px; dialogTop=75px; dialogLeft=250px; dialogWidth=800px; edge=Raised; center=No; help=Yes; resizable=no; status=no; scroll=yes");
          
            }
</script>
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2013
1 answer
143 views
Hi All,
sorry if this has been asked before (yes, I did search the forums).
I have a page with Master-Detail functionality. The details grid is in a RadWindow ModalPopup which also has functionality for adding records.
When a record is added the modal closes. What I'd like to have is the window to stay open and the grid to refresh. I'm pretty sure this is something simple, but I can't seem to figure it out.

Thx in advance for help and/or pointers.
Rgds - M.
Marin Bratanov
Telerik team
 answered on 11 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?