Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
156 views
Hi,

I have a RadGrid with a EditCommandColumn. In the headercontextmenu this column can be hidden when I choose Columns (see screenshot). How can I hide this column from the headercontextmenu?

Paul
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Sep 2013
5 answers
155 views
 I am trying to export RadGrid data to CSV format but the button is not working
 i added onRequestStart also but nothing is happening. Then i find
 the issue from firebug it firstly finding my grid and experotCSV function and
 then returning to false.

if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;__doPostBack('gvLoginDetail$ctl00$ctl02$ctl00$ExportToCsvButton','')
It is a default function of RADGRID tell me
how to remove the below line.

if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Sep 2013
3 answers
134 views
Hi All,

Export to excel is not working while using loading panel, without loading panel it is work fine. How to fix this is issue?
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Sep 2013
1 answer
227 views
Hi,

I have a radgrid that have a radcombobox in the header of one of the columns. I'm building the radcombobox in the OnItemCreated event. When  I select a value in the radcombobox, I filter the grid based on the selected value and store the selected value in the session. My problem is in the radgrid OnPreRender event, I'm trying to set the selected value of the radcombo box and it is not been set. the control is ajaxified, I can see through the debugger that is setting the correct selected item, but when the grid shows up, the value is not selected. Any ideas?

This is the code I'm using to set the selected item
protected void radGridUnits_OnPreRender(object sender, EventArgs e)
        {
                // Select the last selected value
                if (Session["filteredByPendingAction"] != null)
                    foreach (GridHeaderItem h in radGridUnits.MasterTableView.GetItems(GridItemType.Header))
                    {
                        ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).FindItemByValue(Session["filteredByPendingAction"].ToString()).Selected = true;
                        ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).DataBind();
                        break;
                    }
            }


Thanks in adavance
Eyup
Telerik team
 answered on 16 Sep 2013
5 answers
273 views
Hello ,

GridDateTimeColumn Filter template do not highlight today date.

I want to highlight today date when filter Datepicker open.

As i have already developed the application and i have used the datepicker filter control in more than 100 place so please provide me the global solution.

See the attached demo screenshot.

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx
Vasil
Telerik team
 answered on 16 Sep 2013
1 answer
105 views
I have two RadWindows each with an alert that fires when OnClientActivate is called.

The currently active RadWindow fires the event every time the window is clicked, active or not.  

Why?

GetRadWindow().add_activate(OnClientActivate);
 
 
function OnClientActivate(sender, e) {
    alert('I should only see this once when the window is brought to the front');
}
Ianko
Telerik team
 answered on 16 Sep 2013
1 answer
137 views
Hi There,

We are facing issue when we click an item on RadTabStrip. Sometimes we recieve the message - Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Collection was modified; enumeration operation may not execute.

Also find attached the screen shot of the error page.

We are using .Net 3.5 Visual Studio 2008, Telerik Version - 2013.1.417.35

Please advice.

Thanks,
Rohit
Nencho
Telerik team
 answered on 16 Sep 2013
1 answer
154 views
Hi everyone, I'm having difficulty getting the negative labels on the Yaxis to change to positives, I've seen that this has been asked before for the radchart and I did try the solution but I couldn't access yaxis.items to do a count for a loop so I'm wondering if something is different in the way I need to do this?

I've done a count on the plotarea.series and I'm getting 2 which is how many series I have fed the chart, the chart is displaying perfect apart from the YAxis labels, that's all I have left to do :(

Can anyone help me please?

I'm using ASP.Net with VB.Net as the code behind...

Thanks! Adam.
Adam
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
47 views
Is it possible to email current row data ?
Eyup
Telerik team
 answered on 16 Sep 2013
3 answers
239 views
Hello,

We are using RadGrid with batch Edit functionality. We have created javascript functions for textbox validation like allowing only numbers, only letters, only numbers and letters,.., the javascript functions are working fine.

The problem is to check textbox empty or not. We applied Requiredfieldvalidator for EditItemTemplate, it is not working fine.

We tried with Javascript but not getting how to set focus in textbox, if the textbox is empty.

ASPX:
-------
<telerik:GridTemplateColumn DataField="Product_Name" GroupByExpression="Product_Name Group by Product_Name"
                    UniqueName="Product_Name" InitializeTemplatesFirst="false" HeaderStyle-Width="20%"
                    HeaderText="Product Name" HeaderStyle-Font-Size="13px">
                    <HeaderTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkSortProduct_Name" runat="server" CommandArgument="Product_Name"
                                        CommandName="Sort" Text="Product Name"></asp:LinkButton>
                                </td>
                                <td>
                                    <img src="Images/Context_new_menu.jpg" style="margin-top: 5px; margin-left: 5px;
                                        cursor: pointer" onclick='ShowColumnHeaderMenu(event,"Product_Name")' alt="Show context menu" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblProductName" runat="server" Text='<%#Eval("Product_Name") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                    <EditItemTemplate>
                        <asp:TextBox ID="txtProductName" runat="server" Text='<%Eval("Product_Name") %>' Width="95px"
                            MaxLength="10" onblur="return Validate();" OnTextChanged="txtTaxYear_TextChanged" ToolTip="Enter Product Name"></asp:TextBox>
                            <span id="spntxtProductName" style="color:Red; visibility:hidden">*Required</span>                        
                    
                </telerik:GridTemplateColumn>

Javascript:-
--------------
function Validate()
{
        var grid = $find("<%=grdTaxYears.ClientID %>");
        var MasterTable = grid.get_masterTableView();
        var row = MasterTable.get_dataItems();
        var columns = grid.get_masterTableView().get_columns();
        
        var ProductName = MasterTable.get_dataItems()[0].findElement('txtProductName');
        var spntxtTaxYear = document.getElementById('spntxtTaxYear');

        if ((ProductName .value == '') || (ProductName .value == null))
        {
            spntxtProductName.style.display = true;
            return false;
           }
          }

Please resolve this issue.

Thanks in Advance,
Sanath Rohilla.
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?