Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
236 views
Hi,
       I have one application, in which i am loading dynamically ascx. These webUserControls are dynamically loaded in Home.aspx page, In Home.aspx, i write this code for call webService in client side. Means Home.aspx page has a radAjaxManager, but i not want to put radAjaxManager on every ascx. Now my problem is that how i can use/call webservice in ascx without put radAjaxmanager in ascx. And i also want to some controls value of ascx into webService, for eg. textbox value or checkbox value. In home.aspx page -

<radA:RadAjaxServiceManager ID="RadAjaxServiceManager1" runat="server">
                <WebServices>
                    <radA:WebServiceReference Path="~/Test.asmx" />
                </WebServices>
 </radA:RadAjaxServiceManager>

its urgent for me.
Thanks
Jaydev
Top achievements
Rank 1
 answered on 02 May 2008
1 answer
129 views
Is it possible to hide/show the ContextMenus through server-side code?
Shinu
Top achievements
Rank 2
 answered on 02 May 2008
1 answer
103 views
after placing a radmenu on my master page and creating a page from it, when I run the page I get the following error

Error 2 The type or namespace name 'RadMenu' does not exist in the namespace 'Telerik.WebControls' (are you missing an assembly reference?) 

Do I have to manually add the references for each control I want to use ?  Dont they get placed in the GAC for development ?
Princy
Top achievements
Rank 2
 answered on 02 May 2008
2 answers
119 views
I have a textbox that users use to search for records in the table. If they do a search that returns 100 records it correctly shows in the paging bar that there are 10 pages. If they then do another search and only 2 results are returned, the two results show correctly but the paging bar still says 10 pages. The records are updating but not the paging bar.

Here is the aspx...

<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">  
    <ContentTemplate> 
    UWI:<telerik:RadTextBox ID="rtxtUWI" Runat="server">  
    </telerik:RadTextBox> 
    <asp:Button ID="btnSubmit" runat="server" Text="Go"   
        style="width: 31px" />&nbsp;<span style="color:Red;font-family:Arial;font-size:10px;">Complete or partial UWI (including "-" and "/")</span> 
        &nbsp;&nbsp;<asp:UpdateProgress ID="UpdateProgress1" runat="server">  
    <ProgressTemplate><div class="loading">  
        <img src="images/ajax-loader.gif" /></div></ProgressTemplate> 
    </asp:UpdateProgress> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
    <div> 
      
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    <ContentTemplate> 
      
        <br /> 
        <asp:Label ID="lblAgatsp" runat="server" Text="AGAT Sample Points"   
            Visible="False"></asp:Label> 
      
    <br /> 
    <telerik:RadGrid ID="rgInternal" runat="server" GridLines="None" DataSourceID="SqlDataSource1"   
              Skin="Vista" AllowSorting="True" ShowGroupPanel="True" Visible="False"   
            AllowFilteringByColumn="True" AllowPaging="True" AllowAutomaticUpdates="true" 
            AutoGenerateEditColumn="True" AutoGenerateColumns="false">  
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="ana_sample_point_id">  
<Columns> 
<telerik:GridBoundColumn HeaderText="Sample Point ID" DataField="ana_sample_point_id" Display="false" ReadOnly="true"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Barcode" DataField="Barcode" Display="true" ReadOnly="true"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Sample Point Name" DataField="SamplePointName" Display="true" ReadOnly="true"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="UWI" DataField="UWI" Display="true" ReadOnly="true"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Well Name" DataField="WellName" Display="true" ReadOnly="false"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Field" DataField="Field" Display="true" ReadOnly="false"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Pool" DataField="Pool" Display="true" ReadOnly="false"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Well License" DataField="WellLicense" Display="true" ReadOnly="false"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn HeaderText="Matrix" DataField="Matrix" Display="true" ReadOnly="true"></telerik:GridBoundColumn> 
 
