Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
562 views
 

 <telerik:GridNumericColumn UniqueName="c31"  HeaderText="Rate" DataField="c31" DataFormatString="{0:C}"  ColumnGroupName="c3"/>
                    <telerik:GridNumericColumn UniqueName="c32" HeaderText="Hours" DataField="c32" DataFormatString="{0:C}" ColumnGroupName="c3">


I have above code in  Rad grid view, when i am double click rows  ,The column's are went to   edit mode,I modify the values ,then click on update alert  "yes", Then i want to update the modified values...i am not getting the "How to access particular  grid numeric column values " in Update_command().
plz help  me ..post the  snippet  .
Mayur
Top achievements
Rank 1
 answered on 09 Oct 2013
2 answers
83 views
Hello .
Is it Possible ? I mean ,for Example I have 5 Columns in My Grid and I want Filter be visible on 3 columns and be Invisible on other 2 Columns.
Can I do that and How?

Mahdi
Top achievements
Rank 1
 answered on 09 Oct 2013
2 answers
107 views
Hi, All,

I've got a problem with Radgrid which cannot display the text from database that contains link/URL.

The case was,

I tried to insert a text, e.g. http://www.telerik.com/ from RadEditor and then I saved it to database.
After saving, I try to retrieve it and list it with the other records on Radgrid.
and apparently, the inserted URL did not appear on the list.
The column which should be filled with the URL is blank.

Dear masters,
I do need a clue for this.
It occurs on every browser.

Many thanks in advance
Chairul
Top achievements
Rank 1
 answered on 09 Oct 2013
2 answers
185 views
no matter what I did, I cant select first row. What I'm missing ?
I want to first row to be selected on page load.
items.count is always 0. to find out problem I created a new page with only grid and sqldatasource. still could not found d anything.

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None">
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <RowIndicatorColumn Visible="False">
        </RowIndicatorColumn>
        <ExpandCollapseColumn Created="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
    
            <telerik:GridBoundColumn DataField="urun" FilterControlAltText="Filter urun column" HeaderText="urun" SortExpression="urun" UniqueName="urun">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text="" />
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>


Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim c As Integer
 
    c = RadGrid1.MasterTableView.Items.Count
 
End Sub
 
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
    If (RadGrid1.MasterTableView.Items.Count > 0) Then
        If (RadGrid1.SelectedItems.Count = 0) Then
            RadGrid1.MasterTableView.Items(0).Selected = True
        End If
    End If
End Sub
aykut
Top achievements
Rank 1
 answered on 09 Oct 2013
1 answer
105 views
I have noticed since I have upgraded to the latest version release of the Telerik ASP controls a strange behaviour with the DataStringFormat.  Previously, all my HTMLChart controls I was just specifying DataStringFormat="{0}" as I was already formatting the returned date from the SQL query in the MM/dd/yyyy format.  Once I upgraded my controls, whenever a date was being displayed on the chart for the axis label, it would instead show the actual characters {0}, not the date anymore.  I tried changing value to DataStringFormat="{0:MM/dd/yyyy}" and that did not work either, it would show like this {0:01/29/2013} on the axis.  Finally, I just took out the curly brackets and zero and used this DataStringFormat="MM/dd/yyyy" which worked.  This seems to only be a problem when using the {0} for the DataStringFormat on dates, but if it is just a number, like 10000 and I use DataStringFormat="{0:N0}" it shows correctly as 10,000.  Same thing with any other type of data aside of a date value.

Any idead why this is happening and why I cannot be consistant with the way the DataStringFormat is normally defined using the curly brackets and 0?

Thanks,
Ron
Stamo Gochev
Telerik team
 answered on 09 Oct 2013
0 answers
81 views
 Hi we use demo version of telerik radschduler 2012.2.607.35 for web controls.
 In radschduler,coloring single timeslots in certain timings it working properly,while display multiple time slot, colored fill in 1st time slot with certain time period will reflect in another time slot.so how can i avoid the coloring of 2nd time slot while display multiple time slot scenario. i attach the screen shot for your referrence??
Bala
Top achievements
Rank 1
 asked on 09 Oct 2013
3 answers
105 views
I would like to edit RadTreeNodes in a RadWindow and after making changes, update RadTreeView according to those changes.
The idea is to have a context menu with serveral options, one of them would be "Edit node". This action would open a RadWindow with information related to the node. The user would make changes and after changes are saved the treeview (just the treenode) would be updated.

I have tried to implement that but i haven't been able to open a radwindow from context menu.
Do you have an example on how to achieve that?
Thank you,
Sonia.
Princy
Top achievements
Rank 2
 answered on 09 Oct 2013
1 answer
213 views
Basically, when I try to set the date through something like this:

RadDatePicker1.SelectedDate = DateTime.ParseExact(dateToConvert, "yyyyMMdd", CultureInfo.InvariantCulture);

the calendar popup button stops working. Any ideas?
Shinu
Top achievements
Rank 2
 answered on 09 Oct 2013
1 answer
68 views
I am using RadGrid 2013.2.717.40.

Here is the markup:
   <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True">
   </telerik:RadGrid>

The grid is bound to a datasource in code.

No matter what action I take - in this case Sort - the grid becomes a single horizontal line after postback.

This has happened in many previous attempts to use this control when trying to add, edit, delete items, etc. 

Any ideas?
Princy
Top achievements
Rank 2
 answered on 09 Oct 2013
1 answer
99 views
Hi hi :)

I have a column in a grid:

<telerik:GridDropDownColumn DataField="CustomerID" DataType="System.String" DataSourceID="SqlDataSource4" FilterControlAltText="Filter CustomerName column" HeaderText="Customer Name" ListTextField="Name" ListValueField="ID" SortExpression="Name" UniqueName="CustomerName">
                            <ColumnValidationSettings>

using this data source:

<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:NameOfString %>" SelectCommand="SELECT [Name], [ID] FROM [Customer] ORDER BY [Name]"></asp:SqlDataSource>

I want to be able to filter the grid by Name, but it filters by ID for some reason. Here's what I mean:

if I filter by name this happens:

http://i.imgur.com/F3lJxnN.png

if I filter by Gretchen's ID, this happens:

http://i.imgur.com/qkz96vj.png


So it is filtering by the wrong field but I think I have the settings correct, yes?
Princy
Top achievements
Rank 2
 answered on 09 Oct 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?