Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
193 views
Hello,

I have just read this demo:http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx .
In this demo,the "Category" column is not a field in table [Products] ,but in table [Categories ].And the demo use the following code to show the category's name accurately:
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource2"
                    HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID"
                    UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1">
                </telerik:GridDropDownColumn>

But now I have 3 tables in my datebase,for example,table A,table B and table C.Table A has a foreign key pointing to table B.And table B has a foreign key pointing to table C.Now I want to show A.X,B.Y,C.Z in a grid and realize the insert/update/delete functions.How to?

In addition,if I use dropdownlist to show B.Y and C.Z,I have to deal with the SelectedIndexChanged event to refresh the other dropdownlist.

It seems that my question is a little stupid.Let me give an example.Now I have to manage the students' information.Each student comes from different college,and has their major.Each major is in different college.Now I have 3 tables:[Students],[Majors],[Colleges].[Students].MajorID is a foreign key pointing to [Majors].  [Majors].[CollegeID] is a foreign key pointing to [Colleges]. [Majors].Name is the name of a major and [College].Name is the name of a college.Now I want to use a grid to show/insert/update/delete students.

My current solution is to use other pages for insert/update,is there a faster way?
 
Thanks very much.
Andrey
Telerik team
 answered on 29 Mar 2012
1 answer
171 views
Hi,

Hosted ASP.net v4 web application in IIS 7.5. Application is working fine with http (182 port). When added HPPTS binding with default port (443)...getting javascript error "SCRIPT5009: 'Sys' is undefined"; the same is working with Firefox. After some analysis found that "Telerik.Web.UI.WebResource.axd" is not rendered to IE (v9).

\When I change the HTTPS port number from 443 to other port (say 555)...application is working as expected.

Can any clarify why port 443 is blocking Telerik.Web.UI.WebResource.axd ?

Thanks in Advance...!
Pradeep
Genady Sergeev
Telerik team
 answered on 29 Mar 2012
1 answer
91 views
Hi,
we're having an issue with RadMaskedTextBox (and RadDatePicker too) with EnableSingleInputRendering true on IE6 browser.

We searched the forums, but we found no suggestions.

We have this simple markup:
<telerik:RadMaskedTextBox ID="radMaskedSingle" runat="server" DisplayPromptChar="X"
    HideOnBlur="true" HoveredStyle-BorderColor="#18d330" Mask="####" PromptChar=""
    SelectionOnFocus="None" Width="100px">
</telerik:RadMaskedTextBox>

<telerik:RadMaskedTextBox ID="radMaskedStandard" runat="server" DisplayPromptChar="X"
    HideOnBlur="true" HoveredStyle-BorderColor="#18d330" Mask="####" PromptChar=""
    SelectionOnFocus="None" Width="100px" EnableSingleInputRendering="true"></telerik:RadMaskedTextBox>

And on codebehind:
protected void Page_Load(object sender, EventArgs e)
{
        radMaskedSingle.Text = "0123";
        radMaskedStandard.Text = "0123";
}

 When we open IE6 browser, value inside radMaskedSingle is partially hidden (see attachment).

Any suggestion/workaround for this issue? (Telerik version Q1 2012 - 2012.1.215).

Regards.
Vasil
Telerik team
 answered on 29 Mar 2012
9 answers
229 views
Hi,

I'm experiencing this issue where you drag and drop files, but before you drop, if you press the Esc key while the files are dragged over... so before you release your mouse to drop, if you press escape, the ruDropzone div is on top and remains on top. The upload control is not shown anymore.

This is reproducible in the online demo as well... any work around for this issue?

http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx?product=asyncupload


Thanks.

sathish
Bozhidar
Telerik team
 answered on 29 Mar 2012
1 answer
82 views
Hello,

I have the following scenario:
1. insert table
2. open the table properties dialogue
3. select any class from the apply css dropdown and click ok.

As a result the following mark up is generated:
<table className="bold">
    <tbody>
        <tr>
If I use the apply css dropdown from the main editor tool-bar then class attribute is correctly added.
Do you have any ideas what could be wrong?
The Telerik.Web.UI.dll version is 2011.1.315.35.


