Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hello,
For some reasons I have to build my gridview programmatically. 
One of the column is build like this: 

  Dim myColumn As GridBoundColumn
        myColumn  = New GridBoundColumn
        myColumn .DataField = "myValue"
        myColumn.HeaderText = "Value"
        myColumn.UniqueName = "myValue"

The gridview is editable. When I click on the edit button (and an input text appears) I want to get the input id with javascript. 
How can I do that? 
Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
66 views
I have a problem.
I need to create a dynamic image button and assign the event "click"  on a node of a "treeview", the problem is that when you click the image button disappears and never calls the event "lkbEliminar_Click".
    ImageButton lkbEliminar = new ImageButton();
      lkbEliminar.ImageUrl = "~/images/delete.png";
       lkbEliminar.ToolTip = "Eliminar Documento";
        lkbEliminar.Click += new System.Web.UI.ImageClickEventHandler(lkbEliminar_Click);  
      nodoHijoMenor.Controls.Add(lkbEliminar);
         nodoHijoMayor.Nodes.Add(nodoHijoMenor);
 
  protected void lkbEliminar_Click(object sender, ImageClickEventArgs e)
        {
            string x = "asdas";
            x = x + "asdsa";
 
           }

Princy
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
297 views
How Can I Add Percanteage Text Box With **Decimal** And **Percentage Sign** Using Telerik RadControls?  
mean Telerik MaskedTextBox or Telerik NumericTextBox?  
which one and how?  
i wrote the aspx codes below :  

<telerik:RadNumericTextBox ID="RadNumerictxtPercent_Taliya" runat="server"
    Type="Percent" Width="60px" EnableEmbeddedSkins="False" Skin="BlackByMe" ValidationGroup="C"
    MaxValue="20" MinValue="0">
    <NumberFormat DecimalDigits="2" ZeroPattern="n %" />
</telerik:RadNumericTextBox>

but i can not increase and decrease percentage (decimal area) using keyborad!  
also it seems there is a problem about percentage sign in that aspx code!  
how can i fix them?  

thanks in advance
Princy
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
100 views
Dear all,

The InPlace edit mode brings me to an empty grid with the text "No records to display.". (Both the double click as the GridEditCommandColumn button.
See below my aspx code on the RadGrid, what am I missing?

Any advice would be welcome.

Thanks in advance,
Zeo

<telerik:RadGrid ID="RadGrid1" runat="server"
     DataSourceID="SqlDataSource1" CellSpacing="0" GridLines="None"
            onneeddatasource="RadGrid1_NeedDataSource" >
 
<MasterTableView HierarchyDefaultExpanded="True"
            DataSourceID="SqlDataSource1" ShowGroupFooter="True" AutoGenerateColumns="False" EditMode="InPlace">
 
    <Columns>
        <telerik:GridBoundColumn DataField="Week" DataType="System.Int32"
            HeaderText="Week" ReadOnly="True" SortExpression="Week"
            UniqueName="Week">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Client"
            HeaderText="Client"
            SortExpression="Client" UniqueName="Client" ReadOnly="True">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Planning" DataType="System.Double"
            HeaderText="Geplande uren"
            SortExpression="Planning" UniqueName="Planning" ReadOnly="True">
        </telerik:GridBoundColumn>
        <telerik:GridNumericColumn DecimalDigits="2"
            FilterControlAltText="Filter Uren column" DataField="Planning" DataType="System.Double" UniqueName="Uren" HeaderText="Gewerkte Uren">
        </telerik:GridNumericColumn>
        <telerik:GridDropDownColumn
            UniqueName="RedenAfw" HeaderText="Afwezig">
        </telerik:GridDropDownColumn>
        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Wijzigen"
             UniqueName="Bijwerken" EditImageUrl="Images/Edit.png">
            <HeaderStyle Width="45px" />
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn ButtonType="ImageButton"
            HeaderText="Bevestig"
            ImageUrl="Images/rooster-aanwezig.png" UniqueName="Bevestig">
            <HeaderStyle Width="45px" />
        </telerik:GridButtonColumn>
    </Columns>
 
    <GroupByExpressions>
        <telerik:GridGroupByExpression>
            <GroupByFields>
                <telerik:GridGroupByField FieldAlias="Week" FieldName="Week" FormatString=""
                    HeaderText="Week" />
            </GroupByFields>
        </telerik:GridGroupByExpression>
    </GroupByExpressions>
 
</MasterTableView>
</telerik:RadGrid>


Shinu
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
103 views
Hi,

I have a radgrid with Editmode as Popup. On click of edit button, the popup is displaying at the top of the grid.
My question is:

How can I position the popup above or below the row which is marked for edit?

Your answers with code snippet would be appreciated

Thank.
Shinu
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
168 views

I have an ASP.net button and I set the CssClass to something so that I can use Jquery to select it and force the click event when someone hits the enter key and this works the way I want it to.  The problem is that I am using Telerik skins so when I assign the cssclass the styling on the button goes away.  If I change the button to a RadButton the styling remains even if I set the CssClass to something however my Jquery selector obviously won't work anymore.

I have to select by class because I won't know the client id of the button because of edit form templates, master page, other containers, etc...

So how can I either:

a.) Select the RadButton using Jquery similar to the example below? Or,
b.) Style the ASP.net button using telerik skins while still assigning a CSSClass so that I can still use this below?


