Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
47 views
Hello,
        I am using Telerik control(RadGrid) in sharepoint2007. getting  the Error when i am using GridTemplateColumn

 

        error is <%#Eval("Comments")%> and <%#Bind("Comments")%> is not working in sharepoint2007. 

<
telerik:GridTemplateColumn HeaderText="Comments" DataField="Comments" SortExpression="Comments"

 

 

UniqueName="Comments" AllowFiltering="false">

 

 

<ItemTemplate>

 

<%

#Eval("Comments") %>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadTextBox ID="txtComments" Text='<%#Bind("Comments") %>' Visible="true"

 

 

runat="server" TextMode="MultiLine" Width="97%">

 

 

</telerik:RadTextBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

Any idea about this problem?

 

Tsvetoslav
Telerik team
 answered on 22 Nov 2010
3 answers
64 views
How do I make the button depress on Mousedown?

Let me give an example...

In the Demos page when you click the skin dropdown it shows 3 states, normal, hover, click...so if I choose Sitefinity then try and click the button...I don't see the clicked state.
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
1 answer
86 views
I'm losing State when using IE8. any ideas?
Fiko
Telerik team
 answered on 22 Nov 2010
7 answers
212 views
Hi

I want to customize the DataPager UI. I would like to show a datapager similar to that of PrevNextNumeric pager. But I want to show all buttons (previous, next and numeric) as plain links (Simple anchor tags in html).  Hide the previous link when the current page is fist page also hide the last button when current page is last page.

How can I customize the UI? One option I can think of is using PagerTemplate and writing custom code to implement.

But is there any simple alternative for this? If not can some one provide me with a sample of how it's done u sing pagertemplate.

Note : I'm using custom paging too. But I think it does not make much difference.

I have attached how I want the UI to look like.

Thanks in advance,
Kartheek.
dscho
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
27 views
Hi,

I am using RadAjaxLoadingPanel  to populate data.In Visual Studio 2008 Development Server when I run the application I am able run the functionality.But when I Publish my website in IIS 7.0 the page is generating error -"The propert yor object is not supported'.I am using IE 8.0 under Vista.My Telrik version is 2009.1.311.35.I have not put the same in GAC.
The following config section is used to configure Telrik controls

 <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>

Please help on this to successfully run the same on IIS 7.0 Published code.
 
Feroz
Top achievements
Rank 1
 answered on 22 Nov 2010
5 answers
235 views
Hi All,

I am facing a wierd issues.

Requirement:
1. On selecting anything in the dropdown list, grid and description panel should be updated. (As of now i am displaying the id in the description panel)
2. On selecting any row in the grid, description panel should be updated.

I have a web part which loads user control as given below.

protected

 

override void CreateChildControls()

 

{

 

base.CreateChildControls();

 

userControl = Page.LoadControl(

@"~\_layouts\UserControls\RadGridDemo.ascx");

 

Controls.Add(userControl);

}

In the user control, I have a drop down list, RadGrid and descriptionPanel controls defined as below.

<%

@ Control Language="C#" ClassName="RadGridDemo" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Import Namespace="System" %>

 

<%

@ Import Namespace="System.Data" %>

 

<%

@ Import Namespace="Telerik.Web.UI" %>

 

<

 

div>

 

 

<div>

 

 

<asp:PlaceHolder ID="Pl" runat="server">

 

 

<telerik:RadAjaxManager ID="AjaxManager" runat="server">

 

 

<ajaxsettings>

 

 

<telerik:AjaxSetting AjaxControlID="MyTrainingDDList">

 

 

<UpdatedControls>

 

<%

-- <telerik:AjaxUpdatedControl ControlID="Grid1" />--%>

 

 

<telerik:AjaxUpdatedControl ControlID="DescPanel" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="Grid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="DescPanel" />

 

 

<telerik:AjaxUpdatedControl ControlID="Grid1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</ajaxsettings>

 

 

</telerik:RadAjaxManager>

 

 

<asp:DropDownList ID="DDList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDList_SelectedIndexChanged">

 

 

<asp:ListItem Text="Customers" Selected="True"></asp:ListItem>

 

 

<asp:ListItem Text="Employees"></asp:ListItem>

 

 

</asp:DropDownList>

 

 

<telerik:RadGrid runat="server" ID="Grid1" OnSelectedIndexChanged="Grid1_SelectedIndexChanged">

 

 

<clientsettings enablerowhoverstyle="true" enablepostbackonrowclick="true" allowexpandcollapse="true">

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

</clientsettings>

 

 

</telerik:RadGrid>

 

 

</asp:PlaceHolder>

 

 

</div>

 

 

<div id="DescPanel" runat="server">

 

 

<asp:Label ID="lblName" runat="server">

 

 

</asp:Label>

 

 

</div>

 

</

 

div>

 

<

 

script runat="server">

 

 

 

int trainingId = 0;

 

 

DataSet ds = null;

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!IsPostBack)

 

{

Grid1.MasterTableView.DataKeyNames =

new String[] { "ID" };

 

SetData(0);

}

}

 

private void SetData(int index)

 

