Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
93 views
How to maintain design in the Radwindow, with out using naviagation URL.
I am using Default.aspx page i want to maintain table structure in the Radwindow with out creating another page and calling that page in the navigate URL.

please help me.
Svetlina Anati
Telerik team
 answered on 10 Jun 2009
1 answer
105 views

Hi,

I am trying to integrate a treeview and grid by dragging nodes to the grid to create records.  I have code working where I can drag a treenode to a grid and fire the code behind to insert a new record etc...

    Protected Sub ApplicationsTreeView_OnNodeDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeDragDropEventArgs) Handles ApplicationsTreeView.NodeDrop  
 
        If e.HtmlElementID = (ProjectApplicationsGrid.ClientID & "_GridData") Then 
 
            Dim InsertRecordDataSource As SqlDataSource = ProjectApplicationsDataSource  
            Dim Project_ID As Integer = CInt(Request.QueryString("Project_ID"))  
            Dim Application_ID As Integer = CInt(e.SourceDragNode.Value)  
 
            InsertRecordDataSource.InsertParameters("Project_ID").DefaultValue = Project_ID  
            InsertRecordDataSource.InsertParameters("Application_ID").DefaultValue = Application_ID  
            ProjectApplicationsDataSource.Insert()  
            ProjectApplicationsGrid.Rebind()  
 
        End If 
 

The following function cancels the nodedrop postback if the node is dropped onto a treeview node.  But the postback also doesn't fire if the node is dropped onto a highlighted grid row.  I.e.  The code behind is only fired if I drag the treeview node onto a part of the grid that doesn't contain any rows.

        function ApplicationsTreeView_ClientNodeDropping(sender, args) {  
 
            var dest = args.get_destNode();  
            alert(dest);  
            if (dest==null) { args.set_cancel(false); return; } else { args.set_cancel(true); return; } ;  
 
        } 

Hope you can help.

Thanks
Jase
Veselin Vasilev
Telerik team
 answered on 10 Jun 2009
3 answers
132 views
We are using a custom skin for all our RadGrids with the following line in a App_Themes .skin file:

<rad:RadGrid runat="server" Skin="ourskin" EnableEmbeddedSkins="false"  ImagesPath="~/Skins/Grid/" />

However, the pager contains a ComboBox. This ComboBox is wrongly styled, since it tries to use "ourskin" for ComboBox as well, but we are using Web20 for RadComboBox:

<rad:RadComboBox runat="server" Skin="Web20" />

What is the best solution?

Dimo
Telerik team
 answered on 10 Jun 2009
1 answer
112 views
We use the RAD Editor for AJAX, and we are getting a javascript error 'undefined' is null or not an object in IE8.  I have included the supposed location of the error below and some surrounding code, which is coming from ScriptResource.axd.  The script is failing at the line "_71e=_71e.replace(/<body\s*\/>/i,"<body></body>");".  The version of our Telerik.Web.UI.dll is 2008.02.1001.35.  This error doesn't seem to occur in IE7 or in Firefox.  Any clues?  Would a version update take care of this problem?  It doesn't seem to be causing any issues, but is an annoyance for one of our clients.