$(document).keypress(function (event) {
  if (event.keyCode == 13) {
    event.preventDefault();
    $(".submit-button").click();
  } else {
    return true;
  }
});
Princy
Top achievements
Rank 2
 answered on 12 Jun 2012
0 answers
109 views
I did a batch conversion of a number of windows forms from visual basic to C#.  I converted both the form.vb and form.designer.vb files.  When I added them to a C# windows project Visual Studio and I right-click any of the forms I only see the options of View Code and View Class Diagram, but not View Designer.  What am I doing wrong?
William
Top achievements
Rank 1
 asked on 11 Jun 2012
1 answer
78 views
Hello.

I have a radgrid that has radtabs and the multipage.  I want to use a dropdown in the radfilter for some of the fields, so that: 

a) the initial page load is the default load
b) from the filter selection, using the example from Grid / Filtering Template Columns, http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx, the grid will bind according to the selection.

I read all of the tutorials on customizing the filters, but nothing seems to work correctly for me. I followed the tutorial and I am not getting the results.  If anything, I am not ghetting an error on the RadMultiPage Control.  I created the FilterTemplateColumns.cs class.  I am not sure how to register that class correctly in my file. 

At  the top of my .aspx page, I have the following, whcih is not correct:

<%@ Register TagPrefix="custom" Namespace="MyCustomFilteringColumn.FilteringTemplateColumns"%>

The class was created and saved in my App_code folder.

The following is the grid where I am receiving the "object reference not set to an instance of an object"

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="ProgrammingPageView" runat="server">
            <telerik:RadGrid ID="ProgramGrid" runat="server" DataSourceID="prgDS" AllowFilteringByColumn="true"
AllowSorting="true" AllowPaging="true" AutoGenerateColumns="False"
ShowStatusBar="true" PageSize="7">
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
<MasterTableView DataKeyNames="ProgrammingID" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true">
<NoRecordsTemplate>There isn't any data.</NoRecordsTemplate>
 <Columns>
       <custom:MyCustomFilteringColumn DataField="Show" FilterControlWidth="180px" HeaderText="Show">
                        <headerstyle width="25%" />
                      <itemtemplate><%# Eval("Show") %></itemtemplate>
                   </custom:MyCustomFilteringColumn>
  
What can I do to prevent this error?  I want to use other dropdowns in the filters.  Also, do I need to add <filter parameters> in my sqldatasource?

Thank you for your help.
Ayozen
Top achievements
Rank 1
 answered on 11 Jun 2012
0 answers
137 views
A SortExpression set on the server seems incompatible with a RadGrid that is populated with client-side data binding and has client-side sorting. I am wondering if there is a recommended way to identify a column that is sorted by default in this scenario?

 

For example, I want to indicate that the data comes out of the database sorted by Column A by default. If I add a SortExpression on the server, that column is shaded and has an arrow. If I try to sort by Column B using the client-side API, Column A will retain that shading and arrow supplied when the grid structure was created on the server, even though Column B is now being used for sorting and has an arrow also. If I then change the sort back to Column A, Column A gets a second arrow next to the arrow supplied on the server. 

ASP.NET AJAX 2012 Q1 SP1 controls.

Mike Chabot
Top achievements
Rank 1
 asked on 11 Jun 2012
2 answers
83 views
hi,
I have used radeditor with externalDialogs in my website project and I have set the ExternalDialogsPath to theire location.
When I publish my website and make it precompiled all the .ascx files included these ExternalDialogs are deleted from their folders and being .compiled files in bin folder.
How can I set the ExternalDialogsPath value of the radeditor now?
It doesn't work for me now when I set the path like this : ExternalDialogsPath = "~/Bin/"

Thanks
Mark Kucera
Top achievements
Rank 1
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?