Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi all,

I am using the context menu feature of the Grid and binding the grid Controls from javascript using the webservice manually. the grid is Working Wonderful except the context menu Feature . As and when if i hide a column using the context menu feature of the grid after that if i do any other functionality like Sorting filtering and if i try to unhide the Column using the Context menu, the column shows up but as soon as if do any other operation ie. sorting, filtering.  the column gets hidden.

Can U please let me know the reason behind. and solution for this issue.

For more Clarity .  i am completely doing javascript based operations only using Webservices. i.e. binding , Sorting and filtering.

Please do the needful and attach a Sample for Better understanding.

Thanks & regards
balakrishna
Rosen
Telerik team
 answered on 16 Jun 2009
1 answer
84 views
i have a grid on a ascx control, i bring up the columns dialog and enter 6 columns, pressing ok shows the columns on the display, but looking at the page source the columns havent been added and dont show on the run page.

But if i go back to the dialog editor there they all are



any ideas ?


kevin
Sebastian
Telerik team
 answered on 16 Jun 2009
3 answers
223 views
Hello

I have recently upgraded the telerik controls to Q1 2009 in my project and my hierachical grid has started acting very very slowly.

When you press the "+" to expand a row it now takes 20 seconds to do so and before it was instant. I have debugged it and after pressing the + it appears to just sit and just wait for 20 seconds. It will then run my "detailTableDataBind" function.

The grid is within a few other controls and uses AJAX, here is the code, I have removed the other two grids that are in the last 2 pageviews so not to confuse things:
  <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0">  
        <telerik:RadPageView ID="Pageview1" runat="server">  
            <div> 
                <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">  
                    <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="radGridControls">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridControls" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                        <telerik:AjaxSetting AjaxControlID="radGridPages">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridPages" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                        <telerik:AjaxSetting AjaxControlID="radGridCustomPages">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="radGridCustomPages" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                    </AjaxSettings> 
                </telerik:RadAjaxManager> 
                <telerik:RadGrid ID="radGridControls" runat="server" GridLines="None" OnDetailTableDataBind="radGridControls_DetailTableDataBind" 
                    AutoGenerateColumns="False" OnUpdateCommand="radGridControls_UpdateCommand" OnItemDataBound="radGridControls_ItemDataBound" 
                    OnItemCommand="radGridControls_ItemCommand" OnColumnCreated="radGridControls_ColumnCreated" 
                    EnableAJAX="True">  
                    <MasterTableView> 
                        <Columns> 
                            <telerik:GridBoundColumn Visible="False" DataField="ID" UniqueName="ID" /> 
                            <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name" /> 
                        </Columns> 
                        <DetailTables> 
                            <telerik:GridTableView runat="server" Name="ControlFields" EditMode="InPlace" Width="100%">  
                                <ExpandCollapseColumn Visible="False">  
                                    <HeaderStyle Width="19px" /> 
                                </ExpandCollapseColumn> 
                                <RowIndicatorColumn Visible="False">  
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <Columns> 
                                    <telerik:GridEditCommandColumn EditImageUrl="~/images/edit.gif" UpdateImageUrl="~/images/Save.gif" 
                                        CancelImageUrl="~/images/Delete.gif" ButtonType="ImageButton">  
                                    </telerik:GridEditCommandColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="LocalizationId" Visible="False" 
                                        UniqueName="column">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Key" UniqueName="Name" HeaderText="Name">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Type" UniqueName="Control" HeaderText="Control">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn ReadOnly="True" DataField="Value" UniqueName="DefaultValue" 
                                        HeaderText="Value">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn UniqueName="TranslateValue" HeaderText="Selected Value">  
                                        <ItemStyle VerticalAlign="Top" /> 
                                        <ItemTemplate> 
                                            <asp:Label ID="lblValue" runat="server" Text=""></asp:Label> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <asp:TextBox ID="txtValue" runat="server" Text="" Width="95%"></asp:TextBox> 
                                        </EditItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                        </DetailTables> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="19px" /> 
                        </ExpandCollapseColumn> 
                        <RowIndicatorColumn Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                    </MasterTableView> 
                </telerik:RadGrid> 
            </div> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="Pageview2" runat="server">  
            <div> 
                
            </div> 
        </telerik:RadPageView> 
        <telerik:RadPageView runat="server" ID="PageView3">  
      
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 

Have you any ideas what's going on here?
Thanks
Veli
Telerik team
 answered on 16 Jun 2009
4 answers
84 views
My grid has a Master table and one Detail Table.

If I let the columns display in their default order, everything works as it should.

However, if I do anything thin the PreRender event to reorder the columns of the Master table, even something as trivial as ...
        protected void RadGrid1_PreRender(object sender, EventArgs e) 
        { 
            RadGrid1.MasterTableView.SwapColumns(2, 2); 
        } 
