Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
Hi,

I am having "NestedViewTemplate" with in the "MasterTableView".   ( RadGrid )

In NestedViewTemplate, Some readonly controls, and three editable textboxes.
In MasterTableView, i have some GridBoundColumn and a GridButtonColumn.

My requirement is i need to update my source list, when your users enters text in nestedviewtemplate textbox.  Currently when ever i am clicking the enter key after giving some text in nestedviewtemplate textbox, its calling radgrid itemcommand event, since mastertable view contain a button column.

Can i pass any command argument from the textbox ( inside the nestedview template ) to differentiate with masterview button click  (or) can we attach any server side event for the texboxes inside the nestedview template. ?


Ram
Top achievements
Rank 1
 answered on 10 Apr 2012
8 answers
307 views
Hi ALL,

I am using telerik rad grid , but i am unable to find the <telerik:GridDragDropColumn> tag.

MY grid code look like:

<

 

div style="float: left; padding: 0 6px 0 10px">

 

 

<h2 style="color: #9c3608">

 

Pending Orders

</h2>

 

 

<telerik:RadGrid runat="server" ID="grdPendingOrders" OnNeedDataSource="grdPendingOrders_NeedDataSource"

 

 

AllowPaging="True" Width="350px" OnRowDrop="grdPendingOrders_RowDrop" AllowMultiRowSelection="true"

 

 

PageSize="30" EnableHeaderContextMenu="true">

 

 

<MasterTableView DataKeyNames="QuestionnairePK" TableLayout="Fixed">

 

 

<Columns>

 

 

<telerik:GridDragDropColumn HeaderStyle-Width="18px" Visible="false" /> --> i am unable to write this tag. its throwing error like 'Unknown server tag 'telerik:GridDragDropColumn'.

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

<Resizing AllowColumnResize="true" />

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

 

 

<ClientEvents OnRowDropping="onRowDropping" />

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="true" />

 

 

</ClientSettings>

 

 

<PagerStyle Mode="NumericPages" PageButtonCount="4" />

 

 

</telerik:RadGrid>

 

</

 

div>


Thanks in advance
sameer

 

Noonecares
Top achievements
Rank 1
 answered on 10 Apr 2012
3 answers
205 views
I am getting a weird  "script16385 not implemented" error from both my current project and in Telerik's demo in the IE 9 dev console.

http://demos.telerik.com/aspnet-ajax/captcha/examples/captchaaudiocode/defaultcs.aspx


I am currently using telerik 2011.3.1305.40.

Any ideas what is going on?

Thanks,
Chris
Slav
Telerik team
 answered on 10 Apr 2012
1 answer
222 views
Hello,

I want to clear the content of RadTextBox when the user focuses on a textbox so that the user can write his/her name.

Thanks,
Sigma.
Shinu
Top achievements
Rank 2
 answered on 10 Apr 2012
21 answers
180 views
There seems to be a bug with the PreventCollapse option of the RadPanelBar.

We use a RadMultiPage together with a RadTabStrip. The RadMultiPage is set to only Render the selected RadPageView. On a few of the RadPageViews, we use RadPanelBars, which we ALWAYS want to have expanded (as they serve mostly as visual aids boxing contents togehter). For the RadPanelBars we have set Expanded = true and PreventCollaps = true.

The first time you visit the RadPageView containing the RadPanelBars, this seem to work as the RadPanelBars are expanded. However, if you click back and forth on the RadTabStrip (changing RadPageViews), you will soon find that all RadPanelBars have collapsed, despite the fact that they should not be able to do so. If you expand them on the page, you can not collapse them again (other than repeating the above described method).

It seems like this must be due to a bug in the RadPanelBar, as the Expanded = true and PreventCollaps = true should prevent any collapse, right?

 
Kate
Telerik team
 answered on 10 Apr 2012
1 answer
90 views
Hello,

Can anyone explain how to achive drag drop facility on listview control of Kendo.I am relatively new to this so any information would be welcome !!

Thanks in advance
Pavlina
Telerik team
 answered on 10 Apr 2012