var _71e; 
if(this.get_enableXhtmlFilter()){ 
try{ 
_71e=this._convertToXhtmlFilter.getHtmlContent(_71b); 
} 
catch(exc){ 
alert("Error while executing filter XHTML - "+exc.toString()); 
} 
}else{ 
_71e=$telerik.getOuterHtml(_71b); 
} 
_71e=_71e.replace(/<body\s*\/>/i,"<body></body>"); 
for(var i=0;i<this._filters.length;i++){ 
var _71d=this._filters[i]; 
if((!_71d.get_isDom())&&(false!=_71d.get_enabled())&&_71d.getHtmlContent){ 
try{ 
_71e=_71d.getHtmlContent(_71e); 
} 
 


Lini
Telerik team
 answered on 10 Jun 2009
1 answer
103 views
Hi,
I have a radgrid in an radajaxpanel and in the grids formtemplate I have an editor from XStandard.com (active-x editor).
If I remove the ajaxpanel the update works and I get the text from the editor.
But if I use the ajaxpanel the value is allways blank!
What can be the reason for that?

Regards,
Mattias

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="radAjaxLoadingPanel"> 
     <telerik:RadGrid ID="radGridMenus" runat="server" AllowPaging="false" CssClass="radgrid" 
... 
 
     <EditFormSettings EditFormType="Template"> 
            <FormTemplate> 
                 <xs:XHTMLEditor ID="xhtmlEditorPreamble" runat="server" OnLoad="Editor_Load" /> 
... 
 

protected void radGridMenus_UpdateCommand(object source, GridCommandEventArgs e) 
{ 
     GridEditFormItem gridItem = e.Item as GridEditFormItem; 
... 
     content.Preamble = ((XStandard.WebForms.XHTMLEditor)gridItem.FindControl("xhtmlEditorPreamble")).Value.Trim();
...
} 


Sebastian
Telerik team
 answered on 10 Jun 2009
1 answer
192 views
Hi
I am using a GridDateTimeColumn and would like to be able to set the calander properties, namely the ShowRowHeaders property to false.

I have tried setting it in the ItemCreated & ItemDataBound events of the grid, but to no avail ... The code is below:

    <telerik:RadGrid ID="MyRadGrid" runat="server" AllowPaging="True" AllowMultiRowSelection="true" 
        AutoGenerateColumns="False" AllowAutomaticDeletes="True" AllowMultiRowEdit="true" 
        AllowAutomaticInserts="False" AllowAutomaticUpdates="False" GridLines="None" 
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="false"> 
        <ClientSettings Selecting-AllowRowSelect="true"> 
        </ClientSettings> 
        <MasterTableView DataKeyNames="MyId" EditMode="EditForms" CommandItemDisplay="Top"> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
 
            <Columns> 
                
                <telerik:GridDateTimeColumn DataField="date" HeaderText="date" UniqueName="date" 
                    PickerType="DateTimePicker" > 
                     
                </telerik:GridDateTimeColumn> 
                 
            </Columns> 
        </MasterTableView> 
        <FilterMenu EnableTheming="True"> 
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 


 void MyRadGrid_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        { 
            GridEditableItem item = e.Item as GridEditableItem; 
             
            RadDateTimePicker date = item["date"].Controls[0] as RadDateTimePicker; 
            if (date != null) 
                date.Calendar.ShowRowHeaders = false; 
        } 
I can confirm that the above code is excuted, however the changes are not displayed. The radgrid is set to update itself in the radajax manager.


Shinu
Top achievements
Rank 2
 answered on 10 Jun 2009
2 answers
186 views
hello,,
The radgrid indent is not working..
Plz help me
Thanks
Tervel
Telerik team
 answered on 10 Jun 2009
2 answers
241 views
I have a RadGrid that has a GridDateTimeColumn in it that has the PickerType set to TimePicker so that the user can only select the time portion.  I need to be able to set the Date portion programaticlly so that when I do the insert/edit to the DB the date is set properly.  I'm using the Automatic Datasource Operations of the grid.

I'm sure there is a way to do this but I can't figure it out.  I've tried accessing the value of the column in the _ItemCommand event but can't get to that level.

Thanks
Curtis
Nikolay Rusev
Telerik team
 answered on 10 Jun 2009
1 answer
359 views
Hi folks !

Iam using the  RAD GRID from ASP.NET AJAX UI Controls.

I want to have an up/down arrow to be marked on to my grid header so that I will be availabe to sort the column of the grid.

Iam using GRAY skin for my RAD GRID.

Please help me sort out my problem.
Princy
Top achievements
Rank 2
 answered on 10 Jun 2009
1 answer
122 views
I got a radcombobox and I use autocomplete features it works for single item well but when I set Autocompleteseperator property it didnt work. radcombobox and the server code which I used for autocomplete features given below all help will be appreciated.

 

<telerik:RadComboBox ID="cmbUnvan" Runat="server" AllowCustomText="True"   
AutoPostBack="True" EnableLoadOnDemand="True"   
onitemsrequested="cmbUnvan_ItemsRequested" Height="73px" Width="230px"   
AutoCompleteSeparator=";" MarkFirstMatch="True">   
<CollapseAnimation Duration="200" Type="OutQuint" />   
</telerik:RadComboBox> 
 
 
protected void cmbUnvan_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)    
{  
 
RadComboBox combo = (RadComboBox)o;   
combo.Items.Clear();  
SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Personelcon"].ConnectionString;   
string text = e.Text;   
string sql = "SELECT * from Unvan WHERE Uname LIKE '" + text.Replace("'", "''") + "%'";   
SqlCommand selectCommand = new SqlCommand(sql, connection);   
SqlDataAdapter adapter = new SqlDataAdapter(selectCommand);   
DataTable dt = new DataTable();   
adapter.Fill(dt);  
foreach (DataRow row in dt.Rows)   
{  
RadComboBoxItem item = new RadComboBoxItem(row["Uname"].ToString());   
item.Value = row["Uid"].ToString();   
//item.Text = Convert.ToString(row["Uname"]);   
combo.Items.Add(item);  
}  
} 
Shinu
Top achievements
Rank 2
 answered on 10 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?