Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
448 views
Hi all,
I have a RadGrid to display all the data from a SqlDataSource which is calling a stored procedure that generate dynamic column name and data.
The first column of the RadGrid is a link column and the following column is generated from the SP.
Due to the dynamic columns, so i cannot pre-set any column setting in the RadGrid such as $ currency sign and thousand separator,
I have to set it during the RadGrid1_ItemDataBound event, but the RadGrid doesn't show the currency format when it first load,
the RadGrid only show the correct currency format after Column Grouping (Ajax).

Anyway to show the correct currency format during the RadGrid first load?

Thanks!
George


<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="false"
            DataSourceID="SqlDataSource1" ShowGroupPanel="True" Font-Size="3pt" Width="950px" Height="600px">
            <ExportSettings FileName="ExportToExcel">
            </ExportSettings>
            <ClientSettings AllowColumnsReorder="false" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                <Scrolling AllowScroll="True" UseStaticHeaders="false" />
                <Resizing AllowColumnResize="false" AllowRowResize="false" ResizeGridOnColumnResize="false"
                    ClipCellContentOnResize="False" EnableRealTimeResize="True" AllowResizeToFit="True" />
            </ClientSettings>
            <MasterTableView DataSourceID="SqlDataSource1">
                <CommandItemSettings ShowRefreshButton="false" ShowExportToCsvButton="True" ShowExportToExcelButton="True" ShowExportToPdfButton="True" ShowExportToWordButton="True" />
                <Columns>
                    <telerik:GridHyperLinkColumn UniqueName="Link" DataNavigateUrlFields="MasterID" DataNavigateUrlFormatString="JavaScript:openwindow('{0}');" Text ="View"
                    </telerik:GridHyperLinkColumn>
                </Columns>
 
            </MasterTableView>
        </telerik:RadGrid>


Code Behind:
Private Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem AndAlso e.Item.ItemIndex = 0 Then
        Dim dataItem As GridDataItem = TryCast(e.Item, GridDataItem)
        For Each col As GridColumn In dataItem.OwnerTableView.RenderColumns
            Dim numCol As GridNumericColumn = TryCast(col, GridNumericColumn)
            If numCol IsNot Nothing Then
                numCol.DataFormatString = "{0:C2}"
                numCol.ItemStyle.HorizontalAlign = HorizontalAlign.Right
 
            End If
        Next
    End If
 
End Sub



Konstantin Dikov
Telerik team
 answered on 04 Sep 2014
1 answer
76 views
We have localized our RadEditor for a French client, but they noted that the Bold (B) and Underline (U) icons should be G and S in French environments.
Do we have to create our own G and S images and override the background-image styles using CSS, or do you have another recommendation?

--Tom
Ianko
Telerik team
 answered on 04 Sep 2014
4 answers
199 views
How to draw horizontal line, just like dashed or dotted.
Danail Vasilev
Telerik team
 answered on 04 Sep 2014
1 answer
137 views
i have a plain asp radio button in Rad Grid and Checked property is set as "true" in aspx.

i am not changing the radio button selection neither code behind nor java script.

when i bind data to grid in page load then radio button is appearing as selected but after re-bind data through Ajax manager call then this radio button is getting un-selected.

i have a asp check box also like radio button but its not un-selected. but what went wrong with radio button alone?

does any one came across this issue.

Appreciate your help.

Eyup
Telerik team
 answered on 04 Sep 2014
1 answer
163 views
Hi All,

I am getting a javascript error from the telerik script manager. It does not happen all the time and seems to happen in different places in the code (there are no set steps I can repeat to generate it).

The error is 12031, I can't seem to find anything helpful in google and I was just wondering if anyone has seen this before and knows where to look to track it down.

Dan.
Viktor Tachev
Telerik team
 answered on 04 Sep 2014
1 answer
222 views
Hi,

Is it possible to achieve bellow functionality using telerik autocomplete textbox?

User can copy email from outlook and paste in Telerik’s Auto Complete textbox.

1.       On paste event, verify every email id from back end tables.
            a.       If no matching entries are found then mark that value as red.
            b.      If multiple entries are found then turn it to blue so that when user clicks on it show a dropdown with matching entries so that user can select desired value from it.
2.       When user selects Send Message validate if Auto Complete box has all the resolved names, if not prompt the user that about it and give option that emails will be sent to only resolved entries. How to separate resolved names from unresolved names (from client side)?

Notes: We have table, which stores all email Id.

Thank You

Zakir
Nencho
Telerik team
 answered on 04 Sep 2014
1 answer
256 views
Is it possible to achieve bellow functionality?

User can copy email from outlook and paste in Telerik’s Auto Complete textbox.

1.       On paste event, verify every email id from back end tables.
            a.       If no matching entries are found then mark that value as red.
            b.      If multiple entries are found then turn it to blue so that when user clicks on it show a dropdown with matching entries so that user can select desired value from it.
2.       When user selects Send Message validate if Auto Complete box has all the resolved names, if not prompt the user that about it and give option that emails will be sent to only resolved entries. How to separate resolved names from unresolved names (from client side)?

Notes: We have table, which stores all email Id.
Nencho
Telerik team
 answered on 04 Sep 2014
1 answer
126 views
I have a radgrid in which I am using template columns. 

I am selecting radgrid row and cell on clicking a row. But when i click on the textbox in templatecolumn, the row is getting selected but cell is not getting selected. Can you please help me out in selecting row and also the cell when I click on the textbox in template column?

Thanks,
Mohan.
Radoslav
Telerik team
 answered on 04 Sep 2014
1 answer
139 views
I have a radgrid in which I am using template columns. 

I am selecting radgrid row and cell on clicking a row. But when i click on the textbox in templatecolumn, the row is getting selected but cell is not getting selected.

Can you please help me out in selecting both row and also the cell when I click on the textbox in template column?

Thanks,
Mohan.
Radoslav
Telerik team
 answered on 04 Sep 2014
11 answers
180 views
Hi Telerik Team,

Greetings to You!

Can I bind Detail Template of RadTreeList runtime? I need to show DetailTemplate on selected row click and DetailTemplate content  may vary in Sync for each row.
If it is possible then please let me know how?.

Thanks!
Vasil
Telerik team
 answered on 04 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?