Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
i am using the splitter control to create 3 panes. So I have 2 draggable lines, like the ones on this page: http://demos.telerik.com/aspnet-ajax/splitter/examples/resizemodes/defaultcs.aspx

I am using mine to create a % picking tool. The user can select 2 percentages, a low one, (let's say 10%, and a high one , like 90%) by moving the 2 bars. I noticed that the left bar cannot be moved completely to the left, and the right one cannot be moved completely to the right. This is a big problem as my users can only go to 4%, not below that, or 96% and not above that.
I also tried using your Slider tool, but i need the 3 areas to be red, yellow and green.
Any idea how I can solve this issue?

Thanks

Kati

Tsvetie
Telerik team
 answered on 21 Jan 2010
1 answer
85 views
heya
I was alerted to this issue after having my production app up and running for months without issue. Essentially my client was editing a radgrid inside a radwindow via automatic updates and the standard out of the box edit mode. What would happen is that the client would have data as such:
edit fname0, lname0,0,0
edit fname1, lname1,0,0
edit fname2, lname2,0,0

the query in simple terms as "select fname,lname,col3,col4 from t1 order by col3"

when clicking on fname0, it would open to edit view, but the data would be random as fname1 or fname3 in the selected row.
This would also only happen on certain rowsets matching certain conditions. not that my query was set to order by col3, which in this case all happened to be zero. My suspicion is that it has to do with how the grid would resort itself on any item command. if the sort is to sort by a number for eg and the numbers it is presented are 0,0,0 instead of 0,1,50 the grid has no constraint. Once I added a second order by as 'order by col3,lname' my issues dissapeared.

don't have time to create a scenario for further testing as it was so peculiar, just thought I would post mt observations.

mac
Tsvetoslav
Telerik team
 answered on 21 Jan 2010
1 answer
87 views
consider the following case:
I have a RadGrid in an ascx page, lets call it "Outer Grid".
I set EditMode="EditForms" for this RadGrid, and in the EditFormSetting tag I set EditFormType="WebUserControl".
also I set UserControlName to point to another ascx page that holds 3 RadComboBox's, a TextBox and a Button, lets call it "The Form".
when I click on a row of the "Outer Grid", it is changed to Edit Mode and expands so that "The Form" is shown with values from the DB.

The bound data of 2 of the RadComboBoxe's in "The Form" are dependent on the selected value of the third one, so I set an "onSelectedIndexChanged" handler to that RadComboBox, and changes the bound data to the other 2.
now for my problem:
the thing is that on every indexChanged of the 3rd RadComboBox, "The Form" is loaded with values from the DB, and when it gets to the handler, I cant tell what is the new selected item.

any super easy solution for me?
thanks,
gili.

Yavor
Telerik team
 answered on 21 Jan 2010
9 answers
340 views
whats the coding thats required to close the opened tooltip from an asp.net button.
using the RadToolTipManager

for example.. to give a similar action as ManualClose (X) on the radToolTipManager property.

Thanks
Georgi Tunev
Telerik team
 answered on 21 Jan 2010
3 answers
170 views
Hello,

Is it possible to have a filter on the GroupByExpressions field. I have a radgrid group by some value and I would like to filter
through that value. Is there any way to accomplish this?


Thank you.
Nikolay Rusev
Telerik team
 answered on 21 Jan 2010
7 answers
222 views

Hi Experts,

 

We are using the licensed version of Telerik RadControls for ASP.NET AJAX for one of our ASP.NET project. We have some issues while using the telerik that we are unable to fix. Would really appreciate if you can provide us the fix.

 

Issue 1:

 

While using the RADGrid to render the values, we sometimes face a strange issue wherein the grid header gets extended out. When we debugged the issue through IEDeveloper, we found that “Padding-right:17px” gets added automatically. This issues frequently happens when we toggle between the ASP.NET tab control and the RADGrid with the issue is placed inside the tab control.

 

 

                Snapshot of the grid with the IEDeveloper debug details (Image attached below)

 

Issue 2:

 

We have another issue in the RADGrid with inline editing. Whenever a row is in edit mode (in EditFormSetting), moving the scroll bar in the RADGrid becomes sluggish. I have noticed his happening while RADComboBox is placed in editform.

 

 

Issue 3:

 

Is there a way to set the current focus to a particular row in the RADGrid? The requirement is, when I go an inline edit and save we actually rebind the data every time in the server which causes the grid to be refreshed and the scroll bar position also gets reset to the first row. I want the scroll bar position to be retained as it was before edit.

 

Query:

 

Is it possible to dynamically Bind an Entity list to the Telerik Grid? We have this feature in the ASP.NET grid which we have used extensively. Now, after incorportaing the RADGrid, we are unable to bind with our Entity list.

Is it possible to have dynamic columns for the above said entity biding ? The columns in the grid are dynamic based on certain crieteria, It can sometimes have 3 columns or it can some times have 10.

 

<telerik:RadGrid ID="dbgGridName" runat="server" EnableEmbeddedSkins="false"

                        Skin="Vista" AutoGenerateColumns="false" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"

                        Width="502px" AllowPaging="false" ShowHeader="true" AllowMultiRowEdit="false"                        OnItemDataBound="dbgAddIPUsageData_ItemDataBound" >

</telerik:RadGrid>

 

// Dynamic adding of columns to grid

arrayListColumns = GetSession("arrayListColumns") as ArrayList;

paramValues = (string[])arrayListColumns.ToArray(typeof(string));

for (int i = 1; i <= paramValues.Length; i++)

                {

                        CustomBoundColumn col2 = new CustomBoundColumn();

                        col2.DataField = Convert.ToString(paramValues.GetValue(i - 1));

                        col2.HeaderText = getGridColumnHeadings(Convert.ToString(paramValues.GetValue(i - 1)));

                        col2.ItemStyle.HorizontalAlign = HorizontalAlign.Left;

                        dbgGridName.MasterTableView.Columns.Add(col2);

                    }

 

The Entity is attached as a text file.

Code behind Binding :

List<SomeDataEntity> myEntityList = fetchDataListFromDB() ;

….

dbgGridName.DataSource = myEntityList;

dbgGridName.DataBind();

 

TIA,

Ravishankar

Yavor
Telerik team
 answered on 21 Jan 2010
2 answers
209 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
125 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
118 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
124 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?