Then the detail table refuses to expand.

Why's that?

And what can I do to be able to both expand my Detail tables and reorder my columns.

--
Stuart


Stuart Hemming
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
86 views
Hello Telerik,

Sometimes I think I'm blind. Can you give me the link to Q1 2009 SP2?
I'm using Telerik ASP.Net Ajax UI Controls Q1 2009 1.311 and dealing with a lot of Jscript Errors in IE 8.0.

Thanks,
Beat
Sebastian
Telerik team
 answered on 16 Jun 2009
1 answer
124 views
i developed my web app in trial version and now decided to purchase it. i uninstalled trial,deleted all folders in c:\programfiles, restarted my machine, install dev version in my computer, restarted my machine. now i opened up my app and ofcourse it will fail.

and even when i tried to create new project, i have to manually go into web.config to disable these two lines
<!--<add assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
                <add assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>-->

How do i apply the licensed version to my existing app? or to the new app without having gone to web.config to disable anything. please help me. thank you very much.
Pavlina
Telerik team
 answered on 16 Jun 2009
1 answer
189 views
Is there any way to set the size of the textboxes/comboboxes/etc used in inline editing? I have a RadGrid inside a RadPane, and when the edit command column is used the grid becomes wider than the pane it's in, necessitating horizontal scrolling.  This is because most of the inputs are about twice as wide as they actually need to be for the data they contain.
Shinu
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
92 views
When Publishing our Wesite, using version 2009.1.402.35 or telerik, we get the error seen below.

Line 1:  <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="_Login" %>
Line 2: 
Line 3:  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Line 4: 
Line 5:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


The WebConfig is:

 
        <pages theme="Default" styleSheetTheme="Default">  
            <controls> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            </controls> 
        </pages> 
        <httpHandlers> 
            <remove verb="*" path="*.asmx"/>  
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>  
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>  
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>  
        </httpHandlers> 
        <httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        </httpModules> 



Can anyone help us out?
Pavlina
Telerik team
 answered on 16 Jun 2009
1 answer
106 views
Hi

    I am using Rad Tab strip control. In this control inside i use the "subgurim:GMap" control. Then if i ajaxfy the tab strip means it shows the error for Access Denied. Without i use the subgurim:GMap means it works fine.

Please give me a help how to resolve this problem


Thanks with Regards


Saravanan.M
Paul
Telerik team
 answered on 16 Jun 2009
1 answer
224 views
Hi guys,

I am using a combination of RadSplitters with sliding panes and static panes to display monthly sales data.

The static panes section has 3 radgrids showing Period data, Year-To-Date data and lastly Year-On-Year data
The sliding panes section has to panes the first being a general information and help area telling the user what to do and the second has two comboboxes (both integers) and a checkboxlist (string) - all of which determine the select parameters for the sql datasource.

After making selections each radgrid visibility is set to true and then databound

I have no problem in getting the selected value for each and applying to the datasource, howevere mut problem arises when making multple selections in the checkbox list. For example the user may wish to combine sales departments and view the net result. The second selection only populates the grid when the first is unchecked. How can I stop this to return all or some departments?

SqlDataSource as follows :-

 

<asp:SqlDataSource ID="YellowBookPeriodSummaryData" runat="server" ConnectionString="<%$ ConnectionStrings:Intranet_DBConnectionString %>"

 

 

SelectCommand="SELECT TOP 100 PERCENT Year, Period, SUM(Qty) AS Quantity, SUM(Volume) AS [Vol Sq Ft], SUM(NetSales) AS [Net Value], SUM(StdCost) * - 1 AS Cost, SUM(Margin) AS [Margin ()], (SUM(NetSales) + SUM(StdCost)) / SUM(NetSales) * 100 AS [Margin (%)] FROM Tbl_Sales_Downloads WHERE (SalesCategory IN (@Category)) GROUP BY Year, Period HAVING (Year = @Year) AND (Period = @Period)">

 

 

<SelectParameters>

 

 

<asp:ControlParameter ControlID="CheckBoxList1" Name="Category" PropertyName="SelectedValue"

 

 

Type="String" />

 

 

<asp:ControlParameter ControlID="CbxYear" Name="Year" PropertyName="SelectedValue"

 

 

Type="Int64" />

 

 

<asp:ControlParameter ControlID="CbxPeriod" Name="Period" PropertyName="SelectedValue"

 

 

Type="Int64" />

 

 

</SelectParameters>

 

 

</asp:SqlDataSource>

 


Any Ideas welcomed
thanks in advance
Chris
Yavor
Telerik team
 answered on 16 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?