Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views
Hi,

Under certain circumstances I want to stop the user from changing the selection in the grid.  I have hooked up the OnRowSelecting and OnRowDeselecting events which will both check the value of a client-side variable to say whether the action can occur.  Here is an example of my client-side events code:

function GridRowSelecting( sender, eventArgs )  
{  
    if( CanSelectionChange() )  
    {     
        // .... do whatever I need to do  
        return true;  
    }  
      
    eventArgs.set_cancel( true );  
    return false;  
}  
 
function GridRowDeselecting( sender, eventArgs )  
{  
    if( CanSelectionChange() )  
    {     
        // .... do whatever I need to do  
        return true;  
    }  
      
    eventArgs.set_cancel( true );  
    return false;  
}  
 

This works fine for selecting - the event is cancelled and the new selection is not accepted.  However, when there is already an item selected in the grid, attempting to select another item results in the first item being deselected prior to the new item being selected.  The GridRowDeselecting event is correctly entered and the function chooses to disallow the deselection by setting set_cancel.  This then results in an IE popup window stating that the script has become unresponsive, and upon debugging the JavaScript, using set_cancel results in the OnRowDeselecting event infinitely firing and eventually the application breaks.

Can anyone suggest a reason why this is?  Am I cancelling the deselection event correctly?
Jonathan
Top achievements
Rank 1
 answered on 07 Mar 2008
1 answer
119 views
Just curious if there is a built in way to accomplish this or if I need to manually grab/store the coordinates on a client event?  Thanks.
Sophy
Telerik team
 answered on 07 Mar 2008
2 answers
246 views
Hi;

Is there a way to show full editor or specify tools file to the GridHTMLEditorColumn of RadGrid. Like in this example various column examples editor has very limited options.

Thx for help

Regards
Azhar
Azhar
Top achievements
Rank 1
 answered on 07 Mar 2008
1 answer
104 views
Hi Guys,

I'm having trouble AJAX-ing a sign-up page which is based on the CreateUserWizard control.  I'm coding in VS2008 but the site is targeted for .NET 2.0.  I've AJAX-ed a bunch of page already but this one causes me issues.  The set-up is the following:  RadAjaxManager and RadScriptManager in a master page, and a RadAjaxManagerProxy in the actual sign-up page which inherits the master page.  I do the following setup in Page_Load:

RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(CreateUserWizard1, CreateUserWizard1, RadAjaxLoadingPanel1);

When I click next in the wizard the loading panel works properly, but when the everything is finished it stays no the same (first) page.  I tried to just wrap the control in a RadAjaxPanel but the AJAX does not work at all in that case.

Any ideas guys?

Thanks,
Eugene
Sebastian
Telerik team
 answered on 07 Mar 2008
1 answer
160 views
How do I make a simple multiline tooltip on a RadTreeNode?

I have tried to add "\n", "\r", "<br/>" between the 2 lines but with no luck.

What am I missing?

Thanks - Kevin
Paul
Telerik team
 answered on 07 Mar 2008
3 answers
178 views
I have a simple test with two buttons and two x asp:panel, a raddatepicker is inside panel2 .
 Ajax manager has both buttons as initiator and both panels as updated controls.
If in the page load i set both panels initially to invisibile. Then button1 server side code sets the culture for the datepicker to "nl-NL" (or any other..), turns the visibilty of panel1=true (nothing in it for the purpose of this example) but does not set the visibility on for panel 2 (so still not visible).
Button2 code behind sets the visibility=true for the panel2, the datepicker is also now visible, turns panel1 visibility=false.
drop the calendar down, and the culture is not set.
Click the button1 again which executes the same culture settings (i tried all three, raddatepicker.culture, raddatepicker.calendar.cultureinfo & raddatepicker.dateinput.cultureinfo) and switches the panel visibility, Click button2, datepicker now visible with correct culture setting.
I gues this has something to do with the fact that panel2 has never been visible until the second button1 click, but I don't know how to work around this.
Any help?

Thanks,
Kevin.
p.s i'm using the latest promthius version
p.p.s using normal full calendar control works.
Maria Ilieva
Telerik team
 answered on 07 Mar 2008
1 answer
205 views
I am tryign to migrate from RadGrid for ASP.net to RadGrid Prometheus and having an issue.  I used to get Key Values like this

Protected Sub rgPartners_EditCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)

'Get the value from the Grid column