</Columns> 
<RowIndicatorColumn Visible="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
<ExpandCollapseColumn Visible="False" Resizable="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
<EditFormSettings> 
<PopUpSettings ScrollBars="None"></PopUpSettings> 
</EditFormSettings> 
<PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
</MasterTableView> 
        <ClientSettings AllowDragToGroup="True">  
        </ClientSettings> 
        </telerik:RadGrid> 
        </ContentTemplate> 
    <Triggers> 
    <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="click" /> 
    </Triggers> 
    </asp:UpdatePanel> 
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">  
    <ContentTemplate> 
      
        <br /> 
        <asp:Label ID="lblEub" runat="server" Text="EUB Well Information"   
            Visible="False"></asp:Label> 
    <br /> 
    <telerik:RadGrid ID="rgEUB" runat="server" GridLines="None" DataSourceID="SqlDataSource2"   
                  Skin="Vista" AllowSorting="True" ShowGroupPanel="True"   
            Visible="False" AllowFilteringByColumn="True" AllowPaging="True">  
                <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
                <MasterTableView DataSourceID="SqlDataSource2">  
                    <RowIndicatorColumn Visible="False">  
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Visible="False" Resizable="False">  
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <EditFormSettings> 
                        <PopUpSettings ScrollBars="None">  
                        </PopUpSettings> 
                    </EditFormSettings> 
                </MasterTableView> 
                <ClientSettings AllowDragToGroup="True">  
                </ClientSettings> 
            </telerik:RadGrid> 
            <br /> 
    <asp:Label ID="lblFacility" runat="server" Text="EUB Facility Information"   
            Visible="False"></asp:Label> 
    <br /> 
    <telerik:RadGrid ID="rgFacility" runat="server" AllowFilteringByColumn="True"   
        AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True"   
        Skin="Vista" DataSourceID="SqlDataSource3" Visible="false">  
<PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
<MasterTableView datasourceid="SqlDataSource3">  
<RowIndicatorColumn Visible="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="False" Resizable="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
<EditFormSettings> 
<PopUpSettings ScrollBars="None"></PopUpSettings> 
</EditFormSettings> 
</MasterTableView> 
        <clientsettings allowdragtogroup="True">  
        </clientsettings> 
    </telerik:RadGrid> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
    </div> 
      
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="OverwriteChanges" UpdateCommandType="Text" 
        ProviderName="System.Data.OracleClient"    
        ConnectionString=""   
         UpdateCommand="update ana_sample_points set  
         well_license = :WellLicense,  
         well_name = :WellName,  
         Field = :Field,  
         Pool = :Pool  
         where ana_sample_point_id = :ana_sample_point_id"  
         > 
        </asp:SqlDataSource> 
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ProviderName="System.Data.OracleClient" ConnectionString=""></asp:SqlDataSource> 
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ProviderName="System.Data.OracleClient" ConnectionString=""></asp:SqlDataSource> 
    </form> 
</body> 

And here is the .cs...

namespace HeaderInfoViewer  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (IsPostBack)  
            {  
                rgInternal.Visible = true;  
                rgEUB.Visible = true;  
                rgFacility.Visible = true;  
                lblAgatsp.Visible = true;  
                lblEub.Visible = true;  
                lblFacility.Visible = true;  
 
                setDataSources();  
                rgInternal.DataSource = null;  
                rgEUB.DataSource = null;  
                rgFacility.DataSource = null;  
            }  
        }  
          
        protected void setDataSources()  
        {  
            SqlDataSource1.SelectCommand = "select ana_sample_point_id,Barcode,Description SamplePointName, UWI, well_license WellLicense, well_name WellName, Field, Pool, Matrix from ana_sample_points where UWI like '%" + rtxtUWI.Text + "%'";  
            SqlDataSource2.SelectCommand = "select UWI, well_name Wellname, Fieldname, well_license WellLicense, PoolName, Well_Stat_Code, Licensee from eub_well,eub_field, eub_pool_field, eub_licenseecode " +  
                "where eub_well.fieldcode = eub_field.fieldcode(+) and (eub_well.poolcode = eub_pool_field.poolcode(+) and eub_well.fieldcode = eub_pool_field.fieldcode(+)) " +  
                "and eub_well.licenseecode = eub_licenseecode.eub_id_code(+) " +  
                "and uwi like '%" + rtxtUWI.Text + "%'";  
            SqlDataSource3.SelectCommand = "select UWI, FacilityID, Facility_Name, SubType_Name, License from eub_facility, eub_facility_subtype where eub_facility.subtype_code(+) = eub_facility_subtype.subtype_code and UWI like '%" + rtxtUWI.Text + "%'";  
        }  
    }  
} 
Craig Smith
Top achievements
Rank 1
 answered on 02 May 2008
