Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
274 views

Hi,

In an existing (MCMS) project, we use the Telerik.WebControls.RadEditorPlaceHolder control to hold and update content.

Now we want to upgrade to RadControls for ASP .Net AJAX and I am wondering if there is an equivalent control.

All help appreciated.

Thank you.

Georgi Tunev
Telerik team
 answered on 21 Aug 2008
2 answers
407 views
Hi,

I am using Radgrid, in my application i need to generate columns, updates,inserts  automatically at runtime.

pls tell me the way to achieve this.


Thanks,
Ramesh.
cv
Top achievements
Rank 1
 answered on 21 Aug 2008
4 answers
137 views
Any solution on this problem?

Dim file As UploadedFile = RadUploadContext.Current.UploadedFiles(fileBild.UniqueID) 

I'm using a regular <input type="file"> for the selection of file and it's always empty.
I try this
Dim file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(fileBild.UniqueID)) 
And I get an error in here too?

Do you have an example of this in ajaxified version :)

/Thanks
Philip Saltskog
Top achievements
Rank 2
 answered on 21 Aug 2008
2 answers
141 views
I'm working on a pretty simple project, but I've run into some trouble and so I hope someone can help!  I have a combo box and a grid sharing a single page.

The combo box is populated with names from a SQL database.  On changing, the combo box does an auto-postback and populates the grid with a few rows from a table called "Housing" based on the value of the Combo Box.

The combo box selection and subsequent population of the grid actually works very smoothly.

The problem I'm having is when I try to use the "update" function in the grid.  When I try to update, I receive an error that says "Incorrect syntax near 'nvarchar'.  *line break* Must declare the scalar variable '@housing_id'".  (I have a feeling that it is actually two different errors).

Now the strange part to me is that I can get the update function to work by putting in a new grid that is not affected by the combo box (it displays all of the "Housing" items, not just those specific to one user).  I use the same exact insert/select/update/delete functions.... so I'm terribly confused as to why it doesn't work when I put the combo box into the equation.

Thanks for any help!
Nick
Top achievements
Rank 1
 answered on 21 Aug 2008
4 answers
196 views
Hi,

I've noticed that the HeaderStyle-Height setting does not apply to header above the vertical scroll bar. This image shows the problem I described. I am using the vista skin. I tried the default skin and the gap is smaller but it's still not aligned properly. Any way to fix this?

Thanks
Dimo
Telerik team
 answered on 21 Aug 2008
1 answer
195 views
Hi,

I am having a problem with the rendering of the rad editor control when it is placed in a div of a fixed height with the overflow:auto style applied.  The controls are being rendered outside of the fixed height div in the position they would be if the div was not restricted in its height.  Even if i just set the control to just design mode IE still thinks the control has a bigger height than applied to the div and applies its scroll barsYou can take a look at the problem here.  Below is the code you can use to reproduce the problem.

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <div> 
        <div style="height: 170px; overflow:auto; border: solid black 1px;"
            <asp:UpdatePanel ID="UpdatePanelRadEditorPost" runat="server"
                <ContentTemplate> 
                    <telerik:RadEditor ID="RadEditor1" runat="server" 
                        AutoResizeHeight="false" 
                        Height="500px"
                        <SpellCheckSettings DictionaryLanguage="en-GB" />      
                    </telerik:RadEditor> 
                </ContentTemplate> 
            </asp:UpdatePanel> 
        </div> 
    </div> 
    </form> 
</body> 
</html> 

It works fine in FF but not in IE7.  Is there a solution to this problem?

Thanks for your help,

Jef


George
Telerik team
 answered on 21 Aug 2008
1 answer
114 views
Hi,
I use multicolumn combobox with autopostback property true, but when I select item in dropdown postback doesnt occur.
Thanks.
Rosi
Telerik team
 answered on 21 Aug 2008
5 answers
154 views
We have translated resource for scheduler in french.
Do you want it ?
Peter
Telerik team
 answered on 21 Aug 2008
1 answer
185 views
Hi,

how do i hide XAxis labels from the chart?

this cose doesnt work :

foreach

(ChartAxisItem item in RadChart1.PlotArea.XAxis.Items)
{

    item.Visible = false;

}

thanks,

yossi.

Giuseppe
Telerik team
 answered on 21 Aug 2008
1 answer
171 views

Hai,

I am trying to Bind the Data to RadGrid which is Under RadPanelBar.

Here I am sending the Peace of Code which I used exactly..

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="WebBlue" Height="300px">

<Items>

<telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">

<Items>

<telerik:RadPanelItem Text="RadMenu">

 <ItemTemplate>

