Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Is there a source of DataTypes for GridEditableItems?

 

TryCast(editedItem("ClientTypeID").Controls(0), TextBox).Text)

 

 

TryCast(editedItem("GroupID").Controls(0), DropDownList)

I have a field that is set as a  <telerik:GridNumericColumn>.
When I go to Insert/Update My record I am not sure what the object type is.

 

Shinu
Top achievements
Rank 2
 answered on 24 Feb 2010
3 answers
1.0K+ views
I want to collect all Items in a RadGrid form a function triggerd by a Button!

protected void lbtnChooseOffer_Click(object sender, EventArgs e) 
    foreach (var item in RadGridMembers.Items) 
    { 
    } 

But when i use this, all that item contains is an Id. How do i get all items from a RadGrid when i push a button?
Princy
Top achievements
Rank 2
 answered on 24 Feb 2010
8 answers
206 views
Hi.

I am using new version of RadControl for ASP.NET Ajax with Moss and WSS3.0

I am trying to create custom skin for sharepoint environment. but all the information I found this forum is old controls.

I do know how to create custom skin in asp.net application but not in sharepoint dev.

Would you please help or provide me with any documents?

Thanks

Mojesio nsyy
Top achievements
Rank 1
 answered on 24 Feb 2010
4 answers
317 views
I am having a problem when the browser back button is clicked after I have added multiple History points.

I have a multiview in a user control. The page that contains the user control uses a master page.

The multview has 4 basic steps "Select", "Billing", "Shipping", "Confirmation".
"Select" = 0
"Billing" = 1
"Shipping" = 2
"Confirmation" = 3

As the user steps through the view I add history points for the current view before I change to the next view.
 
            scriptManager.AddHistoryPoint("mykey", Convert.ToString(this.mvSignOrdering.ActiveViewIndex));  
            this.mvOrdering.ActiveViewIndex = 1; 

The URL gets displayed correctly in the browser: ordering.aspx#&&mykey=0,  ordering.aspx#&&mykey=1, ordering.aspx#&&mykey=2


When the user clicks the browser back button on the "Confirmation" view..... I capture the OnNavigate event for the ScriptManager but my key states the value of "1".

The url states the value should be "2" but the event in the code behind states "1".

Any one have any ideas on what could be going on here?
 It is possible for me to get the value directly from the URL since that is correct?


Thanks,


Felipe
Felipe Saldana
Top achievements
Rank 1
 answered on 23 Feb 2010
4 answers
125 views
Hi,

I am not sure how many out there have the same issue. Try this,

1. Go to this link
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
2. select the Hyperlink Manager and click on the tab Email
3. Add an email Id, subject and click on "OK" and check whether the email link has been created within your editor.

I am not seeing the email link created. I am surprised, the demo link does seem to work for me. I have a similar requirement and it does not work for me after changing the code as per documentation on the link above. 

If you're not getting this issue, it may be my browser.

Any help on this would be greatly appreciated.
Thank you,
Vijay


Ron Handley
Top achievements
Rank 1
 answered on 23 Feb 2010
6 answers
348 views
Hi,

I have been using the RadTreeView for about 9 months now and am really happy with it. Recently I upgraded my project to Prometheus and noticed the WebServiceSettings, which seems exactly what I was looking for.

But there is no help in the online help for TreeView and a search for WebServiceSettings on telerik gives no results.

Is there any chance of getting a nice little example with populating nodes on load and adding nodes on Expand?

Regards,
Mark Thomas.
Piyush Bhatt
Top achievements
Rank 2
 answered on 23 Feb 2010
4 answers
456 views
Hi guys,
We're encountering a very strange issue with RadComboBox. The Telerik.Web.UI version used is RadControls for ASPNET AJAX Q3 2008.
Using IE7, when getting the items from a WebService, we get the following error:

invalid web service call, missing value for parameter: 'context'.

The RadComboBox is added at runtime, in the following manner:
RadComboBox ddlPublisher = new RadComboBox(); 
tdPublisher.Controls.Add(ddlPublisher); 
 
ddlPublisher.ID = "ddlPublisher"
ddlPublisher.Width = Unit.Pixel(200); 
ddlPublisher.EnableLoadOnDemand = true
//ddlPublisher.ExpandEffect = RadComboBoxExpandEffect.Fade; 
ddlPublisher.ItemRequestTimeout = 500; 
ddlPublisher.OnClientDropDownOpening = "ddlRad_OnClientDropDownOpening"
ddlPublisher.OnClientSelectedIndexChanged = "ddlPublisher_SelectedIndexChanged"
ddlPublisher.WebServiceSettings.Method = "GetCompanies"
ddlPublisher.WebServiceSettings.Path = "~/WebService/Company.asmx"
ddlPublisher.MarkFirstMatch = true
ddlPublisher.EnableViewState = false
 
