Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
124 views
Hi,

I am using your Grid / RadNumericTextBox for Footer Totals example.

<script type="text/javascript">
            var sumInput = null;
            var tempValue = 0.0;
            function Load(sender, args) {
                sumInput = sender;
            }
            function Blur(sender, args) {
                sumInput.set_value(tempValue + sender.get_value());
            }
            function Focus(sender, args) {
                tempValue = sumInput.get_value() - sender.get_value();
            } 
        </script>

I have got  2 columns,  Amount1 and Amount2.  

Amount1 is a GridBoundColumn and Amount2 is GridTemplateColumn which  have RadNumericTextBox. 

When I enter value in amount2 textbox it updates the textbox in footer control at client side using above JavaScript code, which is i great.

What I also want is this when user enter value in amount2  textbox i want to check if  this amount2 must be less than in Amount1 column at client side.

Can you please tell me how d i do this?

Many thanks



 
Princy
Top achievements
Rank 2
 answered on 22 Nov 2010
1 answer
56 views
hello telerik team:

    I have one suggestion: Telerik Radajax control should add some new control about office document operation, some can implement read and write doc/xls files directly without install ms office.

BigQ
Prangadj
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
88 views
Hi,

I can't find any instructions as to how to modify SP Radgrid skins. I have used the online skin generator to generate a new skin and now need to know how to register my new skin and where to save the files to  

Can any one help?

Many thanks in advance,

Chris
Sebastian
Telerik team
 answered on 22 Nov 2010
1 answer
52 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
65 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
88 views
I'm losing State when using IE8. any ideas?
Fiko
Telerik team
 answered on 22 Nov 2010
7 answers
216 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
34 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
246 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
34 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?