Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
hello,

my grid has a GridDropDownList column. using the embedded skins it works perfectly. cool.

however, when i took the Outlook2007 skin files and began tweaking my own skin, somehow the GridDropDownList stopped working -- its text is invisible, and it says "select" to the right of it.
 
odd because i only edited grid stuff related to fonts & colors, etc.

i am only linking in my custom grid's CSS file. does a custom skin also need to edit/link to another CSS file?


thanks!
matt
matt
Top achievements
Rank 1
 answered on 04 Sep 2008
3 answers
122 views
Im using a RadCalendar control and when I start typing, and after typing the first figit, the rest of the date is "auto completed".  Although I can type over it, as usual, the date that is "auto filled" is not really something I want.  How can I enable a user to just type the whole date with no auto filling of parts of the date ?

Missing User
 answered on 04 Sep 2008
1 answer
212 views

Hi there,

I have the same problem as already posted with my toolbar.
http://www.telerik.com/community/forums/thread/b311D-bekmgb.aspx
I want a button (logout) and a dropdown (language) to flow to the right side and the other components to the left.
I did, what's posted, and it worked fine as long as I did not add separators to my toolbar. But I need some separators in there.
My actual style sheet looks like that:

.RadToolBar_Default     
{     
    width:100%;     
}     
    
.RadToolBar_Default .rtbOuter     
{     
    width:100%;     
}     
    
.RadToolBar_Default_Horizontal .rtbItem     
{     
    padding-right: 1px;     
    float:left;     
}     
    
* html .RadToolBar_Default .rtbItem      
{      
    margin-bottom:2px;      
}      
       
.RadToolBar_Default_Horizontal .rightAlignedWrapper       
{       
    float:right;     
}     
    
.RadToolBarDropDown_Default .rtbSeparator     
{     
    border: 0;     
    line-height: 0;     
    float:left;     
}     
    
.RadToolBarDropDown_Default .rtbSeparator .rtbText     
{     
    display: none;     
} 

I have no idea what the matter is, but I am not a CSS-guru.
I have to say, that I didn't already test, what happens, when I insert the required language dropdown.I did this only with the logout button. So maybe it would get worse.

There is an other problem too: I want to wrap this toolbar in a masterpage. There are two buttons (navigate back and forward). Those buttons are displayed all the time. (Same for language dropdown and logout button.) But the one that creates the content page, adds its required buttons after those static buttons. So that would cause, those buttons are after language and logout. I think, I have to work around with some life time cycle events as prerender. But maybe you have an idea, to do this with css.

Thanks for help
Greets Simon

Simon
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
75 views
Hi :

I have a question about using classic R.A.D 2007 Q2 in Visual Studio 2008.

Can I use R.A.D 2007 Q2 in Visual Studio 2008 without potential questions?

thanks in advance
Daniel
Telerik team
 answered on 04 Sep 2008
1 answer
137 views
Hi,

my website is xhtml 1.0 strict compliant, but the editor produces invalid xhtml.
For example:
I type a text like "text" in the editor window. Afterwards I select the text and click auf "center". The produced xhtml code:
<p align="center">text</p>
But in xhtml 1.0 strict is the attribute align not allowed. The correct xhtml 1.0 strict code:
<p style="text-align: center">text</p>

How can I solve this problem?

Thomas
Rumen
Telerik team
 answered on 04 Sep 2008
3 answers
231 views
Hello,

Is there a way to link a GridClientSelectColumn to a DataSet?  I read through the documentation and the DataField property is not included, but I would like to be able to bind data with the column if possible.

I would use a GridCheckBoxColumn, however our users would like to be able to see which columns are selected for visualization, so I chose the GridClientSelectColumn.

If it is not possible, is there a way to use the GridCheckBoxColumn, but perform the same functionality as the GridClientSelectColumn?

Thank you,
Mike
Mike
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
65 views
Hi

Can you have a look at http://daresoft.no-ip.co.uk/dare-it.co.uk to see why it is not displaying correctly in FF, Opera and Safari ?

It displays correctly in IE7.

Kind Regards

David
Sophy
Telerik team
 answered on 04 Sep 2008
2 answers
137 views
hello,

there is my xml file that i am using for RadEditor to show the tools.
Please tell me that it is fine or i am doing any mistake.


<root>
    
    <tools name="MainToolbar" dockable="true" enabled="true">
        
        <tool name="PastePlainText" />
        <tool name="FindAndReplace" />
        <tool name="SelectAll" />
        <tool name="StripAll" />
        <tool name="AjaxSpellCheck" />
        <tool name="TemplateManager" />
        <tool name="TrackChangesDialog" />
        <tool name="Undo" />
        <tool name="Redo" />
        <tool name="Bold" />
        <tool name="Italic" />
        <tool name="UnderLine" />
        <tool name="InsertHorizontalRule" />
        <tool name="ApplyClass"/>
            
    </tools>

    <tools name="EnhancedEditToolbar" dockingZone="Bottom" dockable="true" enabled="true">
        <tool name="ToggleScreenMode" />
    </tools>

