Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
I have a dynamic columns and dynamic rows which am binding in rad grid
ex:-


name col1 col 2 col3 col4  TOtal
a  -----1------4-----5-----7 --------- 45
b ------1------4-----5-----7  --------- 45 
c ------1------4-----5-----7  --------- 45 
tota--16-----64---65----67  ----------100


now i want to insert item template in all this values so that user can enter numeric fields .. also i want regular expressions
i dont have any name of columns since user can edit column names also ... also TOTAL 
please tell me how can i do this 
Richard
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
185 views
i am trying to use GridHyperLinkColumn to be able to download file, everything works perfect except downloading the file.
the link appears successfully but when clicking on it nothing happens.

<telerik:GridHyperLinkColumn HeaderText="File"  UniqueName="FILE"  DataTextField="Original_FileName"  Target="_blank"  DataNavigateUrlFields="Physical_FileName"></telerik:GridHyperLinkColumn>

I am using the following structure:

RadAjaxManager in  the MasterPage
RadAjaxManagerProxy in the ContentPage wich host the RadGrid which is inside RadAjaxPanel
Maria Ilieva
Telerik team
 answered on 09 May 2012
0 answers
98 views
I was basing some code off this example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultcs.aspx?product=grid 

I got all the complicated things to work, but when I go to insert I can't seem to figure out the selected RadComboBox items DataValueField value.

I noticed in the example that they are capturing it in "OnSelectedIndexChangedHandler" and storing it in a session variable. Later they use a Session param to SQL insert with a SQL Data source.

I'm using EF4 in 'Manual' mode, and I really don't want to store the value in a Session variable.

In my RadGrid InsertCommand handler, I do the standard:
GridEditableItem theItem = e.Item as GridEditableItem;
BusinessObject bo = ApplicationContext.Current.Entities.BusinessObject.CreateObject();
theItem.UpdateValues(bo);

Is there a better way to pass on a selected RadComboBox value to the hosting RadGrid row/item?
Any way to do it so that (GridEditableItem).UpdateValues or ExtractValues works?

Thanks,
Frank

Frank
Top achievements
Rank 1
 asked on 09 May 2012
9 answers
646 views
Hello,

I have two textboxes in a row and Having checkbox to select and deselect the row.

If I uncheck the checkbox, I want to disable the two textboxes. 

If I check the checkbox, I want to enable the two textboxes.

How can I do this on client side ?

TIA
Elliott
Top achievements
Rank 2
 answered on 09 May 2012
2 answers
378 views
Hello ,
I want to create a new tab in my radtabstrip with it's needed radpageview while i run my project.

This is my code for the program :
 
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadTab tab = new RadTab("New tab");
        RadPageView pageview = new RadPageView();
        pageview.ID = "NewRadPageView";
        pageview.ContentUrl = "Default5.aspx";
        RadMultiPage1.PageViews.Add(pageview);
 
        tab.PageViewID = pageview.ID;
        RadTabStrip1.Tabs.Add(tab);
    }
}

"Default5.aspx" is a page of my website that i created it before
Now i want to load this page in the new radpageview with clicking on the new tab
It seems my code is true but it doesn't work
I don't know , Where is it's wrong !!?

Please tell me what's wrong with my code!
Reply me as soon as possible :-s

Thanks alot
Hassan
Hassan
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
104 views
Hi,
Our RadListBox is adding items on clientside which uses TrackChanges and CommitChanges to persist the client side entries. However if our RadMultipage has RenderSelectedPageOnly="true" then going from one tab to the next loses all of the client side entries except the first list item that was added. Strange issue that can be fixed by setting the RadMultiPage's  RenderSelectedPageOnly="false" unfortunately this setting results in horrible loading performance for the RadMultiPage.

I am also seeing an error after deleting items from the RadListBox and trying to navigate to a new tab. This is the error:
"Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

Please Advise. 
Rory Haynie
Rory
Top achievements
Rank 1
 answered on 09 May 2012
0 answers
87 views
I have 3 buttons on my page. One that executes some data processing and 2 that generate output files.

I need ajax to execute on my data processing button to get the in progress graphic during the long data processing, however I must disable ajax for the two buttons that generate output files. I have attempted any applicible solution in the link located below to no avail. The closest I got was in the "Cancel the AJAX request on InitializeRequest event" solution, it does in fact post back but it does not call the proper onclick event tied to the button clicked. Is there something missing in this solution to direct the app to the proper event? Any other ideas? If you need code samples I can get it but I need to do some redacting first so in an effort to save me some time I wanted to see if there were any suggestions w/o posting code.

http://www.telerik.com/help/aspnet-ajax/ajax-exclude.html


I am using the following controls:
RadScriptManager
RadAjaxManager
RadAjaxManagerProxy