{

 

DataTable dt;

 

 

if (index == 0)

 

dt = GetCustomers();

 

else

 

dt = GetEmployees();

Grid1.DataSource = dt;

Grid1.Rebind();

 

if (Grid1.Items.Count > 0)

 

{

Grid1.SelectedIndexes.Add(0);

trainingId =

int.Parse(Grid1.MasterTableView.DataKeyValues[0]["ID"].ToString());

 

lblName.Text = trainingId.ToString();

}

 

else

 

lblName.Text =

"";

 

}

 

private DataTable GetEmployees()

 

{

 

DataTable dt = new DataTable("Employee");

 

dt.Columns.Add(

"Id");

 

dt.Columns.Add(

"FirstName");

 

dt.Columns.Add(

"LastName");

 

 

for (int i = 1; i <= 10; i++)

 

{

 

DataRow dr = dt.NewRow();

 

dr[

"Id"] = i.ToString();

 

dr[

"FirstName"] = "XXX" + i.ToString();

 

dr[

"LastName"] = "YYYY" + i.ToString();

 

dt.Rows.Add(dr);

}

 

return dt;

 

}

 

private DataTable GetCustomers()

 

{

 

DataTable dt = new DataTable("Customers");

 

dt.Columns.Add(

"Id");

 

dt.Columns.Add(

"FirstName");

 

dt.Columns.Add(

"LastName");

 

 

for (int i = 1; i <= 10; i++)

 

{

 

DataRow dr = dt.NewRow();

 

dr[

"Id"] = i.ToString();

 

dr[

"FirstName"] = "CCC" + i.ToString();

 

dr[

"LastName"] = "DDDDD" + i.ToString();

 

dt.Rows.Add(dr);

}

 

return dt;

 

}

 

protected void Grid1_SelectedIndexChanged(object source, System.EventArgs e)

 

{

 

int itemIndex = Grid1.SelectedItems[0].ItemIndex;

 

trainingId =

int.Parse(Grid1.MasterTableView.DataKeyValues[itemIndex]["ID"].ToString());

 

lblName.Text = trainingId.ToString();

}

 

protected void DDList_SelectedIndexChanged(object sender, EventArgs e)

 

{

 

int index = DDList.SelectedIndex;

 

SetData(index);

}

</

 

script>

 


When i deployed the user control and web part in SharePoint 2010, I am able to view the data but i face 2 issues in this.
1. First time, when i select anything in the dropdownlist or select any row in the grid, its not ajaxified but full post back is happening. Second time on wards it works perfectly fine.
2. I want ajax on ddl and grid but when i uncomment the line that is commented above, I am able to select a row in the grid only for the first time. From second time onwards, i am unable to select.

Please do help me resolving this. I am using the trial version of Telerik.Web.UI.dll 2010.2.713.20

Please do send me a sample which does the similar functionality.

Thanks in advance.



Tsvetoslav
Telerik team
 answered on 22 Nov 2010
3 answers
33 views
I am working with the latest telerik editor (Q3 release). so far every control in my project is upgraded successfully. but in image manage in the editor, the delete button is not visible. I was able to add create directory button from the provider (DBContentProvider) by returning true from CanCreateDirectory property and overloading  the CreateDirectory() method. is there any similar property for adding delete button?

Thanks.
nyad
Top achievements
Rank 1
 answered on 22 Nov 2010
5 answers
260 views
I have downloaded trial version of TELERIK controls for ASP.Net AJAX few days back.
My application uses Callback to load content inside the RadSplitter control.(Please note not AJAX callbacks, simple callbacks)
I have set the RegisterWithScriptManager property of RadSplitter =false, to allow rendering the RadSplitter's  HTML output after  callback.

The RadSplitter gets rendered successfully, but none of the RadSplitter functionality like (resize etc) works  after the callback.
Your forums suggest to manually register the RadSplitter scripts into the RadScriptManager, to get the functionality back.
I have 2 queries-

Query 1-
Do I use the below code snippet ?
Telerik.Web.UI.RadScriptManager.RegisterClientScriptBlock(RadSplitter1 , this.GetType(), "", "", true);
 Query 2. If so what will I pass to the 4th argument ?- "script".

PLEASE TREAT THIS AS URGENT.

I need to take a business decision for using Telerik controls based on this.  Have already posted similar query earlier, but have received no response so far.
Thanks, Tanima


Dobromir
Telerik team
 answered on 22 Nov 2010
1 answer
79 views
How to check which columns are grouped ?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2010
1 answer
144 views
Hello,

I was testing out the demo for the GridAttachmentColumn directly from the demo page - http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx and while I tried uploading a file from both a Local and Network Drives, I keep getting a 'Sorry couldn't find a page' error.  I have tried in both Internet Explorer 7 and FireFox 3.6.12 browsers. 

Also, I have developed a page using the most current RadControls for ASP.NET AJAX Q3 2010. Although uploading and viewing the file (.XLSX) from a local drive did not have any errors, however viewing the file after uploading from a Network drive produced this error:

Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:]
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString() +543643
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +233
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) +422
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +147
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +51
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +70
   Telerik.Web.UI.GridCommandEventArgsFactory.CreateGridCommandEventArgs(GridItem item, Object commandSource, CommandEventArgs originalArgs) +676
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +105
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +46
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8614
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Do you know how I can fix this problem?

Thank you
Veli
Telerik team
 answered on 22 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?