1 answer
76 views
I have a RadGrid with a GridTableView inside the DetailTables.  This GridTableView has a LinkButton in it's CommandItemTemplate.  When this button is clicked it fires off the RadGrid1_ItemCommand  I set e.item.OwnerTableView.IsItemInserted = false to Reset any rows in insert mode.  I then add three records into a table that populates the DetailTable.   I then issue e.Item.Edit = True to put the rows into edit mode.  What I get is all my records displayed including the three I just added but only some of the fields are in edit mode (screenshot attached with new records highlighted).  I know my problem has something to do with needing to rebind the DetailTable but when I try to rebind the expanded DetailTable gets unexpanded and thrown out of edit mode.  How do you rebind the datasource of the GridTableView / DetailTable without causing it to collapse on the screen?
Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
 
    sTableName = "" & e.Item.OwnerTableView.Name
 
    Select Case sTableName
        Case "Noms"
 
            Select Case e.CommandName
                Case "EditAll"
 
                    ' Edit All button pressed. Reset any rows in Insert mode
                    e.Item.OwnerTableView.IsItemInserted = False
 
                       'Code to add records to Database is here.
 
 
                    ' Put all rows in Edit mode
                    e.Item.Edit = True
 
            End Select
      End Select
End Sub


Andrey
Telerik team
 answered on 10 Apr 2012
2 answers
81 views
Hi, I'm trying your Product and I have a Question about the TimeLine Scheduler.

I have the SlotDuration to "12:00:00" and the number of slot to 12.
I need to have the list of rooms to the left and the Morning and Afternoon from Monday to Saturday.
That's work fine.
I need only add up the Day of the combinated Columns.
Is that possible ?


                         Monday  |   Tuesday      | Wednesday
                  00:00 | 12:00 | 00:00 | 12:00 | 00:00 | 12:00
Room 1
Room 2

In Bold my Problem.
is it possible to replace time by text?

Thanks for your help
Fabrice
Top achievements
Rank 1
 answered on 10 Apr 2012
5 answers
258 views

Hello

I am trying to get RadScriptManager to work on a page in conjunction with controls from the Ajax Control Toolkit. The website runs under .NET 3.5, and I have a version of the ACT DLL that is built on a .NET 3.5 reference. 

Specifically, I have Telerik.Web.UI v2011.3.1115.35, with an AnimationExtender from ACT v3.5.40412.2.  I have all the DLLs correctly referenced, and no errors are reported, but the AnimationExtender does not appear to be working - it is not responsive to any mouse events. As I understand the issue, I need the RadScriptManager from Telerik.Web.UI to substitute for the ToolkitScriptManager from ACT. On that basis, I found the forum posting shown here:  

http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/fix-radscriptmanager-compatibility-issues-with-ajax-control-toolkit.aspx

This post looks as if it might go some way to addressing my objective. However, I need to carry out the script reference customization programmatically. Hence, I managed to come up with the following code to run on Page_Load, where radsm is the declared RadScriptManager control ...

radsm.EnableScriptCombine = False
radsm.Scripts.Add(New ScriptReference( _
   "MicrosoftAjax.js", _
   "System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"))
radsm.Scripts.Add(New ScriptReference( _
   "MicrosoftAjaxWebForms.js", _
   "System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"))

The problem is this code does not seem to solve my issue. Where could I be going wrong? Is this combination of libraries and controls even possible? Can the RadScriptManager be manipulated in this way programmatically?

If you could provide me with some pointers of the right direction to work in, that would be really useful.

Thanks very much

 

Genady Sergeev
Telerik team
 answered on 10 Apr 2012