Dim key As Integer = Convert.ToInt32(Me.rgPartners.MasterTableView.Items(e.Item.ItemIndex)("PartnerID").Text)

Session(

"editKey") = key

Server.Transfer(partnerdetails.aspx,

True)

End Sub


But this prodcues an error (below) in prometheus version.  How do I got about this in the new grid?

Error:
Compiler Error Message: BC30408: Method 'Protected Sub rgPartners_EditCommand(source As Object, e As Telerik.WebControls.GridCommandEventArgs)' does not have the same signature as delegate 'Delegate Sub GridCommandEventHandler(source As Object, e As Telerik.Web.UI.GridCommandEventArgs)'.

Can anybody shed some light on this?

Vlad
Telerik team
 answered on 07 Mar 2008
12 answers
292 views
Recently upgraded to build 1314, but I have been having issues with Skins for the Date and Time pickers in 1310 as well.

I have a theme setup for the application and when I set EnableEmbeddedSkins = false for the date and time pickers the image shows as a red x, when I set this to true it displays fine.

In the 1310 release even with EnableEmbeddedSkins set to true I was able to style the input textbox for the date picker with borders, font size, etc.  In 1314 whether it is true or false it doesn't take any custom css settings.

Can someone give me some guidance on how to style the input boxes for the date and time pickers?  Most of the documentation I have read talks about the calendar and not the pickers.

Thanks for the help,

Greg
Trevor
Top achievements
Rank 1
 answered on 06 Mar 2008
1 answer
234 views
The code below is not able to show XAxis and YAxis labels despite setting all properties relevant to axis label.

        RadChart1.Width = 700;
        RadChart1.Height = 500;
        RadChart1.ChartTitle.TextBlock.Text = "Modalities QR Comparison";
        RadChart1.Skin = "WebBlue";
        RadChart1.PlotArea.YAxis.AutoScale = false;
        RadChart1.PlotArea.YAxis.MaxValue = 1.2000;
        RadChart1.PlotArea.YAxis.MinValue = 0.0000;
        RadChart1.PlotArea.YAxis.Step = 0.1000;
       
        RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -90;
        RadChart1.PlotArea.Appearance.Dimensions.Margins.Left = 100;

        SqlConnection con = new SqlConnection();
        SqlCommand cmd = new SqlCommand();
        DataSet ds = new DataSet();
        string connstr = "Server=ZCONC;uid=sa;pwd=zcon@123;database=QMS_Feb20;Connect Timeout=30";
        string ConnectionString = connstr;
        con.ConnectionString = ConnectionString;
        cmd = con.CreateCommand();
        con.Open();
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.CommandText = "Department_Modalities_QR_Comparison";
        SqlDataAdapter ads = new SqlDataAdapter();
        cmd.Connection = con;
        ads.SelectCommand = cmd;
        ads.Fill(ds, "chart");
        con.Close();

        RadChart1.RemoveAllSeries();
        ChartSeries SR = RadChart1.CreateSeries("SR", Color.Fuchsia, Color.Fuchsia, ChartSeriesType.Bar);
        SR.DataYColumn = "SR";
        SR.Appearance.BarWidthPercent = 50;
        //QR.Appearance.TextAppearance.RotationAngle = -90;
        RadChart1.AddChartSeries(SR);
        RadChart1.PlotArea.XAxis.DataLabelsColumn = "ModalityTitle";

        DataView dv = ds.Tables[0].DefaultView;
        RadChart1.PlotArea.YAxis.AxisLabel.Visible = true;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Visible = true;
        RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Normal;
        RadChart1.PlotArea.YAxis.AxisLabel.Appearance.Dimensions.AutoSize = false;
        RadChart1.PlotArea.YAxis.AxisLabel.Appearance.Dimensions.Height = 20;
        RadChart1.PlotArea.YAxis.AxisLabel.Appearance.Dimensions.Width = 400;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto = true;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.None;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Y = 200;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.X = 0;
        RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Qaisys Rating";


        RadChart1.DataSource = dv;
        RadChart1.DataBind();

What shall I do in order to display the chart axis labels?
Konstantin Petkov
Telerik team
 answered on 06 Mar 2008
1 answer
140 views
I've been able to add and delete nodes by attaching them to button click events, but I'm having an issue trying to figure out how to edit a node with a button click event.  I want this to happen on the button click because I want clicking on the node itself to fire a different event.  What is the easiest/cleanest way to do this?

Thanks.
Veselin Vasilev
Telerik team
 answered on 06 Mar 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?