Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
318 views
Hello,

I currently have a form that contains a User Control (User Control A).  This User Control contains yet another User Control (User Control B).

On the Form, I have a button called "Create User". 

On User Control A, I have wrapped User Control B in a RadAjaxPanel.

When I click the "Create User" button, the User Control B does not update because it is in the RadAjaxPanel.  If I take User Control B out of the RadAjaxPanel, it updates fine when clicking the "Create User" button.

However, I want to keep User Control B in the RadAjaxPanel so that when I do stuff in User Control B, only User Control B reloads and not the entire page.

How can I make the "Create User" button click force the RadAjaxPanel wrapped around User Control B post back?

I would prefer to do all of this (or as much as possible) server side.

Thanks!

Maria Ilieva
Telerik team
 answered on 01 Mar 2012
1 answer
92 views
Greetings, I hope this can be resolved with some simple CSS. I'm using your RadGrid with group by functionality. If I left drag the column header towards the group by section, I DO NOT see the header. The group by functionality is working properly, meaning if I drop (release the left mouse button) in the group by section, the grid groups the content properly. It's just that the header is not visible during the dragging effort. If I drag my mouse to the left or right off of the data grid, I do see the header, so I suspect the problem is with the z index and the grid is above the dragged header.

Below is a screen shot of the header dragged to the left of the data grid:

Is there a workaround for this issue?

Thanks,
Jim
Andrey
Telerik team
 answered on 01 Mar 2012
5 answers
161 views
The online demo here do not include the file: "Explorer.aspx" used by RadWindow.

I cannot see any property like "DialogMode=FileSelector" on the control itself.

Have anyone tried to setup the "File Selector Dialog" example, and made it work?
Dobromir
Telerik team
 answered on 01 Mar 2012
5 answers
591 views
Hello,
We are using the Telerik build 2010.2.929.40 and occasionally on our app served from a new Server 2008 we receive this error when viewing a RadChart, "A generic error occurred in GDI+." We can recycle our app pool on the server and the charts go back to normal with no errors. Then after a few hours or days the error comes right back and occurs for anyone trying to view the RadChart. Were there any known issues with memory leaks or image file locking issues in this build? Has anyone else experienced a similar issue?
Thanks.
Giuseppe
Telerik team
 answered on 01 Mar 2012
1 answer
84 views
after adding a new record,severside validation gets fired and all the values in new added row gets clear and empty row is desplayed as in ready to insert mode with the GridTextBoxColumnEditor, i have tried e.Canceled = true; in ItemCommand which allows me to stay in insert mode,but values are not retained . is there any solution for the same ???
Andrey
Telerik team
 answered on 01 Mar 2012
1 answer
293 views
Hi All,
I am using radgrid Master-Detail table , having Show/Hide checkbox filter option on master table and its ruuning fine. Depending on Master show/hide checkbox status detail filter option works, but i want 2 diiferent show/hide checkboxs for master and detail radgid, in such a way that in detail table checkbox should come with each row and depending on checkstatus for perticular row checkbox filter option get displayed against each column.

Please help. Below is my code:

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" Width="995px" AutoGenerateColumns="False"

 

 

 

AllowMultiRowSelection="False" AllowPaging="true" PageSize="15" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"

 

 

 

Skin="Sunset" AllowCustomPaging="true" AllowFilteringByColumn="true" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

OnItemCreated="RadGrid1_ItemCreated" OnItemCommand="RadGrid1_ItemCommand" OnInit="RadGrid1_Init"

 

 

 

GroupingSettings-CaseSensitive="false">

 

 

 

<PagerStyle Mode="NumericPages" />

 

 

 

<MasterTableView TableLayout="Auto" AllowMultiColumnSorting="True" CellPadding="0"

 

 

 

DataKeyNames="TXNORDER" Width="100%" CommandItemDisplay="Top" GroupLoadMode="Server">

 

 

 

<CommandItemTemplate>

 

 

 

<asp:CheckBox ID="CheckBox2" AutoPostBack="true" CssClass="CheckBox" runat="server"

 

 

 

ForeColor="White" Text="Show Filter" />

 

 

 

</CommandItemTemplate>

 

 

 

<DetailTables>

 

 

 

<telerik:GridTableView DataKeyNames="TXNORDER" Name="Orders" Width="100%" AllowFilteringByColumn="true">

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="5px" AllowFiltering="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="imgCheck" runat="server" CausesValidation="false" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CaptureImageKey")%>'

 

 

 

