Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
522 views
Hello,

I have this grid structure, in which the field is in the PlaceHolder only have to show the insertion of a new record.

<EditFormSettings EditFormType="Template">
                <EditColumn ButtonType="ImageButton" />
                <FormTemplate>
                    <table>
                        <tr>
                            <td>Nombre de usuario: </td>
                            <td>
                                <asp:TextBox ID="login" runat="server" Text='<%# Bind("Login") %>' />
                            </td>
                        </tr>
                        <asp:PlaceHolder ID="phInsert" runat="server">
                            <tr>
                                <td>Contraseña: </td>
                                <td>
                                    <asp:TextBox ID="password" runat="server" Text='<%# Bind("Password") %>' />
                                </td>
                            </tr>
                        </asp:PlaceHolder>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>

In code -behind I have the following:

protected void RadGridUserAccount_ItemCommand(object sender, GridCommandEventArgs e)
        {
            RadGrid grid = sender as RadGrid;

            if (e.CommandName == "InitInsert")
            {
                //var gridEditFormItem = e.Item as GridEditFormItem ?? ((GridDataItem)(e.Item)).EditFormItem;
                GridItem cmdItem = grid.MasterTableView.GetItems(GridItemType.CommandItem)[0];
                //GridEditFormItem editform = (GridEditFormItem)((Telerik.Web.UI.GridDataItem)(e.Item)).EditFormItem;
                PlaceHolder insert = cmdItem.FindControl("phInsert") as PlaceHolder;
                //GridEditFormItem gridEditFormItem = (GridEditFormItem)e.Item;

                //PlaceHolder insert = (PlaceHolder)gridEditFormItem.FindControl("phInsert");
               
                insert.Visible = true;
            }
        }

This code is not working for me, always return NullReferenceException.

Would appreciate help as I have tried in many ways and I always get the same exception.


Viktor Tachev
Telerik team
 answered on 19 Feb 2015
2 answers
103 views
Hi,

I am trying the new media player because we are interesting by Youtube Playlist functionnality.

I've just tried the example code but it doesn't work here.

When I look why it doesn't work, I can find this :

Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée 216.58.211.78:443
   à System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)


It's french but as you can guess, it just says that it cannot connect to the playlist (I've just copy-paste the demo code).

Have you any idea ?

Thanks in advance.
Arnaud
Top achievements
Rank 1
 answered on 19 Feb 2015
1 answer
114 views
Hi,

I have met issues for binding RadTextBox as TreeListTemplateColumn.
1. Which sever side event can be triggered when text box value changed?
2. How to auto select current tree list row as well when the text box is focused?
3. This tree list is in the radwizard as one step. Every time I have to press enter key to fire RadTextBoxSN_TextChanged, ance once it fired, the page will automatically move to next wizard step. I wrote the manual next button event for wizard and no idea how this happened. Please help.

<telerik:TreeListTemplateColumn HeaderStyle-Width="170px" DataField="LotSerialNumber" UniqueName="LotSerialNumber" HeaderText="Lot/Serial Number">
                                                    <ItemTemplate>
                                                        <div style="text-wrap: none; word-break: keep-all; table-layout: fixed">
                                                            <telerik:RadTextBox ID="RadTextBoxSN" runat="server" OnTextChanged="RadTextBoxSN_TextChanged" ToolTip='<%# Eval("TXN_ID")%>' Text='<%# Eval("LotSerialNumber")%>' Width="125px">
                                                            </telerik:RadTextBox>
                                                            <asp:LinkButton ID="btnSearch" runat="server">
                                                    <img style="border: 0px; vertical-align: bottom" src="~/../Images/search.gif" />
                                                            </asp:LinkButton>
                                                            <asp:LinkButton ID="btnValid" runat="server" Visible="false" Enabled="false">
                                                    <img id="ImgValid" style="border: 0px; vertical-align: bottom" src="~/../Images/success.gif" />
                                                            </asp:LinkButton>
                                                            <asp:LinkButton ID="btnInvalid" runat="server" Visible="false" Enabled="false">
                                                    <img id="ImgInvalid" style="border: 0px; vertical-align: bottom" src="~/../Images/error.gif" />
                                                            </asp:LinkButton>
                                                        </div>
                                                    </ItemTemplate>
                                                </telerik:TreeListTemplateColumn>




















Eyup
Telerik team
 answered on 19 Feb 2015
1 answer
98 views
When entering text into the AutoComplete control configured for token input type when the 12th character is entered the X button displays overlaying the last few characters entered.  Upon entering additional characters the text will shift to the left and the first few character are shifted outside the token and are not visible. Is there anyway to increase the size of the token so this does not happen? 

See attached screen shots.
Boyan Dimitrov
Telerik team
 answered on 19 Feb 2015
5 answers
90 views
I have a grid on a page with the skin MetroTouch on a jquery mobile page.   When the grid renders, the Jquery Mobile applies styles to elements of the grid, such as the filter.

I want to add --data-role="none"-- to all aspects of the grid and let it render with the MetroTouch style only.   How can I do this?

Peter
niv kfir
Top achievements
Rank 1
 answered on 19 Feb 2015