Rumen
Telerik team
 answered on 29 Mar 2012
4 answers
195 views
I've just upgraded to 2009.1 of RadControls and have been using the Forest skin. It appears that the vertical grid lines have been removed from this skin in the latest code. I really like the vertical lines, is there any way I can add them back? Setting GridLines="Vertical" does not accomplish this, it seems to only add lines to the filter header.
Kiran
Top achievements
Rank 2
 answered on 29 Mar 2012
0 answers
142 views
Hi,

I am using a redcombobox with loadondemand with a web service.

I am trying to add a property appContext to Radcombobox context as shown below.

When I click on the combo, the call goes to webservice, but I am unable to get the added property appContext in the webservice method. This is happening only when I open a popup and close it and adding the value from the popup to the combo.
Here I can see only the added item but not all the items of the combo.

Adding appContext:
public IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            var descriptor = new ScriptControlDescriptor("Sales.Purchase.Controls.SalesSelector", Panel.ClientID);

            var appContext = new ApplicationContext();

            appContext.DecryptedRequestContext[AppContext.SystemIdRequestKey] = salesId;
            appContext.DecryptedRequestContext["id"] = SelectedSaleTypeId;
            appContext.DecryptedRequestContext["sv"] = sales.Text;
            appContext.DecryptedRequestContext["prid"] = SaleReqID.ToString();


            descriptor.AddProperty("btnDummy", Page.ClientScript.GetPostBackEventReference(btnDummy, String.Empty, true));
            descriptor.AddProperty("appContext", appContext.EncryptedRequestContext);
            descriptor.AddComponentProperty("SalesList", cboSales.ClientID);
           
            return new ScriptDescriptor[] { descriptor };
        }

WebService Method:
I am unable to find the key "appContext"
public RadComboBoxData GetSalesData(RadComboBoxContext context)
        {
            const int itemsPerRequest = 20;

            var comboData = new RadComboBoxData();
                       
            var encryptedContext = context.ContainsKey("appContext") ? (string)context["appContext"] : null;
            .......
            return comboData;
        }

Please help me out

Sri
Top achievements
Rank 1
 asked on 29 Mar 2012
5 answers
218 views
Hello,

I Have 3 comboboxes.
when selecting a value in combobox 1 it fills the values of combobox 2

now i want to fill the values of combobox 3 based on the selected values of combobox1 and combobox 2

How can I achieve this on clientside
Shinu
Top achievements
Rank 2
 answered on 29 Mar 2012
37 answers
1.9K+ views
After having installed the "Prometheus" controls, I ran the local samples and everything was working fine.
After a few days while developing, when I opened Visual Studio it suddenly deleted all the Telerik controls and Prometheus controls and even the AJAX Toolkit from the Toolbox and I was left with the standard Toolbox.
When I tried running the local samples again on a local server, they were not responding at all. From the Advanced tab of Internet Options I enabled the notify on script error option.
When I reloaded any page with Telerik controls it popped a Javascript error box and informed me that 'Telerik' is undefined.

How did this all happen and what exactly triggered it. All my personal project are now static and aren't using the Telerik controls because it can't see them.

Please Help ASAP.
And thank you for your time.
Diego
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
174 views
Hello,
I have 2 questions.
Q 1.) I have a MasterTableView and a DetailTables. This works fine.
<MasterTableView DataKeyNames="cid" DataSourceID="SqlDataSource1">
    <DetailTables>
        <telerik:GridTableView runat="server" DataKeyNames="cid"
            DataSourceID="SqlDataSource2" AllowPaging="False" CommandItemDisplay="Top"
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True">
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="cid" MasterKeyField="cid" />
            </ParentTableRelation>
            ...

When i have 1 DataRow in the DetailTable, how can i hide the "Add new record" in the DetailTable header?

Q 2.) I will use a new button in the DetailTable in the DataRows. This will open a new Window with Javascript. I need 2 parameters from the MasterTableView Columns. This columns are "visible=false" in the grid. How can I access this data via Javascript?

Best regards
Reiner
Mario
Top achievements
Rank 1
 answered on 28 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?