CommandName='<%# DataBinder.Eval(Container.DataItem, "ItemTypePK")%>' Height="20px"

 

 

 

ImageUrl="~/Images/check-template.png" OnClick="imgCheck_Click" ToolTip="Check Image"

 

 

 

Width="30px" />

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="40px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridNumericColumn DataField="TXNORDER" HeaderButtonType="TextButton" HeaderText="Transaction#"

 

 

 

SortExpression="TXNORDER" UniqueName="TXNORDER" Visible="False">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridBoundColumn DataField="ItemTypePK" HeaderButtonType="TextButton" HeaderText="Type"

 

 

 

SortExpression="ItemTypePK" UniqueName="ItemTypePK">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD7" HeaderButtonType="TextButton" HeaderText="Serial#"

 

 

 

SortExpression="FIELD7" UniqueName="FIELD7">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD6" HeaderButtonType="TextButton" HeaderText="P44"

 

 

 

SortExpression="FIELD6" UniqueName="FIELD6">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD5" HeaderButtonType="TextButton" HeaderText="Routing#"

 

 

 

SortExpression="FIELD5" UniqueName="FIELD5">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FIELD4" HeaderButtonType="TextButton" HeaderText="AltSerial#"

 

 

 

SortExpression="FIELD4" UniqueName="FIELD4">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridNumericColumn DataField="FIELD3" HeaderButtonType="TextButton" HeaderText="Account#"

 

 

 

SortExpression="FIELD3" UniqueName="FIELD3" FilterControlWidth="70px" DataType="System.Int32">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn DataField="FIELD2" HeaderButtonType="TextButton" HeaderText="TC#"

 

 

 

SortExpression="FIELD2" UniqueName="FIELD2" FilterControlWidth="70px">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn DataField="Amount" HeaderButtonType="TextButton" HeaderText="Amount"

 

 

 

SortExpression="Amount" UniqueName="Amount" HeaderStyle-HorizontalAlign="left"

 

 

 

ItemStyle-HorizontalAlign="left" FilterControlWidth="70px">

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

<ItemStyle CssClass="pad" HorizontalAlign="Right" />

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridBoundColumn DataField="CaptureImageKey" HeaderButtonType="TextButton"

 

 

 

HeaderText="CaptureImageKey" SortExpression="CaptureImageKey" UniqueName="CaptureImageKey"

 

 

 

Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="EnterpriseID" HeaderButtonType="TextButton" HeaderText="EnterpriseID"

 

 

 

SortExpression="EnterpriseID" UniqueName="EnterpriseID" Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="ReverseReason" HeaderButtonType="TextButton"

 

 

 

HeaderText="ReverseReason" SortExpression="ReverseReason" UniqueName="ReverseReason"

 

 

 

Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderStyle-Width="5px" AllowFiltering="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="imgReverseTransaction" runat="server" CausesValidation="false"

 

 

 

Height="20px" Width="20px" CommandArgument='<%#Eval("TXNORDER") + ","+Eval("EnterpriseID")+ ","+Eval("BankID")+ ","+Eval("BranchID")+ ","+Eval("BatchID")+ ","+Eval("OPENEDTIME") + ","+Eval("SourceTypePK")+ ","+Eval("AuxBatchID")%>'

 

 

 

CommandName="ReverseTransaction" ImageUrl="~/Images/undo.png" OnClick="imgReverseTransaction_Click"

 

 

 

OnClientClick="javascript:return confirm('Are you sure you want to reverse this transaction? \n This action cannot be undone.')"

 

 

 

ToolTip="Reverse Transaction" Visible='<%#DataBinder.Eval(Container.DataItem,"ShowImgReverseTransaction")%>' />

 

 

 

</ItemTemplate>

 

 

 

<HeaderStyle Width="30px" />

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridNumericColumn DataField="TXNORDER" HeaderButtonType="TextButton" HeaderText="Transaction #"

 

 

 

SortExpression="TXNORDER" FilterControlWidth="70px" UniqueName="TXNORDER" DataType="System.Int16">

 

 

 

<ItemStyle CssClass="pad" HorizontalAlign="left" />

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridBoundColumn DataField="CaptureStatus" HeaderButtonType="TextButton"

 

 

 

HeaderText="Capture Status" SortExpression="CaptureStatus" DataType="System.String"

 

 

 

AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" >

 

 

 

<HeaderStyle HorizontalAlign="left" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="TRANSACTIONTIME" HeaderButtonType="TextButton"

 

 

 

