Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
I am trying to implement a radmenu in the header of my grid that contains the sort functions as well as a filter.  I have
seen an example on here and it works great, however, I am trying to change the textbox filter to a radcombobox or
"Filter" in radmenu with distinct elements of that column as submenuitems.  I have successfully added the radcombobox,
however, I can't quite determine how to populate it with distinct items in that column and I am trying not to create a
seperate datasource for each column.  Additionally, one the dropdown is hit and the cursor leaves the radmenu, the radmenu
closes and leaves a piece of the dropdown displaying.  Anybody have any examples.  This is all added dynamically
in the RadGrid_ItemCreated sub.  I wouldn't know where to start on my second idea of using submenuitems.  Seems like
a neat idea though.  Below is a link to help that I used to create the menu.  Thanks for all replys.
 
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-advanced-filter-menu.aspx
Bruno
Top achievements
Rank 2
 answered on 06 Apr 2009
1 answer
132 views
HI Everyone

I am using the Tabstrip and dynamically loading usercontrols.

On one of the Tabs I have a RadGrid which is built during Page_Init, one of the columns uses a ItemTemplate containing a RadNumericTextbox which has the OnValueChanged event set to a javascript function.

Idea being is that if a user changes a value in the RadNumericTextbox, as soon as they navigate away from the RadNumericTextbox the javascript function will set the Tab to dirty.
This all works fine except when I make a change in the RadNumericTextbox and click on another Tab, my OnValueChanged javascript function runs but this is not followed by the onTabSelecting event so the Tab I clicked on does not get selected.

Does anyone know why this is happening?

Many thanks
Antony
Sebastian
Telerik team
 answered on 06 Apr 2009
2 answers
130 views
I have created a user control that contains a RadGrid inside of it.

I need to perform a postback from the client to bind the data.  The following does postback but I need an event so that I know that the postback is indeed the "RefreshGrid"

                __doPostBack("<%= gvProperties.UniqueID %>", "RefreshGrid"); 

I have followed:

http://www.telerik.com/help/aspnet/grid/grdmakepostbackajaxrequestfromusercontrolwebformmasterpage.html

http://www.telerik.com/help/aspnet-ajax/grdpostbackfromgridwithajaxenabled.html

and those two don't deal with posting back to the same UserControl.

I have implemented the IPostBackEventHandler but it does not fire at all.


Felipe
Felipe Saldana
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
187 views
Hi there,
Apologies if this question is already documented, I couldn't find anything that would help me.
I am using the RadGrid, on a list of objects, "Request" (RadGrid1.DataSource = List<Request>). One property of "Request" is an object "Client". I don't want the object "Client" to be a column, but I would like for the property "Name" in "Client" to be shown. Ie. (String) Client.Name.

I managed to achieve this by Adding this on the ItemDataBound event as follows:
if (e.Item is GridDataItem) 
            { 
                int reqID; 
                String strReqID = ((GridDataItem)e.Item)["RequestID"].Text; 
                if (int.TryParse(strReqID, out reqID)) 
                { 
                    ((GridDataItem)e.Item)["Client"].Text = GetClientNameFromRequest(reqID); 
                } 
            } 

However, this appears to stop the column from being filterable. I would like for it to be possible to filter by Client.Name.

I realise it is not possible to set DataField="Client.Name". So I was wondering if there was another way I could achieve this?

Thanks in advance for any help!

FWIW I'm using WinXP, VS2008, .NET framework 3.5, and preferred language is C#.

Sebastian
Telerik team
 answered on 06 Apr 2009
5 answers
91 views
Hi,

    I am using rad grid in my application. I wanted to create a hierarchical rad grid where the no of levels of hierarchy will be known only at the runtime. The datasource for each detailsTable is generated in runtime. (Example can be that of a grid based on FileSystem (grid will display all subfolders in the current folder and so on) where the level of hierarchy will depend upon the subfolders present in a particular folder). Please help me with an example of how this could be achieved.

Thanks
Gayatri
Pavlina
Telerik team
 answered on 06 Apr 2009
2 answers
76 views
Hi,  I have a grid that I want to export to excel.  The export is initiated by a dropdown list (select export format).  This drop downlist is not Ajaxified, however it is an UpdatedControl of another control (the run report button).

I want to enable/dissable this drop down list and hence needs to be updated by an ajaxified control.  However when the drop down list fires its post back it is not an ajax request.

However, the export does not work.

If I remove the dropdownlist from the UpdatedControl of the afax manager then it expo0rts correctly.

Any help would be greatly appreciated.

