Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi,

While expanding the treeview node,the first child node should get selected by default.
Can anybody help me

Princy
Top achievements
Rank 2
 answered on 24 Aug 2011
4 answers
215 views
Hi,
I've a Checkbox, with a custom validator:
<asp:CheckBox ID="Datenschutz" runat="server" />
<asp:CustomValidator ClientValidationFunction="ValidateDatenschutz" runat="server" ID="DatenschutzValidator" CssClass="..." ErrorMessage="<br/>..." />
The RadButton is here:
<telerik:RadButton ID="Submit" runat="server" Text="Speichern" OnClick="OnSubmitClick" CausesValidation="true" />

The JavaScript validation looks like this:
function ValidateDatenschutz(sender, eventArgs) {
    eventArgs.IsValid = document.all[datenschutzCheckboxId].checked;
}
(datenschutzCheckboxId is defined)
Clicking on the button in IE calls the validation function. Firefox, however, does not.

Is this a known problem, or did I make a mistake?

Thank you
René
René Hézser
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
82 views
I have a radgrid that has 10 columns.  What I need to do is check a name in column 8 and if the name field is blank I want to turn off the link buttons that sit in columns 9 and 10.  Here is what I have that I got off a telerik help site but I cannot get at the names to work to turn off the linkbuttons.  However below does not thourhg an error but when I try to assign the text nothing happens??


 Protected Sub myGridPositions_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myGridPositions.ItemDataBound
        For Each item As GridDataItem In myGridPositions.Items
            Dim name As TableCell = DirectCast(item("strFullName"), TableCell)
            If name.Text = Nothing Then
                turn off link buttons in columns 9, 10.
            End If
        Next
    End Sub

Princy
Top achievements
Rank 2
 answered on 24 Aug 2011
2 answers
182 views
Hi,
I am using Vista Skin for whole RadGrid and its working fine but now as per client requirement I have to change X image from GroupItems in GroupPanel. Instead of default image i have to choose a custom image. How to do it? I did some work around but as its taking Default skin i am not able to do anything.
#FYK : I want vista skin for rest of the grid.

Images are attached for better understanding (Current.jpg and I_Want.png)

Thanks.....
Rajneesh
Top achievements
Rank 2
 answered on 24 Aug 2011
1 answer
98 views
Hello,

Can i enter only one word in radtextbox?
Princy
Top achievements
Rank 2
 answered on 24 Aug 2011
5 answers
176 views
Hi,

I'm using the update feature of the grid. during the update, I use the

OnItemDataBoundHander(object sender, GridItemEventArgs e)

to prepopulate the RadComboBox as instructed within the examples. the following contains the C# code 

 

if (e.Item.IsInEditMode)  

GridEditableItem item = (GridEditableItem)e.Item;  

if (!(e.Item is IGridInsertItem))  

//this area is for update  

 

using (dl = new WellVentDataLayer())  

//For the Area section  

 

RadComboBox combo = (RadComboBox)item.FindControl("RadComboBoxArea");  

RadComboBoxItem selectedItem = new RadComboBoxItem(); 

selectedItem.Text = ((DataRowView)e.Item.DataItem)["AreaName"].ToString();  

combo.Items.Add(selectedItem);

selectedItem.DataBind();

}

}

}

and the following aspx code 

 

<telerik:GridTemplateColumn UniqueName="AreaName" HeaderText="Area" 

SortExpression="AreaName" ItemStyle-Width="150px" DataField="_AreaName"  

AndCurrentFilterFunction="Contains">  

 

<FooterTemplate

Template footer 

</FooterTemplate>  

 

<FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />  

 

<ItemTemplate

<%

#DataBinder.Eval(Container.DataItem, "_AreaName")%>  

</ItemTemplate>  

 

<EditItemTemplate>  

 

<telerik:RadComboBox runat="server" ID="RadComboBoxArea" EnableLoadOnDemand="True" DataTextField="AreaName" OnItemsRequested="RadComboBoxArea_ItemsRequested" DataValueField="ID" AutoPostBack="true" HighlightTemplatedItems="true" Height="140px" Width="100px" DropDownWidth="200px"  

 

OnSelectedIndexChanged="ComboBox1_OnSelectedIndexChangedHandler"> 

<ItemTemplate> 

<%# DataBinder.Eval(Container, "Text")%>  

</ItemTemplate>  

 

</telerik:RadComboBox>  

 

</EditItemTemplate>  

 

<HeaderStyle Width="100px" />  

 

<ItemStyle Width="100px"></ItemStyle>  

 

</telerik:GridTemplateColumn>

  

 

 

the code gave the following error on the row

Unable to cast object of type 'GHG_MCA.WellVentEvents' to type 'System.Data.DataRowView'.
 

selectedItem.Text = ((DataRowView)e.Item.DataItem)["AreaName"].ToString();  

 

thanks,
Minh Bui

Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Aug 2011
2 answers
1.3K+ views
Is it possible to alter the time picker times?  I'd like to have it selectable in 15 minute intervals rather than 1 hour.

Ryan
Graham
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
259 views
I have a grid with a column that is bound to a text field. This text is usually a number, but is sometimes a "-" character.

When exporting to Excel, I would like for the numbers to display with a single digit after the decimal point. So integers are displayed as #.0... (100.0 for example). I have the following style declaration:

Dim pctStyle As New Telerik.Web.UI.GridExcelBuilder.StyleElement("PctStyle")
pctStyle.AlignmentElement.HorizontalAlignment = GridExcelBuilder.HorizontalAlignmentType.Right
pctStyle.NumberFormat.FormatType = GridExcelBuilder.NumberFormatType.GeneralNumber
pctStyle.NumberFormat.Attributes("ss:Format") = "0.0"


It doesn't seem to work. The exported Excel file always shows 100 as 100, not 100.0.

I am wondering if this is because the underlying grid column data field is text? Is there any way to format the numeric output of a grid column that isn't bound to a numeric field?
Princy
Top achievements
Rank 2
 answered on 24 Aug 2011
1 answer
260 views
Hi,

I want to create a RadComboBox using javascript and add it to the div. Is it possible to create it dynamically at client site?
 
CODE
 if (columnName.toUpperCase() == "ORDER") {
                //Create ComboBox
                var radComboBox = new RadComboBox();
                radComboBox.id = "RadCBox" + ID;
                AddItemsToComboBox(radComboBox, orders);


               var divTag = document.getElementById("dynID");
               divTag.appendChild(radComboBox);
                
            }


Thanks,
Prava
Princy
Top achievements
Rank 2
 answered on 24 Aug 2011
1 answer
126 views
Is there any way to disable the SelectAll functionality of a SelectColumn checkbox in the header of a NESTED Table View.

GridHeaderItem item = RadGrid1.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;

does it for the main grid but how do I access the Header in the Details Table?

Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?