Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
667 views
Hi All,

I want to use custom shape, means an image instead of circles/rectangles. Do anybody have any idea to do this.

Thanks in Advance,
Shaikh
Vessy
Telerik team
 answered on 17 Aug 2015
1 answer
122 views
I am using the Telerik Ajax controls in a Single Page App type scenario. I use the client side API of the Telerik controls combined with web service calls when I need to communicate with the server. I can't post back the page as it is currently implemented or I will have all kinds of lost client state issues to contend with. However, I need to be able to upload single files from the client to the server through this SPA page. Can the AsycnUpload control support such a scenario? It seems that all of the demos demonstrate the need to post back the page. I guess I could open a secondary page in a popup RandWindow and have this window do the uploading, but this is not very seamless. -Thanks for your thoughts.
Ivan Danchev
Telerik team
 answered on 17 Aug 2015
2 answers
72 views

With 1 dock in a dockzone it works fine (picture 1)

but with 2 docks, the previous dock's header is being cut off. (picture 2)

anyway to fix this?

I've tried increasing div.RadDock.rdCollapsed height.  Does not help.

Danail Vasilev
Telerik team
 answered on 17 Aug 2015
4 answers
201 views
Team,

In my scenario, I have an autogenerated Radgrid control to bind two Bound columns and remaining columns are Dropdown list. The bound and dropdown list control is binded in Grid. But when I try to get the value from the Dropdown list, I can't able to get the control Id (even i used FindControl).

IN ASPX
----------
 <telerik:RadGrid ID="dgPassanger" runat="server" AllowSorting="true" Visible="true"
                                            PageSize="5" AllowPaging="true" AllowFilteringByColumn="true" PagerStyle-AlwaysVisible="true"
                                            OnItemDataBound="Passenger_ItemDataBound" Width="715px">
                                            <MasterTableView CommandItemDisplay="None" AllowFilteringByColumn="false" AutoGenerateColumns="true">
                                                <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
                                            </MasterTableView>
                                            <ClientSettings>
                                                <Scrolling AllowScroll="true" />
                                                <Selecting AllowRowSelect="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>

IN ASPX.CS
---------------
        protected void PreparePaxGrid(List<Passenger> PaxList)
        {
            DataTable pivotedList = new DataTable();
            try
            {
                if (Session["PostflightTrip"] != null)
                {
                    TripLog = (PostflightTrip)Session["PostflightTrip"];

                    // Adding Dynamic Columns
                    GridBoundColumn boundColumn;
                    GridTemplateColumn templateColumn;
 
                    boundColumn = new GridBoundColumn();
                    boundColumn.DataField = "PaxCode";
                    boundColumn.HeaderText = "Pax Code";
                    dgPassanger.MasterTableView.Columns.Add(boundColumn);

                    boundColumn = new GridBoundColumn();
                    boundColumn.DataField = "PaxName";
                    boundColumn.HeaderText = "Pax Name";
                    dgPassanger.MasterTableView.Columns.Add(boundColumn);

                    foreach (var item in TripLog.TripLegs)
                    {

                        templateColumn = new GridTemplateColumn();
                        templateColumn.HeaderText = item.POLegsDescription;
                        templateColumn.ItemTemplate = new GridTemplate(item.LegID); // Bind Dropdown List
                        templateColumn.UniqueName = "FlightPurpose";

                        dgPassanger.MasterTableView.Columns.Add(templateColumn);
                    }

                    // Bind List into Grid
                    dgPassanger.DataSource = PaxLegList;
                    dgPassanger.DataBind();

                }
            }
            catch (Exception ex) { }
        }

        private class GridTemplate : ITemplate
        {
            protected DropDownList ddList;
            private int _legId = 0;

            public GridTemplate(int legId)
            {
                _legId = legId;
            }

            public void InstantiateIn(System.Web.UI.Control container)
            {
                ddList = new DropDownList();
                ddList.ID = "ddlFP" +_legId.ToString();
                ddList.DataBinding += new EventHandler(ddList_DataBinding);
                container.Controls.Add(ddList);
            }

            protected void ddList_DataBinding(object sender, EventArgs e)
            {
                DropDownList dl = (DropDownList)sender;
                GridDataItem container = (GridDataItem)dl.NamingContainer;
                dl.Items.Add(new ListItem("1","1"));
                dl.Items.Add(new ListItem("2", "2"));
                //dl.AutoPostBack = true;
                //dl.SelectedIndexChanged += new EventHandler(DisplayDDList_IndexChanged);
            }
        }

For Retrieving Value from Dropdown, I used the below code
 foreach (GridDataItem Item in grid.MasterTableView.Items)
                {

                    DropDownList ddlFlightPurpose = (DropDownList)Item["FlightPurpose"].FindControl("ddlFP1");

}

ISSUE: Every time it shows the NULL value.

Please resolve as soon as possible.
Gajanan
Top achievements
Rank 2
 answered on 17 Aug 2015
10 answers
597 views
hi want to add rad controls dynamically in rad grid .After clicking edit dependin on the value of category id row should have checkbox,drop down,textbox
category id =0 -->checkbox
category id =1 -->dropdown
category id=2-->textbox