1 answer
125 views
Hi,
apologies if this is an obvious question but is is possible to get the tiles to render across then down rather than down then across. I have data from a database and it means that when looking for a person it is  non-intuitive.

thanks

Chris 
Marin Bratanov
Telerik team
 answered on 19 Feb 2015
1 answer
150 views
Hi,

I'm trying to get multiple maps showing on the same page and looking to handle it in twitter bootstrap tabs.  The issue I'm facing is that the map is cut off when navigating to a second tab, I have tried calling the resize function without any success.  My markup is like this

<div class="centered-pills">
    <ul class="nav nav-pills" id="myTab">
        <li class="active">
            <a href="#response" data-toggle="pill" >Response</a>
        </li>
        <li><a href="#eng" data-toggle="pill">Eng</a></li>
        <li><a href="#bias" data-toggle="pill">Bias</a></li>
        <li><a href="#sus" data-toggle="pill">Sus</a></li>
    </ul>
</div>
     
<div class="tab-content">
    <div class="tab-pane active" id="response">
        <telerik:RadMap runat="server" ID="RadMap1" Zoom="2" Height="600px" MinZoom="2" MaxZoom="2" Pannable="false" CssClass="Map" >
            <ClientEvents OnShapeCreated="shapeCreated" OnShapeMouseEnter="shapeMouseEnter" OnShapeMouseLeave="shapeMouseLeave" />
                <LayersCollection>
                    <telerik:MapLayer ClientDataSourceID="RadClientDataSource1" Type="Shape" Opacity="1" TitleField="name" ValueField="response" Key="response" />
                </LayersCollection>
            <CenterSettings Longitude="32" Latitude="7" />
        </telerik:RadMap>
    </div>
 
    <div class="tab-pane" id="eng">
        <telerik:RadMap runat="server" ID="RadMap2" Zoom="2" Height="600px" MinZoom="2" MaxZoom="2" Pannable="false" CssClass="Map" >
            <ClientEvents OnShapeCreated="shapeCreated" OnShapeMouseEnter="shapeMouseEnter" OnShapeMouseLeave="shapeMouseLeave" />
                <LayersCollection>
                    <telerik:MapLayer ClientDataSourceID="RadClientDataSource1" Type="Shape" Opacity="1" TitleField="name" ValueField="eng" Key="eng" />
                </LayersCollection>
            <CenterSettings Longitude="32" Latitude="7" />
        </telerik:RadMap>
    </div>
 
    <div class="tab-pane" id="bias">
        <telerik:RadMap runat="server" ID="RadMap3" Zoom="2" Height="600px" MinZoom="2" MaxZoom="2" Pannable="false" CssClass="Map" >
            <ClientEvents OnShapeCreated="shapeCreated" OnShapeMouseEnter="shapeMouseEnter" OnShapeMouseLeave="shapeMouseLeave" />
                <LayersCollection>
                    <telerik:MapLayer ClientDataSourceID="RadClientDataSource1" Type="Shape" Opacity="1" TitleField="name" ValueField="sus" Key="sus" />
                </LayersCollection>
            <CenterSettings Longitude="32" Latitude="7" />
        </telerik:RadMap>
    </div>
 
    <div class="tab-pane" id="sus">
        <telerik:RadMap runat="server" ID="RadMap4" Zoom="2" Height="600px" MinZoom="2" MaxZoom="2" Pannable="false" CssClass="Map" >
            <ClientEvents OnShapeCreated="shapeCreated" OnShapeMouseEnter="shapeMouseEnter" OnShapeMouseLeave="shapeMouseLeave" />
                <LayersCollection>
                    <telerik:MapLayer ClientDataSourceID="RadClientDataSource1" Type="Shape" Opacity="1" TitleField="name" ValueField="bias" Key="bias" />
                </LayersCollection>
            <CenterSettings Longitude="32" Latitude="7" />
        </telerik:RadMap>
    </div>
</div>



$('#myTab a').click(function (e) {
    e.preventDefault();
    $(this).tab('show');
})

any help would be appreciated
Ianko
Telerik team
 answered on 19 Feb 2015
1 answer
27 views
Hi,

I am using Telerik RadHtmlChart  control in my page to display reports. In our phone app we are using Telerik RadChart and also TrackBall feature is enabled. I want to create the same thing in my web page also. How can I implement track ball in my page having RadHtmlChart (AreaSeries). Is trackball feature is available in RadHtmlChart control?  Any one please help. Thanks in advance.
Danail Vasilev
Telerik team
 answered on 19 Feb 2015
1 answer
253 views
Is there a RAD NumericUpdown control for ASP.net? Can one be created? Please advise. Thanks.
Marin
Telerik team
 answered on 19 Feb 2015
12 answers
349 views

Hi,

I have a pivot grid where some of the fields holds "long" texts. Sometimes the “rows” in the grids are not aligned correctly with the “column rows” – especially when the text wraps. I tried my example in a completely empty project on a page having only the pivot grid but the problem does not go away (no CSS or other layout applied).

(IE9)

Vasil
Telerik team
 answered on 19 Feb 2015
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?