Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
325 views
Hi,

I want to know is it possible to show nested Grid on click of button in parent table.
I would appreciate if any source code example is there.
Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
115 views
Hi 

When i click the next page or page 2 button the gridview doesnt populate.

the problem is that i databind from different sources depending on what the user selects previously to view.

  <telerik:RadGrid ID="rgLog" runat="server" AllowPaging="True" PageSize="15" 
                        AutoGenerateColumns="False" AllowSorting="true" 
                            onpageindexchanged="rgLog_PageIndexChanged">


Grant
Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
5 answers
451 views
Hi ,
We have implemented a RadGrid and are using RadAjaxManager for using RadAjaxLoadingPanel for the Grid .
Radgrid is inside update panel /Not using RadAjaxPanel.
Here is the markup for RadAjaxManager :
<telerik:RadAjaxManager runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gridCheckListDetails">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridCheckListDetails" 
                        LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager> 

and code for RadAjaxLoading Panel along with grid 

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista">
                                                </telerik:RadAjaxLoadingPanel>
                                              
                                                 <telerik:RadGrid ID="gridCheckListDetails" runat="server"  EnableLinqExpressions="False"
                                                    AllowFilteringByColumn="True" AllowPaging="True" 
                                                    AllowSorting="True" CellSpacing="0" GridLines="None" OnNeedDataSource="gridCheckListDetails_NeedDataSource"
                                                     PageSize="20" AllowMultiRowSelection="True"
                                                    AutoGenerateColumns="False" Skin="Windows7" 
                                                    OnItemDataBound="gridCheckListDetails_ItemDataBound" 
                                                    OnItemCreated="gridCheckListDetails_ItemCreated" 
                                                    onpageindexchanged="gridCheckListDetails_PageIndexChanged"   
                                                    onpagesizechanged="gridCheckListDetails_PageSizeChanged"  >
                                                  
                                                    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                                        <Selecting AllowRowSelect="True" />
                                                            
                                                        <ClientEvents OnRowSelecting="RowSelecting" />
                                                  <ClientEvents OnRowCreated="RowCreated" />
                                                
               
                                                    </ClientSettings>
                                                   
                                                    <MasterTableView AllowMultiColumnSorting="true" 
                                                        ClientDataKeyNames="fncanModifyTask" DataKeyNames="TaskID,CheckListID" 
                                                        GridLines="Horizontal" Name="TaskTable" TableLayout="Fixed">
                                          
                                                        <RowIndicatorColumn Visible="False">
                                                        </RowIndicatorColumn>
                                                    
                                                        <Columns>
                                                            <telerik:gridclientselectcolumn UniqueName="SelectBox"   >
                                                               <HeaderStyle Height="14px" Width="25px" />
                                                            </telerik:GridClientSelectColumn>
                                                            <telerik:gridimagecolumn AllowFiltering="false" AllowSorting="false" DataImageUrlFields="TaskIsAtRisk" 
                                                                DataImageUrlFormatString="~/Images/isatrisk/{0}.gif" HeaderText="TaskIsAtRisk" 
                                                                ItemStyle-Height="7" ItemStyle-Width="5" Visible="false">
                                                                  <HeaderStyle Height="14px" Width="20px" />
                                                                    <ItemStyle Height="14px" Width="7px" />
                                                              
                                                            </telerik:GridImageColumn>
                                                            <telerik:gridimagecolumn AllowFiltering="false" AllowSorting="false" 
                                                                DataImageUrlFields="TaskIsMileStone" 
                                                                DataImageUrlFormatString="~/Images/ismilestone/{0}.png" 
                                                                HeaderText="TaskIsMileStone" ItemStyle-Height="7" ItemStyle-Width="5" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" Visible="false">
                                                                 <HeaderStyle Height="14px" Width="25px" />
                                                                    <ItemStyle Height="14px" Width="7px" />
                                                            </telerik:GridImageColumn>
                                                            <telerik:gridimagecolumn AllowFiltering="false" AllowSorting="false" 
                                                                DataImageUrlFields="hasDocuments" 
                                                                DataImageUrlFormatString="~/Images/hasdocuments/{0}.jpg" 
                                                                HeaderText="hasDocuments" ItemStyle-Height="7" ItemStyle-Width="5" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" Visible="false">
                                                                   <HeaderStyle Height="14px" Width="20px" />
                                                                    <ItemStyle Height="14px" Width="7px" />
                                                            </telerik:GridImageColumn>
                                                            <telerik:gridhyperlinkcolumn DataNavigateUrlFields="TaskID,CheckListID" 
                                                                DataNavigateUrlFormatString="~/TaskDetail.aspx?TaskID={0}&amp;CheckListID={1}" 
                                                                DataTextField="TaskName" FilterControlWidth="200px"  HeaderText="TaskName" 
                                                                ItemStyle-CssClass="LinkBlue11"  ItemStyle-HorizontalAlign="Left"
                                                                UniqueName="TaskName" Visible="false">
                                                                <ItemStyle CssClass="LinkBlue11" />
                                                                 <ItemStyle Width="400px" />
                                                                    <HeaderStyle Width="400px" />
                                                            </telerik:GridHyperLinkColumn>
                                                            <telerik:gridboundcolumn DataField="AssignedUsers" HeaderText="AssignedUsers" 
                                                                Visible="false" ItemStyle-Width="700px">
                                                                 <ItemStyle Width="150px" />
                                                                    <HeaderStyle Width="150px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="TeamName" HeaderText="TeamName" 
                                                                Visible="false">
                                                            <FilterTemplate>
                                                                        <telerik:RadComboBox ID="Teamfilter" runat="server" 
                                                                OnPreRender="TeamName_PreRender"  
                                                                OnSelectedIndexChanged="TeamName_SelectedIndexChanged"    
                                                                OnClientSelectedIndexChanged="TeamIndexChanged" AppendDataBoundItems="true" DataTextField="TeamName"  
                                                                            DataValueField="TeamName" Height="200px" Width="100px" 
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TeamName").CurrentFilterValue %>'  
                                                                AutoPostBack="true">
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                           
                                                                        </telerik:RadComboBox>

                                                                        
                                    
                                                                       
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn  DataField="TaskEndDate" HeaderText="TaskEndDate"  
                                                                FilterControlWidth="110px" DataFormatString="{0:d}" Visible="false">
                                                                        <FilterTemplate>
                        <telerik:raddatepicker ID="TaskEndDatePicker" runat="server" Width="100px" 
                            ClientEvents-OnDateSelected="DateSelected"
                            DbSelectedDate='<%# SetEndDate(Container) %>' />
                     
                    </FilterTemplate>
                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn  DataField="TaskStartDate" HeaderText="TaskStartDate" 
                                                                FilterControlWidth="110px" DataFormatString="{0:d}"
                                                                Visible="false">
                                                                <FilterTemplate>
                        <telerik:raddatepicker ID="TaskStartDatePicker" runat="server" Width="100px" 
                            ClientEvents-OnDateSelected="StartDateSelected"
                            DbSelectedDate='<%# SetStartDate(Container) %>' />
                     
                    </FilterTemplate>
                                                             <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn AllowFiltering="false" AllowSorting="false" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" DataField="StartTime" HeaderText="StartTime" 
                                                                Visible="false">
                                                             <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn AllowFiltering="false" AllowSorting="false" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" DataField="EndTime" HeaderText="EndTime" 
                                                                Visible="false">
                                                             <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="TaskStageText" HeaderText="TaskStageText" 
                                                                UniqueName="TaskStageText" Visible="false">
                                                            <FilterTemplate>
                                                                        <telerik:RadComboBox ID="Stagefilter" runat="server" 
                                                                AppendDataBoundItems="true"   
                                                                OnClientSelectedIndexChanged="StageIndexChangedStage" 
                                                                OnPreRender="StageName_PreRender"  OnSelectedIndexChanged="StageName_SelectedIndexChanged"
                                                                            DataTextField="TaskStageText" DataValueField="TaskStageText" 
                                                                Height="200px" Width="100px" 
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TaskStageText").CurrentFilterValue %>'  
                                                                AutoPostBack="true" >
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
                                                                      
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn AllowFiltering="false" AllowSorting="false" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" DataField="TaskGracePeriod" 
                                                                HeaderText="TaskGracePeriod" Visible="false">
                                                            
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridimagecolumn AllowFiltering="false" AllowSorting="false" 
                                                                DataImageUrlFields="Status" DataImageUrlFormatString="~/Images/{0}.png" 
                                                                HeaderText="Status" ShowFilterIcon="false" ShowSortIcon="false">
                                                                  <HeaderStyle Height="14px" Width="50px" />
                                                                    <ItemStyle Height="14px" Width="7px" />
                                                                        <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridImageColumn>
                                                            <telerik:gridboundcolumn DataField="TaskTypeName" HeaderText="TaskTypeName" 
                                                                Visible="false">
                                                                   <FilterTemplate>
                                                                        <telerik:RadComboBox ID="Typefilter" runat="server"   
                                                                AppendDataBoundItems="true" DataTextField="TaskTypeName"  
                                                                OnClientSelectedIndexChanged="TypeIndexChanged" OnPreRender="Type_PreRender"  OnSelectedIndexChanged="Type_SelectedIndexChanged"
                                                                            DataValueField="TaskTypeName" Height="200px" Width="100px" 
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TaskTypeName").CurrentFilterValue %>' 
                                                                AutoPostBack="true" >
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
         
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="BusinessUnitsName" 
                                                                HeaderText="BusinessUnitsName" UniqueName="BusinessUnitsName" 
                                                                Visible="false">
                                                             <FilterTemplate>
                                                                        <telerik:RadComboBox ID="BUfilter" runat="server" 
                                                                AppendDataBoundItems="true" DataTextField="BusinessUnitsName"  
                                                                OnClientSelectedIndexChanged="BUIndexChanged"  OnPreRender="BUName_PreRender"  OnSelectedIndexChanged="BUName_SelectedIndexChanged"
                                                                            DataValueField="BusinessUnitsName" Height="200px" 
                                                                Width="100px" 
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("BusinessUnitsName").CurrentFilterValue %>' 
                                                                AutoPostBack="true"  >
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
                                                                    
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn  DataField="TaskGroup" HeaderText="TaskGroup" 
                                                                Visible="false">
                                                                 <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn AllowFiltering="false" AllowSorting="false" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" DataField="Name" HeaderText="Name" 
                                                                Visible="false">
                                                             <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="TaskPriorityName" 
                                                                HeaderText="TaskPriorityName" Visible="false">
                                                                    <FilterTemplate>
                                                                        <telerik:RadComboBox ID="Priorityfilter" runat="server"  
                                                                AppendDataBoundItems="true" DataTextField="TaskPriorityName"  
                                                                OnClientSelectedIndexChanged="PriorityIndexChanged"  
                                                                OnPreRender="Priority_PreRender"  OnSelectedIndexChanged="Priority_SelectedIndexChanged"
                                                                            DataValueField="TaskPriorityName" Height="200px" Width="100px" 
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TaskPriorityName").CurrentFilterValue %>'  
                                                                AutoPostBack="true" >
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
                                                                      
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn AllowFiltering="false" AllowSorting="false" 
                                                                ShowFilterIcon="false" ShowSortIcon="false" DataField="Title" 
                                                                HeaderText="Title" Visible="false">
                                                           <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="IssueCategory" HeaderText="IssueCategory" 
                                                                Visible="false">
                                                               <FilterTemplate>
                                                                        <telerik:RadComboBox ID="Issuefilter" runat="server"  AppendDataBoundItems="true"
                                                                            DataTextField="IssueCategory" DataValueField="IssueCategory" 
                                                                Height="200px" Width="100px"  OnClientSelectedIndexChanged="IssuefilterIndexChanged" 
                                                                            
                                                                SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("IssueCategory").CurrentFilterValue %>'  >
                                                                            <Items>
                                                                                <telerik:radcomboboxitem Text="All" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
                                                                   
                                                                    </FilterTemplate>
                                                                      <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="CheckListID" HeaderText="CheckListID" 
                                                                Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="TaskID" HeaderText="TaskID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:gridboundcolumn DataField="fncanModifyTask" 
                                                                HeaderText="fncanModifyTask" UniqueName="fncanModifyTask" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                             
                                                        </Columns>
                                                      
                                                    </MasterTableView>
                                                    <PagerStyle Mode="NextPrevAndNumeric" PageSizes="60" ></PagerStyle>
                                               
                                                </telerik:RadGrid>

