Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
119 views
I have a RadToolTip that is being shown as a modal dialog.  The dialog contains a RadGrid with Filtering enabled. When the user enters filter text and hits ENTER to apply the filter, an image button on the main page behind the modal dialog fires.

How do I stop this behavior?

Thanks

Steve
Marin Bratanov
Telerik team
 answered on 26 Apr 2013
3 answers
400 views
How do you programatically set multiple behaviors for a rad window.  I can get it to accept a sibngle behavior such as close or move but how do you tell it to have both Close and Move.

Thanks
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2013
0 answers
86 views
Hi,

I have a splitter with 2 panes, on the left I have a RadTreeView, when I click on the node, the page will show on the right. But my problem is I want to display RadAjaxLoadingPanel before the page display. I try to use RadAjaxManager,
set ajaxsetting for RadTreeView updating a RadSplitter which having the RadTreeView that trigger it. This cause the RadTreeView to postback which I don't want. So how I can avoid the RadTreeView postback since I can only set the updatecontrol RadSplitter not the targeted RadPane. Its postback due to the server side NodeClick event, It seen that I need this even to make it work (display loadingpanel).
I also try to use Client script to display the RadAjaxLoadingPanel but it didn't work. Is there anyway I can make it work? I only want to make the RadTreeView node click with no postback, display the loadingpanel before the page load on the right pane.
1)

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">

    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadTreeView1">

                     <UpdatedControls>

                         <telerik:AjaxUpdatedControl ControlID="RadSplitter2" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />

                     </UpdatedControls>

             </telerik:AjaxSetting>

         </AjaxSettings>

 </telerik:RadAjaxManager>

 


2)

function OnClientNodeClicking(sender, args) { 
    var currentLoadingPanel = $find("<%=RadAjaxLoadingPanel1.ClientID %>");

    currentLoadingPanel.visibility = true;

     var url = args.get_node().get_value(); // get value

     var rd = $find("<%=Main.ClientID%>");

     rd.set_contentUrl(url); // Set the url

     args.set_cancel(true); // Cancell the event

    currentLoadingPanel.visibility = false;

}


Can anyone please help me? Thanks.
Dylan
Top achievements
Rank 2
 asked on 26 Apr 2013