</root>


thanks
zeshan
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
111 views
Is there a method of somehow refreshing the radwindow to make it update it's RestrictionZoneID position after the user resizes their web-browser?
Georgi Tunev
Telerik team
 answered on 04 Sep 2008
1 answer
116 views
Hi

I have developed a UserControl I am using as an inserts form in the radgrid.
I have use one of your tutorials as template. My problem is when I press insert in the UserControl the I do not get any data transferred to the database and I will therefore not be able to see anything in the radgrid. My primary key gets updated both in the database and the radgrid. When I debug I got all the data with me until the AcceptChanges method in RadGrid_1_InsertCommand. Hope anyone can help me with this problem. I have enclosed the code below.
btw. Im using Visual Studio 2008 and .Net 3.5

Best regards

Torben Sandberg



 

using

System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using Telerik.Web.UI;
using WebApplicationProtoypeZenith;
using Telerik.QuickStart;

 

namespace WebApplicationProtoypeZenith
{
    
public partial class Admin : System.Web.UI.Page
    
{
        
private static DataTable GetDataTable(string queryString)
        {
            
String ConnString = ConfigurationManager.ConnectionStrings["SysnetDenmarkConnectionString"].ConnectionString;
            
SqlConnection MySqlConnection = new SqlConnection(ConnString);
            
SqlDataAdapter MySqlDataAdapter = new SqlDataAdapter();
            MySqlDataAdapter.SelectCommand =
new SqlCommand(queryString, MySqlConnection);
            
DataTable myDataTable = new DataTable();
            MySqlConnection.Open();
            
try
            {
                MySqlDataAdapter.Fill(myDataTable);
             }

            finally
            
{
                MySqlConnection.Close();
            }

            return myDataTable;
    }

    private DataTable Projects
    {
        
get
        
{
            
object obj = this.Session["Project"];
             
if ((!(obj == null)))
            {
                
return ((DataTable)(obj));
            }
            
DataTable myDataTable = new DataTable();
            myDataTable = GetDataTable(
"SELECT * FROM Project");
            
this.Session["Project"] = myDataTable;
            
return myDataTable;
        }
    }

    protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        
this.RadGrid1.DataSource = this.Projects;
        
this.Projects.PrimaryKey = new DataColumn[] { this.Projects.Columns["ProjectId"] };
    }
    
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
    {
        
GridEditableItem editedItem = e.Item as GridEditableItem;
        
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);

//Create new row in the DataSource
        
DataRow newRow = this.Projects.NewRow();

//Insert new values
        
Hashtable newValues = new Hashtable();
        newValues[
"ProjectName"] = (userControl.FindControl("RadTextBoxProjectName") as RadTextBox).Text;
        newValues[
"ProjectResume"] = (userControl.FindControl("RadEditor1") as RadEditor).Content;
        newValues[
"ProjectStart"] = (userControl.FindControl("RadDatePickerProjectStart") as RadDatePicker).SelectedDate;
        newValues[
"ProjectEnd"] = (userControl.FindControl("RadDatePickerProjectEnd") as RadDatePicker).SelectedDate;
        newValues[
"Responsible"] = (userControl.FindControl("RadTextBoxResponsible") as RadTextBox).Text;
        newValues[
"OrderdBy"] = (userControl.FindControl("RadTextBoxOrderdBy") as RadTextBox).Text;
        newValues[
"Contact"] = (userControl.FindControl("RadTextBoxContact") as RadTextBox).Text;

//make sure that unique primary key value is generated for the inserted row 
        
newValues["ProjectId"] = (int)this.Projects.Rows[this.Projects.Rows.Count - 1]["ProjectId"] + 1;
        
try
        
{
            
foreach (DictionaryEntry entry in newValues)
            {
                newRow[(
string)entry.Key] = entry.Value;
            }
        
this.Projects.Rows.Add(newRow);
        
this.Projects.AcceptChanges();
    }
        
catch (SqlException ecx)
        {
        RadGrid1.Controls.Add(
new LiteralControl("Unable to update/insert Projects. Reason: " + ecx.StackTrace));
         }

        catch (Exception ex)
        {
            RadGrid1.Controls.Add(
new LiteralControl("Unable to update/insert Projects. Reason: " + ex.Message));
            e.Canceled =
true;
        }

    }

}

 

 

 

 

Veli
Telerik team
 answered on 04 Sep 2008
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?