<telerik:RadGrid PageSize="3" AllowPaging="true" ID="RadGrid1" runat="server" GridLines="Horizontal"                                                            AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid1_NeedDataSource"                                                            >

<PagerStyle Mode="Slider" />

<MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms" CommandItemDisplay="TopAndBottom">                                                                <Columns>                                                                    <telerik:GridEditCommandColumn>                                                                    </telerik:GridEditCommandColumn>                                                                    <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" />                                                                    <telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription" UniqueName="TerritoryDescription" />                                                                    <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" />                                                                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete">                                                                    </telerik:GridButtonColumn>                                                                </Columns>                                                                <EditFormSettings EditFormType="Template">                                                                    <EditColumn UniqueName="EditCommandColumn1">                                                                  </EditColumn>                                                                    <FormTemplate>                                                                        <table id="Table2" cellspacing="2" cellpadding="1" width="250" border="1" rules="none" style="border-collapse: collapse">                                                                            <tr> <td>                                                                                    <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">                                                                                        <tr><td>                                                                                            </td>                                                                                    </tr>                                                                                        <tr>                                                                                            <td>                                                                                                TerritoryID:                                                                                            </td>                                                                                            <td>                                                                                               <asp:TextBox ID="txtTerritoryID" MaxLength="5" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>' runat="server">                                                                                                </asp:TextBox> </td></tr>

<tr> <td>                                                                                                                                                                                                                                                                    

                                                                                                                                                                                            TerritoryDescription:                                                                                            </td>                                                                                            <td>                                                                                                <asp:TextBox ID="txtTerritoryDescription" runat="server" Text='<%# Eval( "TerritoryDescription" ) %>'>                                                                                                </asp:TextBox></td>                                                                                        </tr>                                                                                        <tr>                                                                                            <td>                                                                                                RegionID:                                                                                            </td>                                                                                            <td>                                                                                                <asp:TextBox ID="txtRegionID" runat="server" Text='<%# Eval( "RegionID") %>' TabIndex="1">                                                                                                </asp:TextBox>                                                                                            </td>                                                                                       </tr>                                                                                   </table>                                                                                </td>                                                                            </tr>                                                                            <tr>                                                                                <td colspan="2">                                                   <b>Territory Info:</b>                                                                                </td>                                                                            </tr>                                                                            <tr>                                                                                <td align="right" colspan="2">                                                                                    <asp:Button ID="btnUpdate" Text='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>'                                                                                        runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>'>                                                                                    </asp:Button>&nbsp;                                                                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>                                 

                                                                            </td>                                                                            </tr>                                                                        </table>                                                                    </FormTemplate>                                                                </EditFormSettings>                                                            </MasterTableView>                                                        </telerik:RadGrid></ItemTemplate>                                    </telerik:RadPanelItem> </Items>                            </telerik:RadPanelItem>

<telerik:RadPanelItem Expanded="True" Text="Place lable">                                <ItemTemplate>

<asp:Button ID="Button1" OnClick="nextButton_Click" runat="server" Text="Next" />

 </ItemTemplate>

 </telerik:RadPanelItem>

<telerik:RadPanelItem Expanded="True" Text="Place XYZ">

<ItemTemplate><telerik:RadGrid ID="RadGrid1" runat="server">

</telerik:RadGrid></ItemTemplate>                            </telerik:RadPanelItem></Items></telerik:RadPanelBar>

 

 

 

 

 

C#Code:-

public static DataTable dtTable;

    //Declare a global SqlConnection SqlConnection

    //public SqlConnection SqlConnection = new SqlConnection("Data Source=local;Initial Catalog=Northwind;User ID=**");

    public static SqlConnection SqlConnection = new SqlConnection("server=.;database=Northwind;uid=sa;pwd=password");

    //Declare a global SqlDataAdapter SqlDataAdapter

    public SqlDataAdapter SqlDataAdapter = new SqlDataAdapter();

    //Declare a global SqlCommand SqlCommand

    public SqlCommand SqlCommand = new SqlCommand();

    protected void Page_Load(object sender, EventArgs e)

    {

       

    }

    protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

    {

        //Response.Write("Hai");

        SqlDataAdapter dap = new SqlDataAdapter("select * from Territories", SqlConnection);

        DataSet ds = new DataSet();

        dap.Fill(ds, "Territories");

        RadGrid1.DataSource = ds.Tables[0];

       

    }

But I am getting following Error

Error:-

Error      2              The name 'RadGrid1' does not exist in the current context

 

Please any one can guide me in this regards.

 

Paul
Telerik team
 answered on 21 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?