Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
Hello,

I am not able to find RadBarCode control in telerik dll.(version 2012.1.301.40).

Thanks,
Jayesh Goyani
Martin
Telerik team
 answered on 24 May 2012
1 answer
169 views
Can someone tell me why this code doesn't work? Checked the demos and documentation but didn't find an answer and the forum related to this topic are very old.

<telerik:RadRotator ID="rotator1" runat="server" Width="800px" Height="150px" SlideShowAnimation-Type="Fade" SlideShowAnimation-Duration="500" ItemHeight="63" ItemWidth="125" RotatorType="Buttons" OnClientItemShown="OnClientItemShown"></telerik:RadRotator>
var item = new Telerik.Web.UI.RadRotatorItem();
item.Controls.Add(new LiteralControl("<div>1</div>"));
rotator1.Items.Add(item);
Princy
Top achievements
Rank 2
 answered on 24 May 2012
1 answer
397 views

How I can get "Name" Column value on DeleteCommand,

aspx:
<telerik:RadGrid ID="SecurityGrid" runat="server" OnNeedDataSource="SecurityGrid_NeedDataSource"
            OnItemCommand="SecurityGrid_ItemCommand" OnPreRender="SecurityGrid_PreRender"
            OnDeleteCommand="UserGrid_DeleteCommand" OnUpdateCommand="SecurityGrid_UpdateCommand"
            OnInsertCommand="SecurityGrid_InsertCommand" AutoGenerateColumns="False" OnItemCreated="SecurityGrid_ItemCreated">
            <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" EditMode="InPlace" TableLayout="Auto"
                Width="100%">
                <Columns>
                    <telerik:GridEditCommandColumn HeaderStyle-Width="2%" UniqueName="EditCommandColumn"
                        ButtonType="ImageButton" EditImageUrl="../Images/grid_edit.png">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                        CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px" HeaderStyle-Width="2%" />
                    <telerik:GridTemplateColumn DataField="Id" UniqueName="Id" Visible="false">
                        <InsertItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Bind("Id") %>' ReadOnly="true"
                                Enabled="false" />
                        </InsertItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Eval("Id") %>' ReadOnly="true" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Name" DataField="Name">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtName" Width="120px" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFName" runat="server" ErrorMessage="*" CssClass="validator"
                                ControlToValidate="txtName"></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvName" CssClass="validator" OnServerValidate="cvName_ServerValidate"
                                Display="Dynamic" runat="server" ControlToValidate="txtName"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Level" DataField="Level">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox ID="txtLevel" Width="50px" runat="server" DbValue='<%# DataBinder.Eval(Container.DataItem, "Level") %>'>
                                <NumberFormat DecimalDigits="0" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="RFLevel" runat="server" ErrorMessage="*" CssClass="validator"
                                ControlToValidate="txtLevel"></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvLevel" CssClass="validator" OnServerValidate="cvLevel_ServerValidate"
                                Display="Dynamic" runat="server" ControlToValidate="txtLevel"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblLevel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Level") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <CommandItemTemplate>
                    <div style="width: 100%">
                        <div style="width: 10%; margin-left: 12px; float: left">
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert">
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/UI/Images/add.png" />
                                <asp:Label ID="lblQuickAdd" runat="server" /></asp:LinkButton>&nbsp;&nbsp;
                        </div>
                    </div>
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnColumnHidden="onColumnHidden" OnRowDblClick="RowDblClick" />
            </ClientSettings>
        </telerik:RadGrid>


.cs


  protected void UserGrid_DeleteCommand(object sender, GridCommandEventArgs e)
        {
            string securityLevelId = ((GridDataItem) e.Item).GetDataKeyValue("Id").ToString();
            Session["ID"] = securityLevelId;

            bool hasUser = Master.Organization.SecurityLevelHasUser(Convert.ToInt16(securityLevelId));
            bool hasDocument = Master.Organization.SecurityLevelHasDocument(Convert.ToInt16(securityLevelId));

            LogConfig.SaveInFile(Level.Debug, "Show Deleted popup", null, typeof (SecurityLevel).FullName,
                                 Master.StackTrace.GetFrame(1).GetMethod().Name);


            GridDataItem dataItem = e.Item as GridDataItem;
            string contactName = dataItem["Name"].Text;-->
THIS IS NULL
          

        
        }
