Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
198 views
Hi All,
Reqirement:
I am using radwindow in my application.In parent page i have one linkbutton,if i click on that link popup window will open.In popup window one save button is there.i will select one row in that popup then i click on save button,Popup will close & parent grid has to refresh.

Above reqirement is woking fine in IE .but it is not working in Mozilla Firefox browser.Please find the code below in Parent & child pages.

Parentpage:

Design page:

<

telerik:RadAjaxManager ID="radAjaxManager" runat="server" OnAjaxRequest="radAjaxManager_AjaxRequest"

 DefaultLoadingPanelID="radAjaxLoadPanel">  

 

</telerik:RadAjaxManager

 

function

refreshGrid(arg)
{
  

if (!arg) { 

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("Rebind"); 
}

else {  

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("RebindAndNavigate"); 
}

}

 

 

function OnClientclose(sender, eventArgs) { 

if (!eventArgs) { 
$find("<%= radAjaxManager.ClientID %>").ajaxRequest("Rebind"); 
}

else {  

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("RebindAndNavigate");

}


Code Page:

 

protected void radAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)

{

 if (e.Argument == "Rebind" || e.Argument == "RebindAndNavigate")

 {

 using (DataContext db = new DataContext())

{

db.ObjectTrackingEnabled = false;  

LoadCountry(db);

LoadConcept(db);

fileUpload.Visible = 

true;  

 

 

if (Convert.ToInt16(ddlFileType.SelectedValue) != Convert.ToInt16(ConceptAttachmentType.Board))

{

grvConcept.DataSource = null;  

grvConcept.DataBind();

grvConcept.Visible = false;  

}

}

}

}

Child Page:

Design Page:

 

function CloseAndRebind(args) {  

GetRadWindow().BrowserWindow.refreshGrid(args);

GetRadWindow().Close();

}

 

 

function GetRadWindow() {  

var varWindow = null;  

if (window.radWindow) varWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog

else if (window.frameElement.radWindow) varWindow = window.frameElement.radWindow; //IE (and Moz as well)

return varWindow;  

}


Code page:

protected

void btnSave_Click(object sender, EventArgs e)  

{

.................

objMsg.ShowMessage(

"Add filler", "Saved Successfully", (Int16)MessageType.SUCCESS); 
ScriptManager.RegisterStartupScript(this.updProjectCreation, this.GetType(), "strScript", "javascript: CloseAndRebind()", true);

}
}

Please help me.

Thanks
sekhar

Brijesh Gadhiya
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
78 views
I like Telerik TV, I do. But it is, if we're honest, just about showing the latest functionality without actually trying to TEACH you anything. I've said this before, and I'll not be afraid to say it again; Telerik could benefit A LOT from getting together with a firm like Pluralsight. I would love to see Pluralsight standard courses on Kendo, Sitefinity and Open Access.
Stuart Hemming
Top achievements
Rank 2
 answered on 25 Sep 2012
2 answers
82 views
I have a page that has multiple tabs using the telerik:RadMultiPage and RadTabStrip controls. 
Those tabs are user controls and some have RadGrids, which uses a RadRadToolipManager control to fire a page as a menu.
This works fine from tab to tab. However, it appears that once one tab is loaded and its corresponding grid's toolip is loaded, the previous tab's grid's tooltips no longer fire.

Each tab's tooltip gets wrired up in its RadGrid's ItemDataBound event, of course.
Then The RadToolTipManager's OnAjaxUpdate and UpdateToolTip methods get called.

Again, everything works fine, and when a new tab is clicked its grid tooltip fires fine, but, the previous tab's grid's tooltips doesn't fire if I were to go back and try it.

Addendum:
I noticed that when I click a new tab, the Page_Load of the previously clicked tabs will fire. In the Page_Load of each tab, I have the code:  this.RadToolTipManager2.TargetControls.Clear();

I have this because when the tab's grid is sorted, I have to clear the target controls lest they maintain the wrong data. At least that is the solution I came up with.

So, now I may pose the question, is my solution above (maintain tooltip integrity on a grid sort) the right one? If not, I could remove it ( thus solving my current problem) and implement it the correct way.

Thanks for any info.






Robert Helm
Top achievements
Rank 1
 answered on 25 Sep 2012
2 answers
80 views
Hi!

I have a scenario with a RadGrid binded to a ObjectDataSource ( DataSourceID = "DS")

<asp:ObjectDataSource ID="DS" runat="server" EnablePaging="True"                SelectCountMethod="GetListCount"<br>                SelectMethod="GetList" SortParameterName="sortType" TypeName="...."><br></asp:ObjectDataSource>

I've noticed then when I export da grid the  " grid.MasterTableView.ExportToExcel();" fires the GetList() method twice. This doesn't happens when I rebind the grid after the user clicked the search button. This only happens when exporting the grid. What may be causing the GetList method is being called twice each time call the export.?

Best regards



Regula
Top achievements
Rank 1
 answered on 25 Sep 2012
18 answers
908 views
Hi,  I have a dataset that has a column called bold that's a bit.   When it's true I want that row to be bold, otherwise not.  How can I do this in radgrid?  Thanks in advance
Casey
Top achievements
Rank 1
 answered on 25 Sep 2012
4 answers
102 views
I have a grid that I've added a custom CommandItemTemplate to.  The template contains (among other things) a link button with the CommandName of 'InitInsert'.  This button is working great for the purposes of adding new records to the grid.