Please tell me how to fix this , i have attached screenshot of stuck screen , we need loading panel in case of column filtering , this was working until the recent update.When we apply filter the loading panel keeps on going , while in background i can see results.























































Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
16 answers
534 views
Hi I'm trying to extract data from the first column of my radgrid. Is it possible to do this without using a selected method? I want it to be done automatically on page load 
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2014
8 answers
492 views
Hello,

We currently offer our users to download some pdf's from a radGrid thus, we need to disable ajax so we can "push" the file directly to the client without opening a new window.

So on the event "OnRequestStart" of our RadAjaxManager we have this script that disable ajax and it works great. But after the file is pushed, we need to re-enable ajax so crontrols like "RadCombobox" start working again.

function onRequestStart(ajaxManager, eventArgs) 
  if(eventArgs.EventTarget.indexOf("lnkbtnUpload") != -1) 
  { 
     eventArgs.EnableAjax = false
  } 

We tried OnRequestEnd, but didn't work. This event is not event fired, which is probably due to the fact that "ajax" is disabled.

How could this be achieved?

Thanks!
Silvio Silva Junior
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
104 views
Hello friends,
In  ASP.NET GridViews we have a property called SelectedRow, this property allows selected a item or colum value, for example:

Grid with columns:

Name   Surname
Jhon      Hills
Patrick  Miller


