Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
216 views
Hello,
I use a GridClientSelectColumn in my grid. I set AllowPaging = "True", then click checkbox at column header, only items of current page have been selected. Can I select all items of all page when i clicking the Checkbox at header column?
Tks for helping, sorry for my bad english!
Thai Thuong
Top achievements
Rank 1
 answered on 21 Jan 2010
1 answer
128 views
Hi there,

I have an application consisting of an update panel containing a placeholder which contains dynamically created user controls. These user controls consist of several RadComboBoxes, a RadDatePicker and a RadTextBox. I have a method that changes the display mode of each user control depending on the state that it is in (editing, display etc). When these user controls are first created on page load, they are set to display mode and the Rad controls on them are disabled (Enabled = False). This works fine when the page is first loaded, but as soon as the page posts back, the RadTextBox's are enabled (while the other Rad controls remain disabled). I have put a watch on one of the user controls and traced it through the postback, it runs as it should, but the RadTextBoxes are re-enabled between method calls in the postback so I suspect it may be a problem with the viewstate.

Any suggestions?

Cheers
Josh
Yavor
Telerik team
 answered on 21 Jan 2010
1 answer
125 views
I got a stored produre that can get paramters from a form.  I am tring to bind my dataset to grid on the form.  What am i doing wrong in this button click procedure.  It will not reurn dataset..


 

protected void Button1_Click(object sender, EventArgs e)

 

{


RadGrid1.DataSource = RunStoredProcSearch(

"SearchNameCity", SearchGrid.Text);

 

RadGrid1.DataBind();

 

}

 

 

public DataSet RunStoredProcSearch(string spName, string search)

 

{

 

SqlConnection conn = null;

 

 

SqlDataReader rdr = null;

 

 

 

 

 

try

 

{

 

// create and open a connection object

 

conn =

new

 

 

SqlConnection("Data Source=LDSERVER1\\SQLLD;Initial Catalog=AviarySQL;Integrated Security=True");

 

conn.Open();

 

// 1. create a command object identifying

 

 

// the stored procedure

 

 

SqlCommand cmd = new SqlCommand(

 

spName, conn);

 

// 2. set the command object so it knows

 

 

// to execute a stored procedure

 

cmd.CommandType =

CommandType.StoredProcedure;

 

 

// 3. add parameter to command, which

 

 

// will be passed to the stored procedure

 

cmd.Parameters.Add(

 

new SqlParameter("@pattern", search));

 

 

 

// execute the command

 

cmd.Connection.Open();

 

SqlDataReader reader = cmd.ExecuteReader();

 

 

return reader;

 

 

 

 

 

 

 

 

}

 

finally

 

{

 

if (conn != null)

 

{

conn.Close();

}

 

if (reader != null)

 

{

rdr.Close();

}

}

 

}



Yavor
Telerik team
 answered on 21 Jan 2010
1 answer
126 views
Is it possible to bind on the server on the initial page load, then bind on the client (via webservice) thereafter for sorts and filtering?

Any examples would be great.

Thanks
Nikolay Rusev
Telerik team
 answered on 21 Jan 2010
1 answer
140 views
We are using most current version of RADEditor.  It uses AJAX 1.0.  Last time, when we tried to install .net framework 3.5 on the development server, we encountered some problems. We saw error message similar to this
'Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 
'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.   
We had to modify the web configure file to not use .net framework 3.5

Do you have  detailed instruction on how to install .net framework 3.5 in the environment where AJAX 1.0 is installed? Thanks.
Stanimir
Telerik team
 answered on 21 Jan 2010
1 answer
143 views
I would like to add a custom attribute to a RadChart so that I can use it when the user clicks on the series.

Currently I have an exploded pie chart.  I can parse the data that is displayed.  But I would prefer to add an ID to the series and be able to parse the ID when I go to drill down on the click event.

Thanks
Ves
Telerik team
 answered on 21 Jan 2010
2 answers
96 views
Hi, I need help. After making the ordering of the grid I need to get this data from the modified datatable, how can I do??