if (!row.IsPUBLISHER_IDNull()) { 
    ddlPublisher.Text = row.PUBLISHER_DESCR; 
    ddlPublisher.SelectedValue = row.PUBLISHER_ID.ToString(); 

The webservice that feeds the combobox is implemented in the following manner:
[WebMethod(EnableSession=true)] 
public RadComboBoxItemData[] GetCompanies(object context) { 
     
    IDictionary<stringobject> contextDictionary = (IDictionary<stringobject>)context; 
    List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(); 
    RadComboBoxItemData itemData; 
 
    //get the search string from the combo 
    string searchText = contextDictionary["Text"].ToString(); 
    if (searchText.Length < 3) { 
        return result.ToArray(); 
    } 
 
    //.. db call to retrieve companies, and put them into the result array 
 
 
    return result.ToArray(); 


What is strange is that the failure happens only on the production machine. I cannot reproduce it on my dev machine (therefore I cannot send you a project that shows the problem :( ). Even more stranger is that the problem doesn't appear on FF or Chrome, only on IE (7&8, did not test it in 6). I tried to reproduce it on my dev machine by changing the Anonymous access on / off (the application uses Integrated Windows Authentication), with no luck.

Another thing to note is that once I open Fiddler to see what is going on, the ws call for the items works as expected. The request works with Fiddler opened! Once I close Fiddler, bang!, the error message reapears.

I'm sure that this problem is hard to reproduce, but i'm almost sure that this has to do with the server configuration: Here is some data:

Win2003, iis6
Integrated Windows Authentication
ASPNET 2.0
App runs as site, not as virtual directory.

Because this happens on prod machine, every help that comes ASAP is much apreciated.
Thank you in advance.

Lucian
Piyush Bhatt
Top achievements
Rank 2
 answered on 23 Feb 2010
1 answer
112 views




    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">  
    <MasterTableView Width="100%" DataKeyNames="InvID" EnableNoRecordsTemplate="true" Name="MainTable" EditMode="EditForms"  > 
<Columns> 
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" /> 
            <telerik:GridBoundColumn HeaderText="" DataField="OrgID" UniqueName="OrgID" Display="false" ReadOnly="true"  ></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn HeaderText="Project" DataField="Organization" UniqueName="Organization" ReadOnly="true"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn HeaderText="Stock Number" DataField="StockNumber" ReadOnly="true"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn HeaderText="Total OH" DataField="OH"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn HeaderText="Location" DataField="Location" UniqueName="Location" ReadOnly="true"></telerik:GridBoundColumn> 
            <telerik:GridBoundColumn HeaderText="Serial" DataField="Serial" UniqueName="Serial" ReadOnly="true"></telerik:GridBoundColumn> 
 
</Columns> 
</MasterTableView> 
    </telerik:RadGrid> 

I have my radgrid using the editform mode to edit a column. IF there is more than 1 record within the grid and the edit command button is selected all rows disapear except the one selected for edit. The edit forms does not display until only one record is present. 

If one 1 row exsit the editform displays correctly.

Would anyone know why this might be happending and how to fix it?

 


Thanks


Dwayne Starkey
Top achievements
Rank 1
 answered on 23 Feb 2010
1 answer
80 views
I am using a RadGrid that contains a GridTemplateColumn.  This GridTemplateColumn contains a FilterTemplate as well as an ItemTemplate.  The FilterTemplate is a RadComboBox.  The ItemTemplate is a Label.  The table is displaying the string representation of an ID.

I want to run a sort based on the string displayed in the Label.  However, since this data is not databound, it will not let me.  It will allow me to run a sort based off of the underlying "Value" of this data.  (The Value = RoleID and the Label contains the corresponding RoleName.)

How can I do this?  I want to sort the GridTemplateColumn based on what is displayed in the ItemTemplate of this column (the Label).

Thanks!
Dave
robertw102
Top achievements
Rank 1
 answered on 23 Feb 2010
3 answers
237 views
I have a server side method that given a string of JScript as an input returns a compressed "minified" version.

I want to run some code after the page has loaded to find all RadCodeBlocks and RadScriptBlocks and minify their content before the page is finally rendered in the browser.

I can do this for some RadScriptBlocks but not all of them.

Some of them simply appear to have no sub controls at all and so I can't get what they currently contain in order to minify them.

I call something similar to the following in every page's Page_PreRender,

 
        public static void MinifyAllPageJScript(ControlCollection PageControls)  
        {  
            foreach (Control pageControl in PageControls)  
            {  
                if ((pageControl as RadScriptBlock) != null ||  
                    (pageControl as RadCodeBlock) != null)  
                {  
                    foreach (Control script in pageControl.Controls)  
                    {  
                        if ((script as LiteralControl) != null)  
                        {  
                            (script as LiteralControl).Text = Common.CompressJS((script as LiteralControl).Text);  
                        }  
                    }  
                }  
                MinifyAllPageJScript(pageControl.Controls);  
            }  
        } 

Like I say, it successfully finds all the RadScriptBlocks and RadCodeBlocks on every page but some of them have Controls.Count = 0 and so I can't get at their content to correct it. Have tried calling my MinifyAllPageJScript from various event methods but with no luck.

Little help?

Regards
ADe
robertw102
Top achievements
Rank 1
 answered on 23 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?