following is th aspx code

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RadCont.ascx.cs" Inherits="RadCont" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table id="Tab">

    <tr>
        <td>
        <asp:SqlDataSource
            ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CAAConnectionString %>"
            SelectCommand="SELECT [name] FROM [record_status]">
        </asp:SqlDataSource>
       
       
            <telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="False" runat="server" GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound">
           
            <MasterTableView  DataKeyNames="CategoryId">
            <DetailTables>
                <telerik:GridTableView DataKeyNames="ParameterVal" Name="Value">
                   
               
                </telerik:GridTableView>
            </DetailTables>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" DataField="Name" HeaderButtonType="TextButton" UniqueName="ShortName"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn  SortExpression="CategoryId" HeaderText="Id" DataField="CategoryId" HeaderButtonType="TextButton" Visible="False" Display="False" UniqueName="CategoryId"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Description" HeaderText="Description" DataField="Description" HeaderButtonType="TextButton" UniqueName="Description"></telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn UniqueName="EditCol">
                    </telerik:GridEditCommandColumn>
                </Columns>
               
                <EditFormSettings EditFormType="Template">
                    <EditColumn UniqueName="EditCol">
                   
                    </EditColumn>
                    <FormTemplate>
                        <table id="Table1">
                        <tr>
                           
                       
                        </tr>
                       
                       
                        </table>
                   
                   
                    </FormTemplate>
                    <PopUpSettings ScrollBars="None" />
                </EditFormSettings>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True">
               
            </ClientSettings>
            </telerik:RadGrid>
        </td>
   

    </tr>



</table>
Gajanan
Top achievements
Rank 2
 answered on 17 Aug 2015
1 answer
227 views

Hi Team,

Hi tried to access the radgrid inside another radgrid  but  Iam not succeed ...How i suppose to access rad grid ...

 

hi have 

 

<telerik:radgrid id="rgparent" runat="server">

<mastertable>

<nestedview>

<teleri:radgrid id="rgchild" runat="server">

</telerik:radgrid>

</nested>
</mastertable>
</telerik:radgrid>

 

 

 

How may i suppose to access the  "rgchild" clinet side  not server side...

Eyup
Telerik team
 answered on 17 Aug 2015
4 answers
587 views

Hi there,

 I need a hand on how to achieve this.  I have a page with a dynamically loaded treeview working fine on the left, and content on the right based on the tree view node that has been clicked.  When the content on the right is saved, it needs to reload both that content and the treeview - because the treeview might change based on the right content save.  I'm doing a full page reload, passing through the selected treeview node ID in the URL.

On reloading, I need the selected ID node to be selected still (this is working fine), but also I need :-

- the treeview to be expanded down to that node so that the selected node is visible to the user
- to trigger the click even of that node such that the content on the right is reloaded from that event as currently

How can I achieve this?  I can't find any loaded/rendered event to work with (I tried the page document.ready event but the treeview isn't available to the DOM at that point so threw an error, and also the dataBound event of the treeview but that didn't seem to trigger either, it just did nothing).

Any help would be appreciated.

Thanks, Mark

Mark
Top achievements
Rank 1
 answered on 17 Aug 2015
4 answers
178 views
Hello,

I am trying to validate a valid item is typed into one of my combo's with load on demand enabled and I am having a hard time with the javascript. I want to re-use a function for multiple combobox's.
        function ValidateComboUser(source, args)    
        {            
            var combo = $find(source.ControlToValidate.ClientID);   
            args.IsValid = ValidateCombo(combo);  
        }            
         
        function ValidateCombo(combo)  
        {  
           var isValid = false;    
           var text = combo.get_text();    
           var item = combo.findItemByText(text);    
             
           if (item)    
           {    
               isValid = true;    
           }   
             
           return isValid;  
        }  

Can someone please help me with a way to get the combo box being validated through the function params?

Thanks
Eyup
Telerik team
 answered on 17 Aug 2015
2 answers
197 views

we have two radgrid on one page
both the grids are having GridEditCommandColumn insert,Cancel,Update functionality
we have required field validators in both grids
but when we tried to insert in one field
it shows validators for both grid
how to make it different so that impact will not be there of one grid to another.

 

Eyup
Telerik team
 answered on 17 Aug 2015
1 answer
48 views

I'm using this http://www.telerik.com/forums/custom-advanced-form

 I copied the RadAjaxManager and Loading panel per the post. I have a JS refreshScheduler, I have a code behind ajaxrequest handler

when the advanced form closes the JS refreshScheduler fails: 
0x800a138f - JavaScript runtime error: Unable to get property 'ajaxRequest' of undefined or null reference

on    ajaxManager.ajaxRequest('RebindScheduler');

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "RebindScheduler")
    {
        RadScheduler1.Rebind();
    }
}

 

 

    function refreshScheduler() {
        var ajaxManager = $find("RadAjaxManager1");
        ajaxManager.ajaxRequest('RebindScheduler');
    }
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>    
        <telerik:AjaxSetting AjaxControlID="RadScheduler1">
            <UpdatedControls>    
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1"
                    LoadingPanelID="RadAjaxLoadingPanel1" />    
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings>    
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
    Loading...
</telerik:RadAjaxLoadingPanel>

david
Top achievements
Rank 1
 answered on 15 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?