Shinu
Top achievements
Rank 2
 answered on 24 May 2012
1 answer
93 views
I have inserted an image to telerik editor. And by default, it is setting width and height of image , it is setting those values as attribute not as style="width:__px;height:__px".  And while inserting any image with width and height set it inserts image properly ,, but image tag is created like this.

<img src="proper_path_to_image" style="width: NewWidth px; height: NewHeight px; " width="OldWidth" height="OldHeight" align="">

Here is the screencast link : http://screencast.com/t/HARGXm2GtrW3 
Arindam
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
279 views
Hello,

I am using ClientSide setting to access the value of the RadNumeric Textbox.

If the value is incorrect(according to the business rules), I want to clear the value in Textbox and focus on the textbox.

The value is not getting cleared for me. How to do this ?

Here is my Code

 function ValueChanged(sender, args) {

alert("Incorrect Value");
sender.focus();
//Clear the Textbox Value.
}
Shinu
Top achievements
Rank 2
 answered on 24 May 2012
1 answer
225 views
Hello,

I dont want user to enter more than 2 digits after decimal.

How can I do this in Rad NUmeric textbox ?

TIA
Shinu
Top achievements
Rank 2
 answered on 24 May 2012
4 answers
182 views
Hi, is it posible to change the dotted line on the org chart, with the solid line and has arrow on the end of the line,
also, for the export to PDF feature, i search on the other thread, it said that it can be achived using PDFForge, how is the approach ?

i checked on the PDFForge website, it is only provide an exe file.


Thanks,
Ricky
Ricky
Top achievements
Rank 1
 answered on 24 May 2012
6 answers
224 views

Hi

I have tried for hours and read a thousand posts on this but cant master it

I have cascading RadComboBox controls inside a RadGrid and found the code below in a forum that works perfectly

The problem is that when I place the RadGrid inside a FormView control it no longer works, I get an error that says Cannot find a cell bound to column name 'HSG'

If anyone could tell me how to reference the controls inside of a formview I would be eternally grateful :)

Protected Sub RadComboBox1_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)

        Dim rdcbx As RadComboBox = CType(sender, RadComboBox)
        Dim editedItem As GridEditableItem = CType(rdcbx.NamingContainer, GridEditableItem)

        Dim RadComboBox1 As RadComboBox = CType(CType(editedItem, GridEditableItem) ("HSG").FindControl("RadComboBox1"), RadComboBox)
Dim RadComboBox2 As RadComboBox = CType(editedItem("HSG").FindControl("RadComboBox2"), RadComboBox)

        RadComboBox2.Items.Clear()
        RadComboBox2.Items.Insert(0, New RadComboBoxItem("", String.Empty))
        Me.ObjectDataSource1.SelectParameters("KeyID").DefaultValue = RadComboBox1.SelectedValue.ToString
        RadComboBox2.DataBind()

    End Sub
Dwight
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
65 views
If the scale xaxis is large, the bars become thinner. There thickens as the width of the bars?
Paulo
Top achievements
Rank 1
 answered on 23 May 2012
2 answers
87 views
When reviewing the "Keyboard Support" demo for the treelist I noticed that the selection made using the keyboard doesn't follow later selections made by the mouse.

To test this:
  1. Navigate to the demo and select a row (item) with your MOUSE. 
  2. Arrow up or down to a different row with the KEYBOARD.
  3. With this new selection made, use your MOUSE to select a different row.
  4. Navigate up or down using your KEYBOARD.

What I would expect is that final keyboard nav would start from my latest mouse click however my mouse click is ignored and, Instead, the keyboard nav picks up from the last row navigated to via the keyboard (where it left off).

It would appear that the selection made by the mouse and keyboard are independent of one another? How should I keep these two methods of selection in sync so that the keyboard follows the latest selection (regardless of what created the selection)?

Hunter
Top achievements
Rank 1
 answered on 23 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?