3 answers
214 views
I am using RadTabStrip and I have a radgrid in one of my  pageview control. I want to add data columns in that grid in my codebehind file. How do i do that.
Princy
Top achievements
Rank 2
 answered on 02 May 2008
1 answer
101 views
Dragging a column and dropping on the top bar groups the rows in the rad grid by the column. The groups, after refreshing the grid, are all expanded. I Want all of them to be collapsed except for the first group.

Thanks
Baqi
Princy
Top achievements
Rank 2
 answered on 02 May 2008
9 answers
271 views
Hi.

I´m using 2008.1.415.35 version of RadControls. Is it possible to do a self-reference hierarchy on a RadGrid using ArrayList datasource ? I followed some examples and I think everything is right, however the datasource data is not presented. Paging presents available data correctly, but grid table is empty. Here is my grid definition:

<
telerik:RadGrid ID="Grid" runat="server" AllowSorting="True" Skin="Office2007" AllowPaging="True" AllowMultiRowSelection="True" ShowGroupPanel="True" AutoGenerateColumns="False" OnNeedDataSource="Grid_NeedDataSource" AllowFilteringByColumn="True" PageSize="20" ShowStatusBar="True" meta:resourcekey="GridResource1" OnItemDataBound="Grid_ItemDataBound" OnItemCreated="Grid_ItemCreated">
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
<ExportSettings IgnorePaging="false" OpenInNewWindow="true">
<Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous" Keywords="None" FontType="Subset" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" PageTitle="EPM Consist export document" PaperSize="Letter" Subject="EPM Consist Export" Title="EPM Consist export" />
<Excel Format="Html" />
</ExportSettings>
<ClientSettings AllowExpandCollapse="true" AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True" />
<ClientEvents OnRowDblClick="RowDblClick" />
<ClientEvents OnRowContextMenu="RowContextMenu" />
<
Resizing AllowColumnResize="True" />
<Scrolling UseStaticHeaders="True"/>
</ClientSettings>
<MasterTableView HierarchyLoadMode="Client" GroupLoadMode="Client" RetrieveAllDataFields="False" HierarchyDefaultExpanded="true" TableLayout="Auto" DataKeyNames="Item_ID,Parent_ID">
<SelfHierarchySettings ParentKeyName="Parent_ID" KeyName="Item_ID" />
<RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
</MasterTableView>
</telerik:RadGrid>

This is Page_Load implementation. Parent_ID  is compared with null because my field supports Nullable<long>.

protected void Page_Load(object sender, EventArgs e){

    if (!IsPostBack){
        Grid.MasterTableView.FilterExpression =
"Parent_ID = null";
    }
}

Thanks.

Vinhlan
Top achievements
Rank 1
 answered on 02 May 2008
1 answer
114 views
I have made a custom skin and registered it using :
http://www.telerik.com/help/radcontrols/aspnet-ajax/?ModifyingExistingSkins.html

But my custom skin does not apply to the control.
 Is there something missing?

newbie
Top achievements
Rank 1
 answered on 02 May 2008
1 answer
157 views
I was planning to trial RAD for SharePoint until I went through the screencast and whitepaper. Quite a bit of work to install even though Telerik seems to have done everything they can to simplify the process.

Does this make it easier? http://www.codeplex.com/wspbuilder

Does this tool forshadow a simpler installation process?

Thanks in advance

Tim
Paul
Top achievements
Rank 1
 answered on 01 May 2008
3 answers
211 views
Hi,

I am not using any skin for the chart control. I want to assign the colors of the chart bars dynamically based on some condition. I am doing it as follows in the code behind. But I want to read these color codes from the CSS class instead of harcoding it. But I dont see any property that can be used to assing the CSSClass for the bars. How can I do it?


e.SeriesItem.Appearance.FillStyle.MainColor = System.Drawing.

ColorTranslator.FromHtml("#4e6a99");

Giuseppe
Telerik team
 answered on 01 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?