11 answers
128 views
We have a user that uninstall the automatic updated IE10, which went back to the IE9 (the company's standard), but now the button Click action that leads to the radGrid's .ExportToPdf() method does nothing (it seemds to process for a few second but no error message nor a PDF poping up like before the IE debacle:).  Other (non .exportToPdf() based) PDF links work in the resurrected IE9 browser (our app does not work in other browser so can't test that way).

Any ideas on what setting might have gotten nuked (IOWs: what settings are needed) or does anything need to get reinstalled?

The apsx has:

<asp:Button ID="uxPrint" runat="server" ToolTip="Save/Print form" onclick="uxPrint_Click" UseSubmitBehavior="false"/>

There is no javascript on this button (other than what goes on with telerik's AJAX system);
 
The codebehind Starts with:

protected void uxPrint_Click(object sender, EventArgs e) { 
  RadGrid rgMain = Page.FindControl("rgMain") as RadGrid;

    rgMain.ExportSettings.OpenInNewWindow = true;

    rgMain.ExportSettings.Pdf.Title = uxEmployeeNameField.Text + " - " + uxCategoryField.Text; //...

    rgMain.ExportSettings.Pdf.PageTitle = rgMain.ExportSettings.Pdf.Title;

    rgMain.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("10mm");

 . . .

 

//and finishes with:

    rgMain.MasterTableView.ExportToPdf();

}

AGAIN, it worked before the IE 10 upgrade then unistall back to IE9 which worked.
THANKS
Daniel
Telerik team
 answered on 26 Apr 2013
2 answers
183 views
Although i have coded the x-axis label to be hidden, it is still visible in my application.

This is the statement.
chart.PlotArea.XAxis.AxisLabel.Visible = false;

What i am doing wrong?
Sonia
Top achievements
Rank 1
 answered on 26 Apr 2013
6 answers
178 views
Hi

One of my websites had radgrids and radtrees to display data.  When the user clicks a row a RadDock windo appears with the data in it.  All worked fine until the 2013 Q1 upgrade.  Now on the second load I get an Invalid JSON primitive error (as below)

Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: {"Top":50,"Left":225,"DockZoneID":"","Collapsed":false,"Pinned":true,"Resizable":false,"Closed":false,"Width":"821px","Height":null,"ExpandedHeight":0,"Index":-1,"IsDragged":false}.

If I put the RadDock in a RadDockZone it doesn't have the error however it renders inline with the page instead of as a floating window.

Any suggestions on what has happened and why this happens on the 2nd load rather than the first?

Regards

Jon


Jon
Top achievements
Rank 1
 answered on 26 Apr 2013
3 answers
92 views
I want to use RadChart to show the evolution of an indicator value compared to an objective value along a configurable period.

A database query returns the list of values, however maybe there is no values for all the periods.

01/01/2013 47,32
01/02/2013 35,36
01/03/2013 60,53
01/04/2013 82,75

I made the DataBind from a SqlDataReader.

On the other hand i know the objective value at the begining of the period and at the end of the period, for example:

01/01/2013
20           //This is the objective value in the first period
01/12/2013 120 //This is the objective value in the last period


ChartSeries serieObjective = new ChartSeries("Objective") { Type = ChartSeriesType.Line };
serieObjective.Items.Add(new ChartSeriesItem(1, 20));

int
periods = NumberOfPeriods(firstPeriod, lastPeriod);  //Returns the number of periods (in this example 12)
serieObjective.Items.Add(new ChartSeriesItem(periods, 120));
chart.Series.Add(serieObjective);

In my chart I only can see the first 4 periods as the first serie only has 4 values.
Therefore I cannot see the value of the second serie at the end of the period.

Any suggestion.
Thank you in advance.
Sonia
Top achievements
Rank 1
 answered on 26 Apr 2013
12 answers
987 views
Hello Sir,


I had used in radwindow in more pages.Now i want to change the left side default icon in all the pages.

How i will change the default left icon to my new icon.I want to need any script so i will apply in one user control or my main page so it will be effect to all other my pages, i don't want to change that icon path in all the pages.

So is there any script or css for it will effect to alll the pages?


Please help me.

Thanks & Regards
Jignesh Patel

Ashwin
Top achievements
Rank 1
 answered on 26 Apr 2013
1 answer
94 views
Hi,
  I have using RadGrid. In default row set in 5. Assign the more than 5 rows how could i add row

This is my coding its working good but greater then 4 row empty row added previous row value clear.

using (var db = new DoskContractServicesDataContext(Globals.strCon))
            {
                var ClaimAssign = (from a in db.DSProjectMasters
                                   where !db.ProjectSubCons.Any(b => b.ProjectCode == a.ProjectCode && b.status != "DEL" && b.compcode == a.CompCode && b.Subconcode==Subcontractor.SelectedValue) && a.CompCode == compcode && a.FinalStatus == "Cls" && a.Status != "DEL"
                                   select new { a.ProjectCode, a.ProjectTitle,a.DtCommencement,a.DtCompletion,a.ContractAmount }).ToList();
                for (int i = 0; i <= RadGrid1.MasterTableView.Items.Count - 1; i++)
                {
                    Label SNO = (Label)RadGrid1.MasterTableView.Items[i].FindControl("Sno");
                    RadTextBox ProjectID = (RadTextBox)RadGrid1.MasterTableView.Items[i].FindControl("ProjectID");
                    RadTextBox ProjectTitle = (RadTextBox)RadGrid1.MasterTableView.Items[i].FindControl("ProjectTitle");
                    Label claimnostart = (Label)RadGrid1.MasterTableView.Items[i].FindControl("claimnostart");
                    RadDatePicker RadDatePicker1 = (RadDatePicker)RadGrid1.MasterTableView.Items[i].FindControl("Mainprojectcommencement");
                    RadDatePicker RadDatePicker2 = (RadDatePicker)RadGrid1.MasterTableView.Items[i].FindControl("MainprojectCompletion");
                    HiddenField MainContractAmount = (HiddenField)RadGrid1.MasterTableView.Items[i].FindControl("MainContractAmount");

                    if (ClaimAssign.Count() > i)
                    {
                        SNO.Text = Convert.ToString(i + 1);
                        ProjectID.Text = ClaimAssign[i].ProjectCode.ToString();
                        ProjectTitle.Text = ClaimAssign[i].ProjectTitle.ToString();
                        RadDatePicker1.SelectedDate = ClaimAssign[i].DtCommencement;
                        RadDatePicker2.SelectedDate = ClaimAssign[i].DtCompletion;
                        MainContractAmount.Value = ClaimAssign[i].ContractAmount.ToString();
                        claimnostart.Text = ClaimAssign[i].ProjectCode.ToString() + "/" + compcode + "/" + "PCL";
                        if (i >= 4)
                            addrow(i);
                    }
                }
            }

 private void addrow(int currow)
        {
            object[] emptyRow = new object[columcount];
            tabledata1 = null;
            DataTable dt = tabledata1;
            assigndt2(dt);
            dt.Rows.Add(emptyRow);
            RadGrid1.DataSource = dt;
            RadGrid1.DataBind();
        }

private void assigndt2(DataTable dt)
        {
            RadTextBox r1;
            RadNumericTextBox rn1;
            CheckBox c1;
            Label l1;
            HiddenField h1;
            RadDatePicker d1;

            for (int i = 0; i <= RadGrid1.Items.Count - 1; i++)
            {
                if (dt.Rows.Count - 1 < i)
                {
                    object[] emptyRow = new object[columcount];
                    dt.Rows.Add(emptyRow);
                }
                //c1 = (CheckBox)RadGrid1.Items[i].FindControl("active");
                //dt.Rows[i]["active"] = c1.Text;
                l1 = (Label)RadGrid1.Items[i].FindControl("Sno");
                dt.Rows[i]["Sno"] = l1.Text;
                r1 = (RadTextBox)RadGrid1.Items[i].FindControl("ProjectID");
                dt.Rows[i]["ProjectID"] = r1.Text;
                r1 = (RadTextBox)RadGrid1.Items[i].FindControl("ProjectTitle");
                dt.Rows[i]["ProjectTitle"] = r1.Text;
                r1 = (RadTextBox)RadGrid1.Items[i].FindControl("Subcontitle");
                dt.Rows[i]["Subcontitle"] = r1.Text;
                d1 = (RadDatePicker)RadGrid1.Items[i].FindControl("DateofCommencement");
                dt.Rows[i]["DateofCommencement"] = d1.SelectedDate;
                d1 = (RadDatePicker)RadGrid1.Items[i].FindControl("Mainprojectcommencement");
                dt.Rows[i]["Mainprojectcommencement"] = d1.SelectedDate;
                d1 = (RadDatePicker)RadGrid1.Items[i].FindControl("DateofCompletion");
                dt.Rows[i]["DateofCompletion"] = d1.SelectedDate;
                d1 = (RadDatePicker)RadGrid1.Items[i].FindControl("MainprojectCompletion");
                dt.Rows[i]["MainprojectCompletion"] = d1.SelectedDate;
                rn1 = (RadNumericTextBox)RadGrid1.Items[i].FindControl("ContractAmount");
                dt.Rows[i]["ContractAmount"] = rn1.Text;
                h1 = (HiddenField)RadGrid1.Items[i].FindControl("MainContractAmount");
                dt.Rows[i]["MainContractAmount"] = h1.Value;
                rn1 = (RadNumericTextBox)RadGrid1.Items[i].FindControl("LD");
                dt.Rows[i]["LD"] = rn1.Text;
                d1 = (RadDatePicker)RadGrid1.Items[i].FindControl("tentativedate");
                dt.Rows[i]["tentativedate"] = d1.SelectedDate;
                l1 = (Label)RadGrid1.Items[i].FindControl("claimnostart");
                dt.Rows[i]["claimnostart"] = l1.Text;
                rn1 = (RadNumericTextBox)RadGrid1.Items[i].FindControl("autoclaimno");
                dt.Rows[i]["autoclaimno"] = rn1.Text;
                rn1 = (RadNumericTextBox)RadGrid1.Items[i].FindControl("paymentcert");
                dt.Rows[i]["paymentcert"] = rn1.Text;
            }
        }


Thanks & Advance
Ansari.
Eyup
Telerik team
 answered on 26 Apr 2013
3 answers
1.1K+ views
What I am trying to do is open a popup window on a linkbutton click on a radgrid.  Tried 2 methods and alls the page does is postback and produce no window.  What I would like is a window to open so that they can email someone from the window that pops up.

1st method, not working

<telerik:GridTemplateColumn HeaderText="RESCHEDULE">
                       <ItemTemplate>
                           <asp:ImageButton ID="imgSched" runat="server" CommandName="reSched" CommandArgument='<% #Bind("intEOLId") %>' ImageUrl="~/Images/Bones.png" OnClientClick="javascript:window.open('../Admin/Email.aspx?EolId);" Height="30px" Width="30px" />
                       </ItemTemplate>
                   </telerik:GridTemplateColumn>


2nd method not working
If (e.CommandName = "reSched") Then
           Dim EolId As Integer = Convert.ToInt32(e.CommandArgument)
           Dim item As GridDataItem = TryCast(e.Item, GridDataItem)
           Dim linkSched As ImageButton = DirectCast(item.FindControl("imgSched"), ImageButton)
           Dim Vreturn As String = ""
 
 
           linkSched.Attributes.Add("onclick", "javascript:window.open('../Admin/Email.aspx?EolId=" & EolId & "'); return false;")
 
           'sql = "Execute usp_EOLResched " & EolId
 
           'Vreturn = getData(sql).Rows(0)(0)
 
           'If Vreturn = "1" Then
           '    Fillgrid = True
           '    myRadGrid.Rebind()
           'End If
 
       End If

Shinu
Top achievements
Rank 2
 answered on 26 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?