Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
121 views
Hi Experts,

I have a radGrid on my aspx page with some input controls. 
In radGrid i have 2 columns one is GridEditCommandColumn for editing record and other is GridButtonColumn for deleting record. I also placed radAjaxPanel and radAjaxLoading panel. All input controls and grid resides under raAjaxPanel.
When I click edit button from grid it populates all the input controls and grid gets disappear. Similarly when i click delete button from grid it makes an ajax call like edit button does and disappears the grid.

Can anyone please help me out.

Thanks,
Mohsin
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
287 views

Hello,

I'm having an issue posting values from a child window RadTextBox to the parent window RadTextBox. I can successfully post the value if I use an <input> tag on the parent page but when I swap it for a <asp:TextBox> or <telerik:RadTextBox> the javascript breaks with error "Microsoft JScript runtime error: 'valCity' is null or not an object. Take a look at the code below:

Parent Page:

 

 

 

 

function openDialog()
{
radDialog1 = radopen("DataMigration_Dialog1.aspx", "RadWindow1");
}
<telerik:RadButton ID="rb_Migrate" runat="server" Width="150px" 
Text="Migrate Accounts" EnableEmbeddedSkins="false" BackColor="#33393E" 
ForeColor="White" OnClientClicked="openDialog" AutoPostBack="false">
   
</telerik:RadButton>
   
<br />
</asp:Panel>
   
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="false" >
   
<Windows>
   
<telerik:RadWindow ID="RadWindow1" runat="server" Height="450" Width="240" Behaviors="Close, Minimize, Maximize, Reload" Modal="true" >
   
</telerik:RadWindow>
   
</Windows>
   
</telerik:RadWindowManager>
   
<asp:TextBox ID="City1" runat="server" ></asp:TextBox>
   
<%--<input type="text" id="City" value="Hide" runat="server" />--%>
<asp:TextBox ID="ParentCity" runat="server" ></asp:TextBox>
   
<asp:TextBox ID="TimeZone" runat="server" ></asp:TextBox>
   
<asp:TextBox ID="DMSVendor" runat="server" ></asp:TextBox>
   
<asp:TextBox ID="DMSUsername" runat="server" ></asp:TextBox>

Child Page:

function submit()
        {
            valCity = parent.document.getElementById("City1");
  
valCity.value = document.getElementById("modalCity1").value;
  
self.close();
               }
City:
    <br />
        <telerik:RadTextBox ID="modalCity1" runat="server" EnableEmbeddedSkins="false" Width="200">
        </telerik:RadTextBox>
  
  
<telerik:RadButton ID="RadButton1" runat="server" Text="Submit" 
            EnableEmbeddedSkins="false" Skin="WebBlue" ButtonType="StandardButton" 
            BackColor="#CCCCCC" OnClientClicked="submit" >
        </telerik:RadButton>

 

 

Shinu
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
97 views
What is the best/easiest way to center items on a menu?  I've tried writing css to do it, but it never seems to work.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
238 views
Hello,

I am attempting to get multiple column headers for the asp.net ajax RadGrid. 

Example:
                                        [            total2        ]
[Sub 1]  [Sub 2]  [Sub 3]  [Sub 4 [   Sub 2     ]

such as :http://blogs.telerik.com/pavelpavlov/posts/09-12-04/adding_additional_power_to_radgridview_for_silverlight_with_attached_behaviors.aspx

The Sub columns will be the data binder and the filters, it just need a spanning column above that.

Do you have any suggestions about this ?

Best regards.
Thank you.
Princy
Top achievements
Rank 2
 answered on 11 Apr 2011
2 answers
100 views
Hello,

How do i get the cell value of a RADGRID in a Grid event
 
Appreciate the help...
Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2011
4 answers
116 views
So so so f*cking frustrated. New to ASP.NET and I can't get my head around the simplest concepts.

I have basic 'required' validators on fields - but when is the validation summary/error messages produced?

For example check this link (which is extremely similar to what I'm doing): http://www.aspxcode.net/free-asp-net-validation-source-code.aspx?Topics=How%20to%20Use%20ValidationSummary

When the button is clicked is when the validation "happens." But how? The code behind the button doesn't handle this!? 

I know this is not yet telerik-specific but once this question is answered I have another question regarding telerik-control specific validation (which may be solved depending on your explanation and my grasp of it).

Thanks a lot, any help and basic understanding here will be very much appreciated,

Dan
Veronica
Telerik team
 answered on 10 Apr 2011
3 answers
236 views
1).  Animations are available if I integrate this with JQuery?  Is there a walkthrough for how to install/implement this feature?

2).  Are there any good in-depth articles on Resources/Resource Types, what they are conceptually, how/why they're used, what scenarios are they used for.