1 answer
165 views
I have looked at the examples I could find but do not find one with a masterpage and updatepanel involved.  How can I export to excel within a masterpage and updatepanel.  If I have the updatepanel out of the following code it works but when put back in it does nto work, but produces no errors either.  Originally I tried to use one update panel but switched to 2 to see if I could get it to work this way. still no deal.

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" Runat="Server">
    <asp:UpdatePanel ID="udp1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lnkDisplay" />
        </Triggers>
        <ContentTemplate>
             <asp:Panel ID="pnlPick" Runat="server">
                <table width="100%">
                    <tr>
                        <td align="center" width="100%">Pick Deployment: 
                            <asp:DropDownList id="ddlDeployment" Runat="server" Width="160" AutoPostBack="True"></asp:DropDownList>     
                            Pick BN: <asp:DropDownList id="ddlBn" Runat="server" Width="120" AutoPostBack="True"></asp:DropDownList>
                                 Pick Uic: <asp:DropDownList id="ddlUic" Runat="server" Width="120" AutoPostBack="true"></asp:DropDownList>
                            <asp:Button ID="btnPanel" runat="server" style="display:none" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center"><asp:LinkButton ID="lnkDisplay" Runat="server" CausesValidation="True">Display DMD</asp:LinkButton></td>
                    </tr>
                    <tr>
                        <td style="height:10px"></td>
                    </tr>
                </table>
            </asp:Panel>
       </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="udp2" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlgrid" runat="server" Visible="false">
                <table width="100%">
                    <tr>
                        <td align="center">
                             <telerik:RadGrid ID="myRadGrid" runat="server" Width="98%" BorderWidth="1px" CellPadding="6" GridLines="None" BorderColor="#404040" Skin="Web20">
                                <ExportSettings ExportOnlyData="true" FileName="DonorSlots" IgnorePaging="true" OpenInNewWindow="true"></ExportSettings>
                                <MasterTableView AutoGenerateColumns="false" Name="MasterGrid" BorderColor="#404040" Font-Size="9" Font-Names="Veranda,arial,sans-serif" 
                                HeaderStyle-HorizontalAlign="Center" GridLines="Both" BorderWidth="1px" CommandItemDisplay="Top" EditMode="EditForms">
                                <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" ShowExportToExcelButton="false" /><AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                                    <CommandItemTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td align="right"><asp:Button ID="btnExport" runat="server" CommandName="ExportToExcel" Text="Export Excel" /></td>
                                            </tr>
                                        </table>
                                    </CommandItemTemplate>
                                   <Columns>
                                    <telerik:GridBoundColumn DataField="Unit" HeaderText="Unit" />
                                    <telerik:GridBoundColumn DataField="Para\Line\Pos" HeaderText="Para\Line\Pos" />
                                    <telerik:GridBoundColumn DataField="Posn_title" HeaderText="Posn_Title" />
                                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" />
                                    <telerik:GridBoundColumn DataField="Rank" HeaderText="Rank" />
                                    <telerik:GridBoundColumn DataField="SSN" HeaderText="SSN" />
                                    <telerik:GridBoundColumn DataField="Grade" HeaderText="Grade" />
                                    <telerik:GridBoundColumn DataField="DMOS" HeaderText="Duty_Posn" />
                                    <telerik:GridBoundColumn DataField="REQCLR" HeaderText="Req Clr" />
                                    <telerik:GridBoundColumn DataField="PassPortDT" HeaderText="Pass_Port_DT" />
                                    <telerik:GridBoundColumn DataField="MobDay" HeaderText="Mob Days Cottad" />
                                    <telerik:GridBoundColumn DataField="SCTYDT" HeaderText="Scty_Dt" />
                                    <telerik:GridBoundColumn DataField="PHY_EXAM_DT" HeaderText="Phy_Exam_DT" />
                                    <telerik:GridBoundColumn DataField="MRD\ETS" HeaderText="Ets\Mrd" />
                                    <telerik:GridBoundColumn DataField="SRP_DT" HeaderText="Srp_DT" />
                                    <telerik:GridBoundColumn DataField="CLS" HeaderText="Cls Trained" />
                                    <telerik:GridBoundColumn DataField="Profile" HeaderText="P3\P4 Profile" />
                                    <telerik:GridBoundColumn DataField="Cleared" HeaderText="Mmrp|Peb|Meb Cleared" />
                                    <telerik:GridBoundColumn DataField="Remarks" HeaderText="Remarks" />
                                </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


Maria Ilieva
Telerik team
 answered on 10 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?