Thanks

Guido
Daniel
Telerik team
 answered on 06 Apr 2009
3 answers
821 views
Hi

I'm using RadTextBox and in result html I see that it already contains some classes like "riTextBox riEnabled"
Is it possible to remove them? And how?

Thanks
Dimo
Telerik team
 answered on 06 Apr 2009
1 answer
115 views
Hi,
If I wants to hide for example the delete button on a row I can do that in the databound event but it would be nice if there were a property or a couple of properties for it.
It would be easier and cleaner to write something like:
RadGrid1.EnableAddNewRow = false
RadGrid1.EnableUpdateRow = false
RadGrid1.EnableDeleteRow = false
 
Or some combination like 
RadGrid1.EnableEditing = false

This just went through my head, maybe there is something like it already implemented?! :)

/Mattias
Sebastian
Telerik team
 answered on 06 Apr 2009
1 answer
100 views
Hey guys, i have been trying to convert my radgrid controls from Q2 2008 to Q3 2008 and i have been having issues with filtering (the Filtering works fine with the Q2 DLL). If the column is an integer (like the PK of a table) the browser pops up with the following exception

--WEBPAGE ERROR DIALOGUE  POPUP --
WEBPAGE ERROR
Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list

The code behind the grid is

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
                            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource6"
                            GridLines="None" onload="RadGrid1_Load" onrowdrop="RadGrid1_RowDrop" Skin="Forest"
                            style="margin-right: 0px" ondatabound="RadGrid1_DataBound1">
                            <HeaderContextMenu Skin="Forest">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </HeaderContextMenu>
                            <pagerstyle mode="NextPrevAndNumeric" />
                            <mastertableview commanditemdisplay="Top" datakeynames="SKU_NUM,DESCRIPTION,CURR_PURCH_COST"
                                datasourceid="SqlDataSource6" retrievealldatafields="False">
                               <Columns>
                               <telerik:GridBoundColumn DataField="SKU_NUM" DataType="System.Decimal"
                                EmptyDataText="&amp;nbsp;" HeaderText="SKU_NUM" ReadOnly="True"
                                SortExpression="SKU_NUM" UniqueName="SKU_NUM">
                               
                                </telerik:GridBoundColumn><telerik:GridBoundColumn DataField="prod_num" EmptyDataText="&amp;nbsp;"
                                HeaderText="APN" ReadOnly="True" SortExpression="prod_num" UniqueName="BARCODE"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="DESCRIPTION" EmptyDataText="&amp;nbsp;"
                                HeaderText="DESCRIPTION" SortExpression="DESCRIPTION" UniqueName="DESCRIPTION"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="GROUPNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="GROUP" SortExpression="GROUPNAME" UniqueName="GROUPNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="DEPTNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="DEPARTMENT" SortExpression="DEPTNAME" UniqueName="DEPTNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="CLASSNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="CLASS" SortExpression="CLASSNAME" UniqueName="CLASSNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="HQID" EmptyDataText="&amp;nbsp;"
                                HeaderText="HQID" SortExpression="HQID" UniqueName="HQID"></telerik:GridBoundColumn></Columns><PagerStyle Mode="NextPrevAndNumeric" /><commanditemtemplate><table style="width: 100%;"><tr><td align="left"><asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="10pt"
                                            ForeColor="#FFFFCC" Text="CHOOSE ITEMS TO ADD TO PROMO"></asp:Label></td><td align="right"><asp:ImageButton ID="ImageButton12" runat="server"
                                            ImageUrl="~/images/icons/Refresh24.png" onclick="ImageButton12_Click" /></td></tr></table></commanditemtemplate></mastertableview>
                            <clientsettings allowrowsdragdrop="True"><selecting allowrowselect="True" /></clientsettings>
                            <filtermenu skin="Forest" >
                                <collapseanimation duration="200" type="OutQuint" />
                            </filtermenu>
                        </telerik:RadGrid>

Any Ideas as to what is causing this?
.
Sebastian
Telerik team
 answered on 06 Apr 2009
2 answers
183 views
Hi,

I just installed the lastest release, and now the Inox skin is no longer available. Also, the Mac skin dosn't work, but that didn't work in the previous installation I used. Is the list of skins (http://www.telerik.com/help/aspnet-ajax/skinbasics.html) being updated?

This is the error I'm receiving when trying to use a skin that is no longer available:

Telerik.Web.UI.RadEditor with ID='ctl92' was unable to find embedded skin with name 'Inox'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.
Jimmy
Top achievements
Rank 1
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?