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

Hello
    I have created the dynamic checkbox template column.  But the check boxes which is present in the grid has not enabled.  I can't check or decheck those checkbox controls.  Please help me on this Issue......



using

 

System;

 

using

 

System.Collections.Generic;

 

using

 

System.Linq;

 

using

 

System.Web;

 

using

 

System.Web.UI;

 

using

 

System.Web.UI.WebControls;

 

using

 

Telerik.Web.UI;

 

using

 

System.Data;

 

using

 

DataAccessLayer;

 

namespace

 

GemsStandard.Transactions.Fees

 

{

 

public partial class tempDymClm : System.Web.UI.Page

 

{

 

FetchSQL fetchSQL = new FetchSQL();

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

BindColumn();

}

 

public void BindColumn()

 

{

 

//http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-runtime-columns.aspx

 

 

DataTable dt = new DataTable();

 

dt = fetchSQL.GetDataTable(

"select ac.AcademicYearName from tblAcademicYear ac", CommandType.Text);

 

 

 

GridBoundColumn boundColumn = new GridBoundColumn();

 

 

// boundColumn = new GridBoundColumn();

 

boundColumn.UniqueName =

"AcademicYearName";

 

boundColumn.DataField =

"AcademicYearName";

 

boundColumn.HeaderText =

"AcademicYearName";

 

RadGrid1.MasterTableView.Columns.Add(boundColumn);

 

 

 

GridCheckBoxColumn checkboxColumn = new GridCheckBoxColumn();

 

checkboxColumn.HeaderText =

"BusFee";

 

checkboxColumn.UniqueName =

"BusFee";

 

 

RadGrid1.MasterTableView.Columns.Add(checkboxColumn);

 

GridCheckBoxColumn checkboxColumn1 = new GridCheckBoxColumn();

 

checkboxColumn1.HeaderText =

"TFee";

 

checkboxColumn1.UniqueName =

"TFee";

 

 

RadGrid1.MasterTableView.Columns.Add(checkboxColumn1);

RadGrid1.MasterTableView.Columns.Add(Gvr);

RadGrid1.DataSource = dt;

RadGrid1.DataBind();

}

}

}

Pavlina
Telerik team
 answered on 27 Jan 2011
3 answers
123 views
Hello,

I have implemented easy fulltext searcher with RadXmlHttpPanel with RadAjaxPanel similar on http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/gridinxmlhttppanel/defaultcs.aspx

I have some changes:
  1. RadListView instead of RadGrid
  2. ObjectDataSource configured for this RadListView instead of handling NeedDataSource event
  3. disabled ViewState for this RadListView (because paging does not work with wiestate)
  4. User asp:DataPager in RadListView (RaddataPager throwing exception in RadXmlHttpPanel)
  5. I have search TextBox outside XmlHttpPanel as filter input to the ListView.

When I try it in the VisualStudio it works good. When I type some words to the textbox results are loaded and paging works.
When I publish it into the IIS 6 first paging works but in the next postback I get javascript error:

Webpage error details
  
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 21 Jan 2011 15:47:23 UTC
  
  
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 405
Line: 6
Char: 84093
Code: 0
URI: http://risdev/KM/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=scriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3a16e4e7cd%3a86526ba7%3a874f8ea2%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41%3bnData.KnowledgeManagement.Web%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3adf04c003-4d7b-4c85-89a9-019a1e4b5e86%3ac7908112%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3ab7778d6c%3a9cdfc6e7%3addbfcb67%3a58366029%3a628ebdd0

When I disable ajax on RadAjaxPanel, it works OK but with normal postabck.

Could you help me?
Thanks
Jiri

Pero
Telerik team
 answered on 27 Jan 2011
1 answer
104 views
I have followed the sample at http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultcs.aspx?product=asyncupload

It works perfectly in Firefox.

However, in Internet Explorer, when the image is uploaded and appears on the page, it is not the correct size.  It is stretched to a 500px width.

I am using version 2010.3.1312.35
Dimitar Terziev
Telerik team
 answered on 27 Jan 2011
6 answers
274 views
Hi All,
I have a RadGrid with CommandItemDisplay="Top".
In the code behind, I set RadGrid.Enabled = false;
When I run the project, the RadGrid does look disabled, but the link to the right of the [+] button "Add New Record" can still be clicked on.
Is the something special I need to do with this?
Thanks,
Steele.
Pavlina
Telerik team
 answered on 27 Jan 2011
2 answers
209 views
Hello ,

I wanted to open rad window when user clinked one of my menu item. Consider that menu item is "Product". Menu click event code is as follows:

protected void NavigationMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            if (e.Item.Value == "Theme")
            {
                 
            }
            else if (e.Item.Text == "Product")
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "openWin", "openWin();", true);            
            }
 
        }


And my JavaScript function is as follows :

function openWin() {
var oWnd = radopen("Product.aspx", "RadWindow1");
oWnd.moveTo(125, 60);
}

Now when I clicked on Produce menu I am getting following JavaScript error .


Error: b is undefined
Source File: http://localhost/Company/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a8fa155ef-f4b5-45a5-8081-4caa696cfcad%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aa7e79140%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4
Line: 8175

If any one knows how to solve this then please tell me.In short I want to open rad window from server side.

-Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
10 answers
134 views
Hi All

Every now and again, with no real pattern our application throws a server error.

The error is 'There was a problem Extracting the DataKeyValues from the Datasource Please ensure that dataKeynames are specified......

The error is raised from several places.

The pages are hit 100's of times an hour with the error 4-5 time a day. 

The error I'm using version 1215 but the problem as also pressent in previous versions

I have try catches around all my code, but this still gets trhough.

Can anyone shead any light on this please.

Andy
Maria Ilieva
Telerik team
 answered on 27 Jan 2011
2 answers
91 views
Hi,
I have a question regarding AsyncUploader. I use this control to upload multiple files(images) and everything is working perfect. But I have a great problem regarding the layout. What I need is a button to call the function that the button " Select " calls it. I mean a button called "Load Photos" for example, which once clicked to open the window "Open" where I can select the files I need. A js script is perfect, a code behind will do also.
Thank you in advance,
Moroianu George
Moroianu George-Gabriel
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
307 views
All Telerik Devs,

I tried this on multiple rad controls... it appears when I add ClientIDMode="Static" on the RadScheduler, or RadMenu, or the RadButton the RadWindow Control will just not open, or when it does open it will not show the content w/in the content template. 

Just an FYI
Georgi Tunev
Telerik team
 answered on 27 Jan 2011
1 answer
62 views
Hi,

We are facing a problem with hierarchal grid in our application. when we expand the arrow and select a child item and collapse the arrow then the selected child items are getting deselected. Any help will be appreciated. 
Mira
Telerik team
 answered on 27 Jan 2011
4 answers
128 views
Hi guys ,
I have gridview and listview in my page , i want to drag item from gridview to listview , can you give me a good example ?
Thanks
Nikolay Rusev
Telerik team
 answered on 27 Jan 2011
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?