I am passing the values to sort through the code below:

        GridSortExpression expression = new GridSortExpression ();
        
expression.FieldName = "ds2";
        
this.RgDados.MasterTableView.SortExpressions.AddSortExpression (expression);
        
this.RgDados.MasterTableView.Rebind ();

        
DataTable dt = (DataTable) RgDados.MasterTableView.DataSource;
        
Session [ "Data"] = dt;
Yavor
Telerik team
 answered on 21 Jan 2010
8 answers
351 views
hello,

i have some problems with the editor and dotnetnuke version 5.2
i installed the zippackage Telerik.DNN.Modules_2009_2_826_dev.zip and activated the RADeditor.
this works but i have problems with blank spaces and special characters.
but in the web.config from dnn my language settings look like this:
<globalization culture="de-DE" uiCulture="de" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
here you can see my portal where i hvae the ?? instead of the blank spaces:
http://auct.dnn.at/Home/tabid/40/language/de-DE/Default.aspx

editor settings:
where can i change some editor settings?
i'd like to change the root folders for inserting an image, document, flash, media oder template.

thanks for help

regards

michael
Lini
Telerik team
 answered on 21 Jan 2010
2 answers
96 views
I have a hierarchial grid with 3 levels - Parent, Child, & Grandchild.  When the user clicks the imagebutton on a Child level row, I want all of the Grandchild level rows to go into edit mode.  Here's my code:

Protected Sub dg_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles dg.ItemCommand  
        If e.CommandName = "editChild" Then 
            If Not e.Item.Expanded Then 
                e.Item.Expanded = True 
            End If 
            Dim item As GridDataItem = CType(e.Item, GridDataItem)  
            Dim nestedTableView As GridTableView = CType(item.ChildItem.NestedTableViews(0), GridTableView)  
            For Each grandChild As GridDataItem In nestedTableView.Items  
                grandChild.Edit = True 
            Next 
            nestedTableView.Rebind() 

Upon Rebind(), I receive the following error:

"Specified argument was out of the range of valid values. Parameter name: index"

Before the Rebind, nestedTableView.Items.Count = 4.  After the Rebind, nestedTableView.Items.Count = 0.

If I rebind the grid instead of rebinding the tableview, ( dg.Rebind() ) then I lose all the Child & Grandchild data with no errors.  If I rebind on the event item itself ( item.OwnerTableView.Rebind() ) then I only lose the GrandChild data with no errors.

Needless to say, I'm pretty confused what object to do my rebind on in order to put all of the Grandchild rows into edit mode and retain the data visibly on the screen.  I'm guessing I'm pretty close.

Thanks in advance.

Princy
Top achievements
Rank 2
 answered on 21 Jan 2010
1 answer
157 views
2009.3.1210.35
Requirement:  When GridHyperLinkColumn is clicked, I want the row to be selected.
I have  <Selecting AllowRowSelect="true" /> already but that doesn't select row when the link in HyperLinkColumn is clicked.
I can't add OnClick to GridHyperLinkColumn so I made a GridTemplateColumn and used <asp:hyperlink> instead which I could call a javascript with onClick.    However I do not know how to pass the current row index to the Row_Select function that I got from another post.

ClientEvent OnRowClick="RowClick" doesn't fire when clicked on the hyperlink either.

        <telerik:RadScriptBlock  runat="server"> 
            <script language="javascript" type="text/javascript"> 
                function Row_Select(arg) {   
                  var mt = $find("<%# RadGrid1.ClientID %>").get_masterTableView();   
                  var row = mt.get_dataItems()[arg];   
                  mt.selectItem(row.get_element()); 
              } 
 
              function RowClick(sender, eventArgs) { 
                  var mt = $find("<%# RadGrid1.ClientID %>").get_masterTableView(); 
                  var row = mt.get_dataItems()[eventArgs.get_itemIndexHierarchical()]; 
                  mt.selectItem(row.get_element()); 
              } 
            </script> 
        </telerik:RadScriptBlock > 
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?