Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
217 views
Hey all

I was wondering how you can copy a value as text from one combo box to another (as text on the destination combobox) using javascript, and concatenating additional values as a text string.

Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Jun 2012
10 answers
595 views
When a user edits a row in my RadGrid, a popup form is used to edit it. The WebUserControl that is used will vary depending on what is being edited. I set the WebUserControl as follows:

e.Item.OwnerTableView.EditFormSettings.UserControlName = "PropertyListsNumber.ascx"

In PropertyListsNumber.ascx I have another user control. This nested control is a RadComboBox. The combobox is populated with checkboxes and javascript is used to concatenate the checked selections, as shown in one of the Telerik demos. The combobox does get populated but when you go to check off an item in the dropdown, a run-time error occurs indicating that the object could not be found. I have verified that my Javascript code is correct.

It isn't even possible to set a breakpoint or open any script in VS to set one. Even using "debugger;" will not work. After playing around with the code, I moved the javascript outside of the nested control and put it into a normal javascript file and had the script registered from the page hosting the control that was hosting the nested control. I was able to get a breakpoint to work although this really didn't help to solve my problem. What it did tell me is that if the script is not registered, it cannot get executed. I was under the impression that any user controls, no matter how nested they are, all get merged and the scripts get executed. That does not seem to be the case. If you look at the code I am showing above, the user control gets set at run-time, so it appears that ASP.NET is not even aware of the script since it could not have gotten registered at runtime, which might explain why it isn't getting executed.

I also tried using RegisterScriptBlock and RegisterCodeBlock inside the nested control but that did not help either.

So how can I get the script in the nested control to get executed? Or maybe even more to the point, how can I get it registered?

Thanks
Johann

Maria Ilieva
Telerik team
 answered on 18 Jun 2012
1 answer
209 views
I have an entity with values and bind it to a RadGrid that uses GridBoundColumn for all columns.

everything comes back great.

i need to add a custom row.   in that custom row the first cell needs to have a colspan of 3  then the rest can follow in order.

Below is the simple bind I do and it brings back the detail rows from the entity.

How can add a new row........

colspan the cells I want within that row

apply a total from the column i want from the GridBoundColumn within that custom row cell.

                grdInfo.Setup(false, true, true);
                grdInfo.ClientSettings.Selecting.AllowRowSelect = true;
                grdInfo.DataSource = Solution.Detail;
                grdInfo.DataBind();

Thanks In advance
Radoslav
Telerik team
 answered on 18 Jun 2012
1 answer
123 views
hi,
i have a RadListBox in a GridTemplateColum with a different datasorce of radgrid.

can I apply filter on this column? 


Andrey
Telerik team
 answered on 18 Jun 2012
3 answers
140 views
Hi all,
i need to fire a javscript event when the all item is checked or unchecked???

i need to do that to be used when validating the combobox has one at least item checked...

the all item is not considered as and RadComboBoxItem as i read from the documentation...

please help....

thanks
asa'ad...
Ivana
Telerik team
 answered on 18 Jun 2012
1 answer
176 views
Hi,

I need to create a rasScheduler dynamically from code, I need to change the header template is it possible to replicate the below snippet in code and assign it to the scheduler dynamically.


<ResourceHeaderTemplate>
    <asp:Panel ID="ResourceWrapper" runat="server">
        <asp:Label ID="AgentLabel" runat="server" Text='<%# Eval("Text") %>' />
    </asp:Panel>
</ResourceHeaderTemplate>

Thanks

Arvind
Peter
Telerik team
 answered on 18 Jun 2012
2 answers
1.2K+ views

Hello all

I've been diagnosing a problem with a grid control being slow to respond to user input for a sister company.  This is using the trial version of 2012 Q1 (this sister company does have a license, but I don't have access so installed the trial version).