HeaderText="Transaction Time" SortExpression="TRANSACTIONTIME" DataType="System.DateTime">

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridNumericColumn DataField="Amount" HeaderButtonType="TextButton" HeaderText="Amount"

 

 

 

SortExpression="Amount" UniqueName="Amount" FilterControlWidth="70px" HeaderStyle-HorizontalAlign="left"

 

 

 

ItemStyle-HorizontalAlign="left" DataType="System.Decimal">

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

<ItemStyle CssClass="pad" HorizontalAlign="left" />

 

 

 

</telerik:GridNumericColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"

 

 

 

SaveScrollPosition="True"></Scrolling>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

Andrey
Telerik team
 answered on 01 Mar 2012
3 answers
355 views
Hi,
      I am using telerik grid in which i have used Dropdown list. I m getiing value in drop down list from another table. So what should be the filter criteria i use.
<telerik:GridDropDownColumn DataField="INSTRUMENT_ID" DataSourceID="SqlDataSource2"
                ShowFilterIcon="false" HeaderText="PRODUCT NAME" ListTextField="INSTRUMENT_NAME"
                ListValueField="INSTRUMENT_ID"  
                UniqueName="INSTRUMENT_ID" ColumnEditorID="GridDropDownListColumnEditor1">
            </telerik:GridDropDownColumn>

bt it gives me error like
No property or field 'Jeevan' exists in type 'DataRowView'


Please Reply
Tsvetina
Telerik team
 answered on 01 Mar 2012
3 answers
151 views
I've seen a few similar posts, but not this exact issue:

I'm getting some un-wanted vertical borders when using a GridTemplateColumn. I'm not sure if I just have some setting wrong or maybe just missing an a type.

I have a screen shot, but I'm unsure of how to insert that into the thread.

Here is my RadGrid code:

 

<telerik:RadGrid ID="RadGrid1" Skin="Forest" Width="97%" AllowSorting="True" EnableAJAX="True"

 

 

 

AllowPaging="True" PageSize="25" runat="server" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged"

 

 

 

AllowFilteringByColumn="false" GridLines="None" >

 

 

 

<MasterTableView Width="100%" AutoGenerateColumns="false">

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn UniqueName="TemplateColumn1">

 

 

 

<HeaderTemplate>

 

 

 

<table id="Table1" cellspacing="0" cellpadding="0" width="300" border="0">

 

 

<tr><td align="center"><b>Test Template</b></td></tr>

 

 

</

 

table>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<table id="Table2" cellspacing="0" cellpadding="0" width="300" border="0">

 

 

 

<tr><td ><%# DataBinder.Eval(Container.DataItem, "FirstName") %></td></tr>

 

 

 

<tr><td ><%# DataBinder.Eval(Container.DataItem, "LastName") %></td></tr>

 

 

 

</table>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

 

</telerik:RadGrid>


 

 

Galin
Telerik team
 answered on 01 Mar 2012
1 answer
145 views
Hello,

I am using a RadGrid as part of a custom control (DNN module, actually) for contact management. I have a simple RadGrid set up with an external insert/edit form, and aside from the issue with allowing duplicate inserts, it's working perfectly.

When inserting new records, or updating existing records, we want to detect duplicate records (based only on fistname and lastname comparisons) and prompt/warn the user to ensure they are aware of the duplicate. 

In the case of no duplicates, the insert/update should just happen.
In the case of duplicates, the user should be asked if they want to insert anyway, or cancel.

Does RadGrid have any kind of built in support for this kind of workflow? Or am I going to have to replace the current submit button with my own method that makes an AJAX call to search for duplicates, and then react accordingly? I am trying to keep the code as simple as possible for long-term maintenance purposes.


Thanks,
Dave
Marin
Telerik team
 answered on 01 Mar 2012
2 answers
98 views
Hi,

I'm using radGrid with custom paging. I also use NeedDataSource event to get data.

I stuck when I click Export command in item Command row (I only have export command). I dont know how to distinguish that export command is clicked inside NeedDataSource method (because its executing before Export event of grid).

I have tried this:
if (e.RebindReason == GridRebindReason.ExplicitRebind)
            {
                rgActions.AllowPaging = false;
                rgActions.AllowCustomPaging = false;
            }
            else
            {
                rgActions.AllowPaging = true;
                rgActions.AllowCustomPaging = true;
             
            }

but its not ok because explicit rebinding is also done when any othe button is clicked on page that rebind grid.


Marko Gluhak
Top achievements
Rank 1
 answered on 01 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?