Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
271 views
Hi All -- I've got a RadGrid with a Button on it that is supposed to launch a RadWindow using radopen, but doesn't seem to be doing the trick. I've followed some of the tutorials on the site, but just having absolutely no luck. Here's what I've got so far:

.ASPX
<script type="text/javascript">
        function openWin() {
            radopen(null, "RadWindow1");
        }
    </script>

Code Behind
Private Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
        If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then
            Dim dataItem As Telerik.Web.UI.GridDataItem = DirectCast(e.Item, Telerik.Web.UI.GridDataItem)
            Dim btnImage As Button = DirectCast(dataItem("column2").Controls(0), Button)
            btnImage.Attributes.Add("OnClick", "openWin(); return false;")
        End If
End Sub
Shinu
Top achievements
Rank 2
 answered on 14 May 2012
1 answer
370 views
Hi,

I have a grid with 4 coulmns as shown below, i want to make the id column with data 0 and 888 empty.
How can i achieve this ? Please suggest


Id

Desc

Stats

Action

0

asas

T

A

11

Public

T

A

 12  asdgf  T A
 888  ghjk;  T  A


Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 14 May 2012
0 answers
117 views
Dear Support Team,
I have a problem, wherein I have a RadDatePicker control inside an Ajax Modal Popup which is called inside Ajax UpdatePanel.
Problem is, it works fine in every browser, not in chrome.
In chrome, if i try to select an date from the calendar, it does not populate in the textbox after selection.
Please find the project attached.
Have been looking for a solution since a long time.
Will appreciate a solution from your side.

The file is uploaded at https://rapidshare.com/files/2657985612/TestProject.zip
Manish
Top achievements
Rank 1
 asked on 13 May 2012
1 answer
73 views

I would like to click on my grid client select column, hit the edit button, and retain the checked/selected state of the item after postback, but for some reason the SelectItems count of the grid is 0 after databinding.

<Rad:RadGrid ID="testgrid"
OnNeedDataSource="testgrid_NeedDataSource"
ClientSettings-Selecting-AllowRowSelect="true"
 runat="server">
    <MasterTableView CommandItemDisplay="Top" EditMode="InPlace">
        <CommandItemTemplate>
            <Asp:LinkButton ID="btnEditSelected" runat="server"
                CommandName="EditSelected"
                EnableViewState="true"
                CausesValidation="false"
                Visible="true"
                Text="Edit"
            />
        </CommandItemTemplate>
        <Columns>
            <Rad:GridClientSelectColumn UniqueName="testselect">
            </Rad:GridClientSelectColumn>
        </Columns>
    </MasterTableView>
</Rad:RadGrid>
 
 
    protected void testgrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        IList<string> items = new List<string>();
        items.Add("test");
        testgrid.DataSource = items;
    }
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
1 answer
333 views
I want to find  <telerik:GridBoundColumn DataField="ID" Visible="false" /> in javascript function.

please suggest for it.
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
1 answer
111 views
I want to use footer but i dont want to any  grid events .. How can i access that 


function (){

sum += double.Parse((dataItem[templateColumnName].FindControl("ctl00") as RadNumericTextBox).Value.ToString()); 
this work perfect for dataitem 

 (footer[templateColumnName].FindControl("ctl00") as RadNumericTextBox).Value = Double.Parse(sum.ToString());
}
it does not recongnize footer in current context :(



Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
1 answer
152 views
We have been using latest Telerik Ajax controls. As seen in Telerik Demo I am trying to use "InsertCaption" and "EditFormSettings" of EditForm. However it does not display text.I tried code behind to set text however that is also not working. 

Can anyone help.
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
1 answer
119 views
i tried to make a direct using an ImageButtonColumn but i was unable to put it together using this link.  http://www.telerik.com/community/forums/aspnet-ajax/grid/select-row-through-telerik-linkbutton-and-redirect.aspx

How would I make a redirect using the imagebuttoncolumn?

The code i'm using is below:

                        <telerik:GridButtonColumn DataType="System.String" FooterText="Vallet" DataTextFormatString="Vallet {0}"
                        ButtonType="ImageButton" UniqueName="valletimagebutton" HeaderText="Vallet" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                        CommandName="CarLot_RadGrid_Redirect" DataTextField="VIN" ImageUrl="images/valletcarlot.jpg">
                    </telerik:GridButtonColumn>.
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
5 answers
614 views

Hello,

I have a 'record update' feature enabled grid (2012 Q1).
I am using <FormTemplate> for editing/updating the data on the grid.
In the FormTemplate, I have a RadioButtonList named 'rdGrade' which is bound to the 'SchoolGrade' field in my database. The code for this RadioButtonList is as shown below.

<asp:RadioButtonList ID="rdGrade" runat="server"
SelectedValue='<%# Bind("SchoolGrade") %>'
DataSource='<%# (new string[] { "4", "5", "6" }) %>'
AppendDataBoundItems="True"
RepeatDirection="Horizontal">
</asp:RadioButtonList>

Editing the SchoolGrade field with this RadioButtonList was fine. No errors.
But when I try to Add a new record by clicking the "+ Add new record" button, I get an error. So I had to add some extra code to the code behind page to set the default selected value of this RadioButtonList and the code I added was:

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
     {
            if (e.CommandName == RadGrid.InitInsertCommandName)
            {
                //Add new" button clicked
                e.Canceled = true;
                //Prepare an IDictionary with the predefined values
                System.Collections.Specialized.ListDictionary newValues = new
                System.Collections.Specialized.ListDictionary();
                newValues["SchoolGrade"] = 5;
                //Insert the item and rebind
                e.Item.OwnerTableView.InsertItem(newValues);
            }
        }

The code above sets the default selected value of the radio button list as 5.
My question is how do I change the code line

newValues["SchoolGrade"] = 5;

 

in order to initially UNCHECK the RadioButtonList rdGrade when a user clicks the 'Add new record' button on the grid?

Thank you.


Jayesh Goyani
Top achievements
Rank 2
 answered on 13 May 2012
7 answers
207 views
Is there a way to handle a client side and/or server side event when a node is selected using the keyboard arrow keys?

Thanks,
Alex
Fabrizio
Top achievements
Rank 1
 answered on 12 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?