Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
956 views
Hello,

I have this radgrid that i want to perform edit funtion. Going into edit mode wasn't a problem.
But i can see the UPDATE and CANCEL buttons. here is my radgrid and i use datatable to populate it.
any suggestion?

 <telerik:RadGrid ID="RadGrid1" runat="server" ShowFooter="true" AutoGenerateColumns="False"
                    AllowSorting="true" EnableEmbeddedSkins="True" Skin="Sunset" Width="1000px"
                    EnableLinqExpressions="false" OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource1"
                    OnItemCreated="RadGrid1_ItemCreated">
                    <MasterTableView DataKeyNames="Account" EditMode="InPlace">
                        <Columns>
                            <telerik:GridButtonColumn Text="Edit" CommandName="Edit" ButtonType="PushButton">
                                <ItemStyle HorizontalAlign="Center" CssClass="BorderLeft BorderRight BorderBottom" />
                                <FooterStyle CssClass="BorderLeft BorderRight BorderBottom" />
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn DataField="LongAccount" HeaderStyle-HorizontalAlign="Center"
                                UniqueName="LongAccount" HeaderText="Account" ReadOnly="true" ShowSortIcon="false"
                                FooterText="Sub Total">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" Width="100px" CssClass="BorderRight BorderBottom" />
                                <FooterStyle CssClass="BorderRight BorderBottom" />
                            </telerik:GridBoundColumn>
                         
                        </Columns>
                        <EditFormSettings>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableEmbeddedSkins="False">
                    </FilterMenu>
                </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 08 Apr 2013
1 answer
231 views
I want to change font-family of Titlebar of radwindow in javascript .
Princy
Top achievements
Rank 2
 answered on 08 Apr 2013
1 answer
201 views
I'm trying to figure out how to dynamically add columns to a hierarchical/nested grid in a RadGrid.  Which columns need to be created are determined by a Check Box List control.  And I only know for sure which columns to add after the RadGrid_DetailTableDataBind is called.

I can get it all to work if I set AutoGenerateColumns to TRUE.  But of course I need to make two of the columns (if they are selected) TemplateColumns.  Which is why I have to dynamically add the columns.

To me it looks like I have two choices (neither of which I could make work).   1) Add the columns to a statically created hierarchical grid.  Or 2) Create the hierarchical grid dynamically and then the columns.  

For the first option after the RadGrid_DetailTableDataBind is invoked, a datatable is populated from a database query. After the datatable (which is going to be the datasource) is generated I call the following routine (with datasource table as the one calling parameter).

Sub AddColumnsToGrid(ByVal ResultTable As DataTable)
    Dim bc As GridBoundColumn
     
    Dim dgOSEvent As GridTableView = RadGrid1.MasterTableView.DetailTables(0)
    dgOSEvent.Columns.Clear()
    'Dim dgOSEvent As GridTableView = New GridTableView(RadGrid1)
     
    bc = New GridBoundColumn()
    bc.DataField = "% of Total"
    bc.HeaderText = "% of Total"
    bc.ItemStyle.HorizontalAlign = HorizontalAlign.Center
    bc.DataFormatString = "{0:p}"
    dgOSEvent.Columns.Add(bc)
 
    bc = New GridBoundColumn()
    bc.DataField = "Count"
    bc.HeaderText = "Event Count"
    bc.ItemStyle.HorizontalAlign = HorizontalAlign.Center
    bc.DataFormatString = "{0:###,###,###}"
    dgOSEvent.Columns.Add(bc)
     
    For Each dc As DataColumn In ResultTable.Columns
        If dc.ColumnName <> "COUNT" And dc.ColumnName <> "% of Total" Then
            If dc.ColumnName = "SOURCE" Or dc.ColumnName = "DESTINATION" Then
                Dim tc As GridTemplateColumn = New GridTemplateColumn()
                tc.HeaderTemplate = New DataGridTemplate(ListItemType.Header, dc.ColumnName)
                tc.ItemTemplate = New DataGridTemplate(ListItemType.Item, dc.ColumnName)
                tc.ItemStyle.HorizontalAlign = HorizontalAlign.Center
                dgOSEvent.Columns.Add(tc)
            Else
                bc = New GridBoundColumn()
                bc.DataField = dc.ColumnName
                bc.HeaderText = dc.ColumnName
                If dc.ColumnName = "Description" Then
                    bc.ItemStyle.HorizontalAlign = HorizontalAlign.Left
                Else
                    bc.ItemStyle.HorizontalAlign = HorizontalAlign.Center
                End If
                dgOSEvent.Columns.Add(bc)
            End If
        End If
         
    Next