My problem is that when my Add LinkButton is clicked the client side OnCommand event is not being fired.

Ideas on howto fix this?
Tracy Dryden
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
93 views
Dear Friend I will add two Scanerio that will explain you the clear bugs that we have with rad Chart XAxis!
<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="edsTotalStakesForEachShop"
    IntelligentLabelsEnabled="true">
    <Series>
        <telerik:ChartSeries Name="Series 2" DataXColumn="ShopId" DataYColumn="TotalStakes">
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <XAxis AutoScale="False" DataLabelsColumn="Name" MaxValue="7" MinValue="1" Step="1"
          >
            <AxisLabel>
                <Appearance>
                </Appearance>
            </AxisLabel>
            <Appearance>
                <LabelAppearance RotationAngle="90">
                </LabelAppearance>
            </Appearance>
        </XAxis>
    </PlotArea>
</telerik:RadChart>

I am using above code and in this I add XAxis DataLabel Column when we use this it will show me result mention in screen shots A.

Now when we comment this XAxis check below code
<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="edsTotalStakesForEachShop"
    IntelligentLabelsEnabled="true">
    <Series>
        <telerik:ChartSeries Name="Series 2" DataXColumn="ShopId" DataYColumn="TotalStakes">
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <%--<XAxis AutoScale="False" DataLabelsColumn="Name" MaxValue="7" MinValue="1" Step="1"
          >
            <AxisLabel>
                <Appearance>
                </Appearance>
            </AxisLabel>
            <Appearance>
                <LabelAppearance RotationAngle="90">
                </LabelAppearance>
            </Appearance>
        </XAxis>--%>
    </PlotArea>
</telerik:RadChart>

It will show the result mention in Image B!

SO the problem is When we will use X Axis DataLable Column
1) It will hide the last series 
2) The Label got messup

Plesase suggest good ways to fix it!

Thanks
Petar Kirov
Telerik team
 answered on 25 Sep 2012
1 answer
150 views
Hi, I'm currently populating a list of bookings by expanding the taking all the appointments in my scheduler and putting it into a datatable.  However my issue is that I'm unable to retrieve the room_Id or in most causes we refer to it as resource_ID for my bookings.

Is there a way to call my Appointment object to retrieve the resource_Id assigned to the specific booking.

 DataTable tanning_Availiability = new DataTable();

            tanning_Availiability.Columns.Add("Subject");
            tanning_Availiability.Columns.Add("Start");
            tanning_Availiability.Columns.Add("End");
            tanning_Availiability.Columns.Add("room_Id");

            foreach (Appointment a in scTanning_Availiability.Appointments)
            {
                //Occurrences of a recurrence master are not generated untill they      
                //are within RadScheduler's visible range. This mandates the occurrences     
                //information to be extracted from the Master's recurrence rule as follows:     
                if (a.RecurrenceState == RecurrenceState.Master)
                {
                    RecurrenceRule parsedRule;
                    RecurrenceRule.TryParse(a.RecurrenceRule.ToString(), out parsedRule);

                    //If a recurring appointment does not have specified end time it will have     
                    //endless occurrences. In this case you can explicitly put a restriction:  
                    string Date = Request.QueryString["Date"];
                    DateTime ConvDate = Convert.ToDateTime(Date);

                    parsedRule.SetEffectiveRange(ConvDate, ConvDate.AddDays(1));

                    foreach (DateTime occurrence in parsedRule.Occurrences)
                    {
                        tanning_Availiability.Rows.Add(new string[] { a.Subject.ToString(), occurrence.AddHours(-6).ToString(), occurrence.Add(a.Duration).AddHours(-6).ToString(), a.Attributes.Keys.ToString() });
                    }
                }
                else //Get the rest of the appointments     

                    //If the SelectedDate of RadScheduler is set so that the visible range encompasses occurences of      
                    //a recurring appointement, these occurences will be generated now so they will be added once again     
                    //to the DataTable. To prevent this, we use the following check:     
                    if (a.RecurrenceState != RecurrenceState.Occurrence)
                    {
                        tanning_Availiability.Rows.Add(new string[] { a.Subject.ToString(), a.Start.AddHours(-6).ToString(), a.End.AddHours(-6).ToString(), a.Attributes.Keys.ToString() });
                    }
            }
Cat Cheshire
Top achievements
Rank 1
 answered on 25 Sep 2012
2 answers
131 views
I need to enter elasped time in the format hh:mm:ss

The RadTimePicker is almost perfect except it is designed for time of day, not elapsed time, its not correct how it looks and  behaves for elapsed time.

Using the Masked Text box as shown below is less than ideal, since unless the user completey enters the data correctly(never happens), it will generate an error on the server side.

Any Ideas?
<telerik:RadMaskedTextBox ID="sesTotalTime" Label="Total Time:" runat="server" Text="<%# Bind('sesTotalTimeFormatted') %>"
    ToolTip="Total Session Time (hh:mm:ss)" Mask="##:##:##">
</telerik:RadMaskedTextBox>



Bryan Kowalchuk
Top achievements
Rank 1
 answered on 25 Sep 2012
2 answers
91 views
Hi Team,
we have Telerick Q2 2010 license in our project. can we use the same license for chart control's. or do we require any other license.
Advance Thanking you.

Regards,
Mr.Perfect.
Vladi
Telerik team
 answered on 25 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?