Row selection in a grid with just over a 1000 rows in now quicker, but it still too laggy (taking about 0.2 seconds for selection to change).  This software generates grids on the fly from user designs in the database, and the grids can be quite complex with check boxes and drop down lists in the table elements, which if there are a number of controls on there seems to slow everything down to a crawl (which to be fair I'd sort of expect, with a DOM with 20,000 drop down lists in it).

I was just wondering if there is a suggested maximum number of rows to populate in a grid?  Is paging always recommended to make the control act in a controllable manner disregarding the number of rows it has to display?

Cheers.

Ian C
Ian
Top achievements
Rank 1
 answered on 18 Jun 2012
4 answers
143 views
Hello,

I am currently replacing all our classic grids using the new ajaxGrid. Many of those pages bind the data inside the Page_Load.
But i noticed that does break the pager when using the new ajaxGrid. The back and forward buttons aren't working anymore.

I kinda need this to work, since its a no-go to change all the code to get this working. I did include a test project that i made to be sure this really is the cause of the problem.

Please help me, since i've been on this for a while.

Kind regards,

Guido

this is the test project (till Apr 19 / 2012)
Guido S
Top achievements
Rank 1
 answered on 18 Jun 2012
1 answer
204 views
In My application I populate Nested Rad Grid with three nested tables:
<clients>
<matters>
<files>
</files>
</matters>
</clients

On each level there is a RadioButtonList with three buttons Approve, Assign, Forbid
There are two problems.
How do I populate the Radio Button lists on every level?
What event populates data in the nested views?
Seems easy on the main level, but I cannot make it work on the levels down:

 Protected Sub rgSessionClientsNested_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgSessionClientsNested.ItemDataBound
If e.Item.ItemType = GridItemType.AlternatingItem Or e.Item.ItemType = GridItemType.Item Then
Dim dataItem As GridDataItem = e.Item
Dim radCell As Telerik.Web.UI.GridTableCell = dataItem("authorize")
Dim forbidCell As GridTableCell = dataItem("forbidCnt")
Dim state As String = forbidCell.Text
Dim rdList As System.Web.UI.WebControls.RadioButtonList = radCell.FindControl("RadioButtonListClient1")
If state = "A" Then
rdList.Items(0).Selected = True
ElseIf state = "F" Then
rdList.Items(1).Selected = True
ElseIf state = "N" Then
rdList.Items(2).Selected = True
End If

Second question is related to the first one.
When the user clicks a button on any level I need to trigger a database update.
How can I do it?

Thanks in advance!
Here is my nested grid:

<

 

 

telerik:RadGrid ID="rgSessionClientsNested" runat="server" CellSpacing="0" OnItemCommand="rgSessionClientsNested_ItemCommand"

 

DataSourceID="ObjectDataSource4" GridLines="None" Height="800px">

<

 

 

MasterTableView AutoGenerateColumns="False" DataKeyNames="client_identity"

 

DataSourceID="ObjectDataSource4">

<

 

 

CommandItemSettings ExportToPdfText="Export to PDF"></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="client_identity" DataType="System.Int32"

 

FilterControlAltText="Filter client_identity column"

 

HeaderText="client_identity" ReadOnly="True" SortExpression="client_identity"

 

UniqueName="client_identity">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="client_name"

 

FilterControlAltText="Filter client_name column" HeaderText="client_name"

 

SortExpression="client_name" UniqueName="client_name">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="client_id"

 

FilterControlAltText="Filter client_id column" HeaderText="client_id"

 

SortExpression="client_id" UniqueName="client_id">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="address_1"

 

FilterControlAltText="Filter address_1 column" HeaderText="address_1"

 

SortExpression="address_1" UniqueName="address_1">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="address_2"

 

FilterControlAltText="Filter address_2 column" HeaderText="address_2"

 

SortExpression="address_2" UniqueName="address_2">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="notes"

 

FilterControlAltText="Filter notes column" HeaderText="notes"

 

SortExpression="notes" UniqueName="notes">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="forbidCnt"

 

FilterControlAltText="Filter forbidCnt column" HeaderText="forbidCnt"

 

ReadOnly="True" SortExpression="forbidCnt" UniqueName="forbidCnt">

 

</telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn HeaderText="authorize" UniqueName="authorize">

 

<ItemTemplate>

 

<asp:RadioButtonList id="RadioButtonListClient1" AutoPostBack="True" RepeatDirection="Horizontal" runat="server">

 

<asp:ListItem Text="approve" Value="A" Selected="False" />

 

<asp:ListItem Text="forbid" Value="F" Selected="False" />

 

<asp:ListItem Text="assign" Value="N" Selected="False" />

 

</asp:RadioButtonList>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

 

<NestedViewSettings runat="server"

 

DataSourceID="ObjectDataSource5">

 

<ParentTableRelation>

 

<telerik:GridRelationFields DetailKeyField="client_identity" MasterKeyField="client_identity" />

 

</ParentTableRelation>

 

</NestedViewSettings>

 

<NestedViewTemplate>

 

<telerik:RadGrid ID="rgSessionMattersNested" runat="server" CellSpacing="0"

 

DataSourceID="ObjectDataSource5" GridLines="None" >

<

 

 

MasterTableView AutoGenerateColumns="False" DataKeyNames="matter_id" DataSourceID="ObjectDataSource5">

<

 

 

CommandItemSettings ExportToPdfText="Export to PDF"></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="matter_id" DataType="System.Int32"

 

FilterControlAltText="Filter matter_id column" HeaderText="Matter Id"

 

ReadOnly="True" SortExpression="matter_id" UniqueName="matter_id" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="matter_num"

 

FilterControlAltText="Filter matter_num column" HeaderText="Matter Number"

 

SortExpression="matter_num" UniqueName="matter_num">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="matter_name"

 

FilterControlAltText="Filter matter_name column" HeaderText="Matter Name"

 

SortExpression="matter_name" UniqueName="matter_name">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="abstract"

 

FilterControlAltText="Filter abstract column" HeaderText="Abstract"

 

SortExpression="abstract" UniqueName="abstract">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="destroy_after" DataType="System.DateTime"

 

FilterControlAltText="Filter destroy_after column" HeaderText="Destroy After"

 

SortExpression="destroy_after" UniqueName="destroy_after">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="client_identity" DataType="System.Int32"

 

FilterControlAltText="Filter client_identity column"

 

HeaderText="client_identity" SortExpression="client_identity"

 

UniqueName="client_identity" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="forbidCnt"

 

FilterControlAltText="Filter forbidCnt column" HeaderText="forbidCnt"

 

ReadOnly="True" SortExpression="forbidCnt" UniqueName="forbidCnt" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn HeaderText="authorize" UniqueName="Authorize">

 

<ItemTemplate>

 

<asp:RadioButtonList id="RadioButtonListClient2" AutoPostBack="True" RepeatDirection="Horizontal" runat="server">

 

<asp:ListItem Text="approve" Value="A" Selected="False" />

 

<asp:ListItem Text="forbid" Value="F" Selected="False" />

 

<asp:ListItem Text="assign" Value="N" Selected="False" />

 

</asp:RadioButtonList>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

 

<NestedViewSettings runat="server"

 

DataSourceID="ObjectDataSource6">

 

<ParentTableRelation>

 

<telerik:GridRelationFields DetailKeyField="matter_id" MasterKeyField="matter_id" />

 

</ParentTableRelation>

 

</NestedViewSettings>

 

<NestedViewTemplate>

<

 

 

telerik:RadGrid ID="rgSessionFilesNested" runat="server" CellSpacing="0"

 

DataSourceID="ObjectDataSource6" GridLines="None">

<

 

 

MasterTableView AutoGenerateColumns="False" DataKeyNames="file_id" DataSourceID="ObjectDataSource6">

<

 

 

CommandItemSettings ExportToPdfText="Export to PDF"></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="file_id" DataType="System.Int32"

 

FilterControlAltText="Filter file_id column" HeaderText="File Id"

 

ReadOnly="True" SortExpression="file_id" UniqueName="file_id" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="file_number"

 

FilterControlAltText="Filter file_number column" HeaderText="File Number"

 

ReadOnly="True" SortExpression="file_number" UniqueName="file_number">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="subfile_desc"

 

FilterControlAltText="Filter subfile_desc column" HeaderText="File Name"

 

SortExpression="subfile_desc" UniqueName="subfile_desc">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="title"

 

FilterControlAltText="Filter title column" HeaderText="File Status"

 

SortExpression="title" UniqueName="title">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="redweld_id" DataType="System.Int32"

 

FilterControlAltText="Filter redweld_id column" HeaderText="redweld_id"

 

SortExpression="redweld_id" UniqueName="redweld_id" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="FileType"

 

FilterControlAltText="Filter FileType column" HeaderText="File Type"

 

SortExpression="FileType" UniqueName="FileType">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="matter_id" DataType="System.Int32"

 

FilterControlAltText="Filter matter_id column" HeaderText="matter_id"

 

SortExpression="matter_id" UniqueName="matter_id" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="redweld_num" DataType="System.Int32"

 

FilterControlAltText="Filter redweld_num column" HeaderText="Redweld Number"

 

ReadOnly="True" SortExpression="redweld_num" UniqueName="redweld_num">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="forbidCnt"

 

FilterControlAltText="Filter forbidCnt column" HeaderText="forbidCnt"

 

SortExpression="forbidCnt" UniqueName="forbidCnt" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn HeaderText="Authorize" UniqueName="authorize">

 

<ItemTemplate>

 

<asp:RadioButtonList id="RadioButtonListClient3" AutoPostBack="True" RepeatDirection="Horizontal" runat="server">

 

<asp:ListItem Text="approve" Value="A" Selected="False" />

 

<asp:ListItem Text="forbid" Value="F" Selected="False" />

 

<asp:ListItem Text="assign" Value="N" Selected="False" />

 

</asp:RadioButtonList>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

<

 

 

EditFormSettings>

<

 

 

EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</

 

 

EditFormSettings>

</

 

 

MasterTableView>

<

 

 

FilterMenu EnableImageSprites="False">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

FilterMenu>

<

 

 

HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

HeaderContextMenu>

 

</telerik:RadGrid>

 

</NestedViewTemplate>

<

 

 

EditFormSettings>

<

 

 

EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</

 

 

EditFormSettings>

</

 

 

MasterTableView>

<

 

 

FilterMenu EnableImageSprites="False">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

FilterMenu>

<

 

 

HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

HeaderContextMenu>

 

</telerik:RadGrid>

 

</NestedViewTemplate>

<

 

 

EditFormSettings>

<

 

 

EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</

 

 

EditFormSettings>

</

 

 

MasterTableView>

<

 

 

FilterMenu EnableImageSprites="False">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

FilterMenu>

<

 

 

HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

<

 

 

WebServiceSettings>

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

</

 

 

WebServiceSettings>

</

 

 

HeaderContextMenu>

 

</telerik:RadGrid>

Marin
Telerik team
 answered on 18 Jun 2012
1 answer
100 views
Hi, is it possible to update data binded to a chart within the chart itself ?

If, for eaxample, I've a line chart , I wanna "drag" a point showed in the chart and change the binded data value

Thanks
Peshito
Telerik team
 answered on 18 Jun 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?