3).  I've read through some articles on what the Scheduler can do, but just haven't found where to look to find how to do everything, and why, maybe an article explaining the architecture of the control and how to work with it in general.

4).  How would I customize the input of a new appointment.  For instance, I would want the user to be able to select from a drop down list of attendees from my database, he would be able to choose an attendee from a list.  Also, would be able to choose from another drop down list the reason for the appointment.  There may be some other data points as well, such as additional notes & description, in addition to the title and all other datapoints that come default with an appointment.  How would I go about implementing this functionality?  Do I add combo boxes to the insertTemplate, or the AdvancedInsertTemplate?  Are there any walkthroughs or demos for customizing this part?

5).  For instance, I see that there's an Appointment business object that represents each entry on the grid.  But this BO is fixed and doesn't have things like an ID for the user attending and an ID for the appointment reason (or whatever custom data we want to track). When we create a custom appointment with our custom template and the user chooses from these two drop-downs and the RadScheduler_AppointmentCreated event is fired it delivers an AppointmentCreatedEventArgs e that has an e.Appointment object that wouldn't tell us anything about these extra datapoints.  How do we get around this?

Thank you to anyone who is able to steer me in the right direction for any of these questions.
Veronica
Telerik team
 answered on 10 Apr 2011
1 answer
120 views
Hi,

I was hoping to to change a GridBoundColumn row value to be a LinkButton when the Edit button is clicked.

Here's the column:
<rad:GridBoundColumn DataField="FileName"  UniqueName="NameColumn" />

Then I'm guessing the change needs to take place when the EditCommand event is raised
void ListGrid_EditCommand(object source, GridCommandEventArgs e)

So how would I find the "NameColumn" and change its value to a LinkButton on Edit?

Also, is it possible to get the Row DataItem on the EditCommand event? I wasn't able to find a way to do this. 
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Apr 2011
4 answers
154 views
Hi,

I'm evaluating the RadChart control and I have some questions about scale breaks:

- Is it possible to set the height of the different segments? For example: I'm using four segments. When I display the four segments the area for each segment is the same (height for each segment is about total height/4), but when I display three or two segments the height of one segment is bigger than the rest. I would like the height segments to be the same in all the cases.
(I've attached some screenshots for this example).

- Is it possible to set the Y-Axis labels for each segment with a different appearance (for example text color)?

- Is it possible to set a different background color for each segment?

Thanks in advance.
John.
john
Top achievements
Rank 1
 answered on 09 Apr 2011
4 answers
148 views
Hello, I'm using a gridtemplatecolumn to find the differnce betwean two date columns. I then want to take the average of that column which I do through code. It works fine until a filter is applied on any column. I've have the code shown below. Any suggestions?

<

 

 

telerik:GridDateTimeColumn UniqueName="DatePlaced" DataField="DatePlaced" HeaderText="Date Placed"

 

 

 

 

HeaderStyle-Width="160px" DataFormatString="{0:d}">

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

<telerik:GridDateTimeColumn UniqueName="DateShipped" DataField="DateShipped" HeaderText="Date Shipped"

 

 

 

 

HeaderStyle-Width="160px" DataFormatString="{0:d}">

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

<telerik:GridTemplateColumn DataField="DaysToShip" HeaderText="Days To Ship" >

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="lblDaysToShip" runat="server"></asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<FooterTemplate>

 

 

 

<asp:Label ID="lblDaysToShipFooter" runat="server"></asp:Label>

 

 

 

</FooterTemplate>

 

 

 

</telerik:GridTemplateColumn>


C# code

 

 

double

 

 

totalRows, countRows;

 

 

protected

 

 

 

void TrackingGrid_ItemDataBound(object source, GridItemEventArgs e)

 

 

{

 

 

 

 

if (e.Item is GridDataItem)

 

 

{

 

 

 

 

GridDataItem item = (GridDataItem)e.Item;

 

 

(item.FindControl(

 

 

"lblDaysToShip") as Label).Text = DateTime.Parse(item["DateShipped"].Text).Subtract(DateTime.Parse(item["DatePlaced"].Text)).Days.ToString();

 

 

totalRows +=

 

 

Double.Parse((item.FindControl("lblDaysToShip") as Label).Text);

 

 

countRows += 1;

 

}

 

 

 

 

if (e.Item is GridFooterItem)

 

 

{

 

 

 

 

GridFooterItem footerItem = e.Item as GridFooterItem;

 

 

(footerItem.FindControl(

 

 

"lblDaysToShipFooter") as Label).Text = "Average days: " + (totalRows / countRows).ToString("N2");

 

 

}

 

}


Thanks for your help
Greg

Greg
Top achievements
Rank 1
 answered on 08 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?