~Mike
Mike
Top achievements
Rank 1
 asked on 09 May 2012
3 answers
411 views
Hi,

There is some issue with row Vertical alignment for dynamically created Radgrid when its hosted on IIS7. Please refer the screen shot attached.  The header rows are not getting aligned with the data row.

1) RadGrid_development_pc.JPG
This screenshot is taken on the local development PC. This is no issue with aligment.

2) RadGrid_hosted_on_IIS7.JPG
This screenshot was taken after hosting the same RadGrid in IIS7. The data row is NOT aligned with the Header row.

Here are more details
Telerik Version : 2011.1.519.35
IIS Version : 7
.Net Framework : 3.5 SP1

Please provide a solution ASAP, since we are in deployment stage.

Thanks
Petrofac

Kavitha
Top achievements
Rank 1
 answered on 09 May 2012
7 answers
264 views
Basically what I'm trying to accomplish with a custom AdvancedForm, is that when the user changes one dropdown value, it will repopulate another. I have a Client dropdown, and clients have services assigned to them. When the client changes, I need to pull in the appropriate services they have based on what comes back from the database.

Currently I'm using ResourceControl.ascx which is just the single drop-down list. When the resources are initially being populated with the RadScheduler, I set them all to Available = false to hide them until the Client resource's RadComboBox index changes. 

I am currently using the following code to wire up the desired ComboBox on my AdvancedForm

RadComboBox cbClient = AdvancedForm.FindControl("ResClient").FindControl("ResourceValue") as RadComboBox;
//RadComboBox cbClient = e.Container.FindControl("ResClient") as RadComboBox; <- THIS DOESN'T WORK
if (cbClient != null)
{
    cbClient.AutoPostBack = true;
    cbClient.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cbClient_SelectedIndexChanged);
}

I've hacked together a solution that partially works, but I am unable to use Attributes or the properties of a Resource 

protected void cbClient_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    //RadComboBox rcb = (RadComboBox)sender;
    //RadSchedulerAdvancedFormResourceControl ctrl = (RadSchedulerAdvancedFormResourceControl)rcb.Parent;
     
    //Gets the resource control contained within the advanced form
    RadSchedulerAdvancedFormResourceControl resourceControl = AdvancedForm.FindControl("ResService") as RadSchedulerAdvancedFormResourceControl;
    //Grabs the ServiceType combo box for binding
    RadComboBox cbServiceType = AdvancedForm.FindControl("ResService").FindControl("ResourceValue") as RadComboBox;
             
    //Casts the sender as a RadComboBox, this was the client dropdown
    //RadComboBox cbClient = (RadComboBox)sender;
    //Declare an instance of a ResourceControl to deserialize the key selected
    RadSchedulerAdvancedFormResourceControl resControl = new RadSchedulerAdvancedFormResourceControl();
    //Will rebind the ServiceType dropdown based on who was selected
    //Since items bound to the control can be objects, they need to be serialized/deserialized
    object resourceKey = null;
    if (e.Value != "NULL")
    {
        resourceKey = DeserializeResourceKey(e.Value);
        //Access the provider
        LaSchedulerProvider provider = PopulateProvider();
        //Bind
        cbServiceType.Items.Clear();
        //cbServiceType.DataSource = provider.LoadClientServices(Convert.ToInt32(resourceKey), AdvancedForm.Start, AdvancedForm.End);
        //cbServiceType.DataValueField = "Key";
        //cbServiceType.DataTextField = "Text";
        //cbServiceType.DataBind();
 
        foreach (Resource clientResource in provider.LoadClientServices(Convert.ToInt32(resourceKey), AdvancedForm.Start, AdvancedForm.End))
        {
            clientResource.Available = true;
 
            cbServiceType.Items.Add(new RadComboBoxItem(clientResource.Text, SerializeResourceKey(clientResource.Key)));
        }
        cbServiceType.Items.Insert(0, new RadComboBoxItem("-", "NULL"));
    }
    else
    {
        resourceKey = "";
        cbServiceType.Items.Clear();
        cbServiceType.Items.Insert(0, new RadComboBoxItem("-", "NULL"));
    }

It's involved taking some of the methods from the various controls and making them Public or copying them and just seems really messy.

Is there ANY way this can be accomplished in a clean manner?
Peter
Telerik team
 answered on 09 May 2012
1 answer
87 views
Using the Group by resource vertically in timeline view to create a scheduling system. On a desktop version a single click of an appointment opens up a summary modal of the item in the schedule (bound to the client click event), and dragging allows changing who the appointment is assigned to.

On the iPad the "click" event seems to get lost/confused with a drag event and the summary window never appears. Anyone have thoughts on how it might be possible to fix this?
Peter
Telerik team
 answered on 09 May 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?