Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
202 views
I need copy onkesspress event of txtName the value on txtHumanLabel when user update or insert.


I did this, but does not work

  var txtEditId = $telerik.$(masterTable.get_element()).find('input[id*="txtEId"]')[0];   --IS UPDATE??

                if (txtEditId == undefined) {
                    var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0];  -- IS INSERT
                    txtHeader.value = Name.value;
                   
                } else {

                    var txtHeader = $telerik.$(masterTable.get_element()).find('input[id*="txtHeader"]')[0];
                    var value = txtHeader.value;
                    if (value.length == 0) {
                        txtHeader.value = Name.value;
                    }
                }


regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 31 Jul 2012
2 answers
169 views
Hi,

I have four listbox. Three of them contains items that could be transferred to the other. Users change the visible listbox with a radio button. Each listbox contains a different template item, so my listbox that receive items can't have a template item. I've try the client-side transfer mode but it's doesn't transfer the item completly; my item is display is plain text, without any html code. I've seen in the help documentation (http://www.telerik.com/help/aspnet-ajax/listbox-templates-overview.html) that I can't transfer template in client-side mode, only on server-side. I can't use transfer button between the listbox because we want the user to do one-click only to transfer one item, and not select and item and click on the button. I can't put a button element in each item because it will trigger an exception (ThrowIfMaxHttpCollectionKeysExceeded). Presently, I try to simulate a button with a div element, but I can't put an id in my item template because an id have to be unique in a HTML page, so I can't put an function assigned to this div...

Exemple of a listbox:
<telerik:RadListBox ID="lbxDepDisponibles"
        runat="server" Height="300px" Width="335px" Visible="false"
        TransferToID="lbxTraites" DataValueField="number" >
    <ItemTemplate>              
        <div class="listeDispo departementTraite">
            <div>
                <img class="adminButton" src="Images/Administre.gif" height="32" style="margin:0px" />
            </div>
            <div class="dispoInfo">
                <div class="cboContent" style="display:block;">
                    <span style="font-weight: bold;">
                        <%#DataBinder.Eval(Container, "Attributes['description']")%>
                        <span style="font-size: 10px;">
                            <br />Dep. # <%#DataBinder.Eval(Container, "Attributes['number']")%> - <%#DataBinder.Eval(Container, "Attributes['name']")%>
                        </span>
                    </span>
                </div>
            </div>
        </div>
    </ItemTemplate>
</telerik:RadListBox>


My question is: how can I transfer an item from one listbox to another, with the item template, without using the transfer button, with a div element (or any other html element that is not an input element) that play the button role in each item?

Thank you

  • Visual studio 2008 .NET 3.5 SP1
  • Windows 7
  • any browser
  • Telerik ASP.NET AJAX 2012.1.301.2
  • VB.NET
Rémy
Top achievements
Rank 1
 answered on 31 Jul 2012
4 answers
64 views
Hi guys. I'm just trying to get the simple export feature to work. I like the demo sample here (Export Demo) where the grid has the export buttons built in. I was able to get the buttons to show up in the grid, however, when they are clicked on, nothing happens. (Well, the data seems to be refreshed against the object data source, which isn't what I want to happen...but I guess that's a separate issue) I've tried it in two different browsers and it doesn't seem to be blocked by pop-up blockers. Is there something I'm missing?

Thanks!

        <telerik:RadGrid ID="grdEvals" runat="server" Width="720px" CellSpacing="0"
            DataSourceID="odsEvals" GridLines="None"
            onselectedindexchanged="grdEvals_SelectedIndexChanged" AllowPaging="True"
            AllowSorting="True" ShowGroupPanel="True" PageSize="20"
            ShowStatusBar="True"  >
            <ExportSettings IgnorePaging="True" >
            </ExportSettings>
            <ClientSettings EnablePostBackOnRowClick="True" AllowDragToGroup="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="odsEvals"  CommandItemDisplay="Top" >
<CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToCsvButton="True"
        ShowExportToExcelButton="True" ShowExportToPdfButton="True"
        ShowExportToWordButton="True" ShowAddNewRecordButton="False"
        ShowRefreshButton="False"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32"
            FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True"  Visible="false"
            SortExpression="ID" UniqueName="ID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmployeeID"
            FilterControlAltText="Filter EmployeeID column" HeaderText="Employee ID"
            SortExpression="EmployeeID" UniqueName="EmployeeID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmployeeName"
            FilterControlAltText="Filter EmployeeName column" HeaderText="Employee Name"
            SortExpression="EmployeeName" UniqueName="EmployeeName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateCompleted" DataType="System.DateTime"
            FilterControlAltText="Filter DateCompleted column" HeaderText="Completed"
            SortExpression="DateCompleted" UniqueName="DateCompleted">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CoreValueNos" DataType="System.Int32"
            FilterControlAltText="Filter CoreValueNos column" HeaderText="Core Value No's"
            SortExpression="CoreValueNos" UniqueName="CoreValueNos">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="OtherNos" DataType="System.Int32"
            FilterControlAltText="Filter OtherNos column" HeaderText="Other No's"
            SortExpression="OtherNos" UniqueName="OtherNos">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmployeeCostCenter"
            FilterControlAltText="Filter EmployeeCostCenter column"
            HeaderText="Cost Center" SortExpression="EmployeeCostCenter"
            UniqueName="EmployeeCostCenter">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>

Darren
Top achievements
Rank 2
 answered on 31 Jul 2012
1 answer
33 views
I have a tabstrib and multiview.   Each Pageview ahs a seperate user control.  Several have radgrid on them with an edit column.   When the user clicks edit.  the page postbacks and after the page refreshes the control for multiview with tabindex of 0 is displayed.   TO get back to original tab you need to click another tab then back to originating tab with radgird.   When it is displayed,  the tab is blank.   WHat do I need to do to get the edit to work?
Ivan Zhekov
Telerik team
 answered on 31 Jul 2012
3 answers
203 views
I have a column which contains a date, but I need to return it from my C# model as string so that i can do some special formatting to it first (I need to check for null and for DateTime.Min and then return an empty string in those instances). If it's a string, however, I understand that the sorting won't work correctly. Is there a way to set the data type of the column to DateTime or to get the string date to sort correctly?

Thanks,
Jay
Jay
Top achievements
Rank 1
 answered on 31 Jul 2012
1 answer
74 views
Hello Sir/Mam

I am getting a issues on Radchart control.
I want to change y axis mark point into reverse direction.

Please find the attachment and review this.

Please let me know that how we do this in Rad Chart


Thanks
Viky
Tsvetie
Telerik team
 answered on 31 Jul 2012
1 answer
63 views
Hi!

I want to localize pager buttons(first,,prev,next,last) in NextPrevAndNumeric pagermode.

In Grid itemCreated I can access GridPagerItem., but I don't know how to access to these buttons.
I have already tried to set localized text in the radGrid.PagerStyle, but it isn't works.

Thx.
Eyup
Telerik team
 answered on 31 Jul 2012
1 answer
337 views
Hello,
Is there any code samples available for using the CAPTCHA control with the .net login control?

Thank you,
Slav
Telerik team
 answered on 31 Jul 2012
1 answer
98 views
Is it possible to make the radgrid command item toolbar seen here vertical along the left hand edge of the grid?

http://demos.telerik.com/aspnet-ajax/toolbar/examples/applicationscenarios/gridcommanditem/defaultcs.aspx?product=toolbar 
Kate
Telerik team
 answered on 31 Jul 2012
1 answer
299 views
Hello Community,

  I have a problem with the radGrid from Q3/2011 Version. On client Java script I have to get the actual sort expression of the grid. As the documentation stated, I used the following code:
var grid = $find ( ... gridClientId... )
 
// Grid is found, so get the sort expression
var masterTableView = grid.get_masterTableView();
var sortExpressions = masterTableView.get_sortExpressions();
But sortExpression is always empty even if my grid is definitely sorted by one column.

In the documentation I found the Note: The RadGrid get_sortExpressions() property is meaningful only in case the RadGrid control is bound client-side.

This I interpret, that, if the grids data is not bound from client side, I cannot get the sort expression this way.

My grid is bound to an ObjectDataSource. So how can I get the sortExpression?

Greetings
  Thomas
Shinu
Top achievements
Rank 2
 answered on 31 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?