End Sub

I can post the code for DataGridTemplate, but I don't think that's the problem here.  I suspect that I'm getting something more fundamental wrong. 

The results I get when running this code is I do get a grid row for each record in my results.  Their headers are blank and the contents of the GridBoundColumn are: System.Data.DataRowView.  The template columns are blank.

My attempt at the 2nd approach was even less successful.  So I'll need more direction if this turns out to be the best way to go.

Thanks for any help on this.


Shinu
Top achievements
Rank 2
 answered on 08 Apr 2013
5 answers
420 views
Hello,

We are working on a healthcare application using the RadEditor.  Can we add medical terms to an existing or custom dictionary file to be used in the RadEditor control?  I found an article included below.

www.telerik.com/help/aspnet-ajax/editor-create-new-dictionary.html

Thank you.

Eric
Rumen
Telerik team
 answered on 07 Apr 2013
1 answer
72 views
Hi all member
I have a Radgrid .I want with press a special key perform a action like Cancel.So I create a KeyPress method for grid but when in method raise cancel Insert or cancel edit method it cause fire  validator in template column. and show a error javascript.
please help to me for resolve this problem.(Note: I want not use KeyboarNavigationSupport in radgrid)
thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Apr 2013
1 answer
158 views
Hi, 
I'm developing a client mail application, When i place RadEditor inside the Update Panel I'm unable to read the content of the editor, when placed outside the update panel i can able to get the content.

Please help/assist me in this regards


Thanks & Regards
Phaneendra
Rumen
Telerik team
 answered on 06 Apr 2013
0 answers
136 views

I have noticed when I use code like 

var oWnd = $find("<%= RadWindowActionNotes.ClientID %>");

The VS 2012 ability to collapse code sections breaks...

Image 1 - collapseWorks.jpg- Works in regular JavaScript code...
Image 2 - collapseNotWork -  Broken with $find

Does anyone know how to get this working??

Wired_Nerve
Top achievements
Rank 2
 asked on 06 Apr 2013
2 answers
291 views
Hi Telerik,
I designed a chart (RAD Chart - HTML5)

What i want is I need to give separate color for every seriesitems
I am taking the value from DataSource.

(ex: Having 5 items in X-axis, i need each item to be in different color)

Here is the sample code,

<telerik:RadHtmlChart runat="server" Height="600px" ID="RadChart1" DataSourceID="DataSource1">
      <PlotArea>
          <Series>
               <telerik:ColumnSeries DataFieldY="Count" Name="">
               </telerik:ColumnSeries>
  </Series>
    <XAxis DataLabelsField="Status">
    <TitleAppearance Text="">
    </TitleAppearance>
    </XAxis>
    <YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside"
                       MaxValue="100" MinorTickSize="1" MinorTickType="Outside" MinValue="0" Reversed="false"
                       Step="10">
    </YAxis>
 </PlotArea>
</telerik:RadHtmlChart>


Please help me.!

Thanks in Advance
-Alex
Alex
Top achievements
Rank 1
 answered on 06 Apr 2013
1 answer
95 views
Is anyone aware of any way to add a Directory to the ViewPaths, but remove a specific set of sub-directories from the tree?

For instance, my web application will be deployed to multiple web servers that may have different sub-directories in the root of D.  To account for those variances, I want to be able to just add D:\ to the ViewPath so the FileExplorer will automatically account for sub-directories that may be on one server but not another, but I want to remove "D:\Source" on all servers.

Does anyone know of a way to achieve this?
Matt DiPietro
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
99 views
Hello guys, I'm here facing a problem.
In a project we have 3 developers working in the same solution, only one is using the Telerik Controls the other two, one is working on Webservices and the other on business logic. I was alerted for the fact that there were three developers working on the same solution and when the tests are made (the web app is launched in the browser) the telerik assemblies will be loaded into memory and so we are not complying with license terms.

Is this correct? Would we need to purchase two more developer seats?
Thank you
Caleb
Telerik team
 answered on 05 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?