When I selec the first column I want get the selected surname

for do this we need do follow:

string Surname = GridView1.SelectedRow.Cells[1].Text;
Response.Write(Surname);
//Ouput:
Hills
But In radGrid we don't have this property, anyone knows how can I do this????
Thanks and regards,
Luis


Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
289 views
Is it possible to close the light box, when the active image is clicked?

And if so, how would I do that?

regards Kim Hjort
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2014
0 answers
52 views
I have a rad editor on an aspx page.  <telerik:RadEditor ID="txtarFeedback" runat="server" CssClass="textareaRTE" EditModes="Design" Width="631px" Height="118px" StripFormattingOnPaste="MSWord" StripFormattingOptions="MSWord" AllowScripts="false" ContentFilters="RemoveScripts" >

but when I put in <script>alert("hello");</script> it is still in both the Content and in Text when it is submitted to the server.
Admitted Content it is much more harmless but shouldn't it be removing the whole thing from content?
Chrys
Top achievements
Rank 1
 asked on 20 Feb 2014
8 answers
175 views
Is there any way to avoid that the windows content becomes white (E.J: radwindow manager example on teleriks page),  when you have more than one window on the screen and you move it from it's original position while you are moving it?
New Roc web-development
Top achievements
Rank 1
 answered on 20 Feb 2014
4 answers
441 views
Hello
I am trying to grab the SelectedValue of a RadComboBox unsuccessfully on button click.

protected void smsBtn_Click(System.Object sender, System.EventArgs e)
{
        MyClass MC= new MyClass (_FID, emTxBx.Text);
{
if (!MC.IsError)
{

string _carrier = carrierRcb.SelectedValue;

MC.SMSMessage(_FID, _carrier, cellTxBx.Text);

statusLbl.ForeColor = System.Drawing.Color.Red;
statusLbl.Text = "Your Code Key has been sent.";
statusPnl.Visible = true;
}
else
{
statusLbl.ForeColor = System.Drawing.Color.Red;
statusLbl.Text = "There was an error sending your request.";
statusPnl.Visible = true;
}
}

}


Seems like a simple thing to do. Am I missing something here?
ADAPT
Top achievements
Rank 2
 answered on 20 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?