Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Hi,

I have a radtextbox. If some text is entered into it, it should open a new window with a textbox which contains the same text in the parent.

Thanks,

Aneesh Daniel
Shinu
Top achievements
Rank 2
 answered on 22 Jun 2012
2 answers
326 views

Team,

I am using radFormDecorator(Dll V2012.1.411.40) and vista skin in application.

I have included tree control having 1000 nodes in field set.

In this scenario I am facing following issues

  1. Whenever tree is expanded the field set is getting cut off in between the tree only border get displayed.
  2. When I collapse expanded tree the field set should also get collapse but it shows some border.

This 1st issue I have seen on IE8, FF,Chrome.

This 2nd issue I have seen only on IE8.

I have attached the screenshot for each.

Please help me out for this issue.

Thanks in advance

 

Sampada
Top achievements
Rank 1
 answered on 22 Jun 2012
4 answers
537 views
Hello,
i have a problem and i need some help please.

I have this scenario:
I have many radComboboxes inside a page and in order to make the loading time faster for the page i am using LoadOnDemand functionality.

The thing is what on the page loads, i read a Customer fields and in the Page_Load event i populate the existing rcb (radComboBoxes) with the value from the query i get from sql so the controls will dispaly the initial existing value in there.

This is the code i have for this (basically i manually add a new item with the initial customer value i read from SQL):
radCtrl.Items.Clear();
radCtrl.Items.Add(new RadComboBoxItem(rowValue, rowValue));
radCtrl.SelectedIndex = 0;

After that i have the ItemsRequested event where i get all the possible values for each rcb. (in this case i only show exemple for one rcb)
protected void lstDentalGroup_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        ListItemsController ctrl = new ListItemsController();
        lstDentalGroup.DataSource = ctrl.Select_Single_Column("Value1", "DENTALGROUP");
        lstDentalGroup.DataBind();
    }

My problem is that when i press the SAVE button inside my form, the rcb.SelectedItem.Value will always be the first item I added by default in the Page_Load event, and not the one i select in the rcb.

Here is the HTML
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
<telerik:RadAjaxManagerProxy ID="radAjaxProxy_Calls" runat="server">
    <AjaxSettings>
         
        <telerik:AjaxSetting AjaxControlID="btnSave">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="mainContrainer" LoadingPanelID="radAjaxLoadingPanel" UpdatePanelRenderMode="inline" />
            </UpdatedControls>
        </telerik:AjaxSetting>
         
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadCodeBlock ID="radCodeBlockMain" runat="server">
    <script type="text/javascript">
        function OnDropDownHandler(sender, eventArgs) {
            sender.requestItems("", false);
        }
    </script>
</telerik:RadCodeBlock>
 
<asp:Panel runat="server" ID="mainContrainer" style="width:100%; height:100%; font-size:11px;">
 
    <telerik:RadComboBox runat="server" ID="lstDentalGroup" Width="92%" Font-Size="11px" OnClientDropDownOpening="OnDropDownHandler" DataTextField="CValue" DataValueField="CValue" OnItemsRequested="lstDentalGroup_ItemsRequested" />
    <asp:Button runat="server" ID="btnSave" onclick="btnSave_Click" Text="Save Combobox Value" />
 
</asp:Panel>
 
</asp:Content>


Here is the C# 
public partial class TestTelerik : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack) initialize_customerID("Boxer, Ken");
    }
 
    private void initialize_customerID(string customerID)
    {
        SQLGeneral ctrl = new SQLGeneral();
        DataTable dt = new DataTable();
        Hashtable hashFilter = new Hashtable();
        hashFilter["CustomerID"] = customerID;
        hashFilter["Deleted"] = 0;
        dt = ctrl.GetDataTable(CustomersController.customer_details, "Customers c LEFT JOIN ListItems li ON c.State = li.Value1", hashFilter);
        if (dt != null)
        {
            // populate all the textBoxes & radComboBoxes in the form within one single for cycle -> save a lot fo production time.
            for (int i = 0; i <= dt.Columns.Count - 1; i++)
            {
                if (dt.Columns[i].DataType == typeof(System.String))
                {
                    string columnName = dt.Columns[i].ColumnName.ToString();
                    string rowValue = dt.Rows[0][columnName].ToString().Trim();                       
 
                    // GET RADDROPDOWNBOXES
                    RadComboBox radCtrl = this.mainContrainer.FindControl("lst" + columnName) as RadComboBox;
                    if (radCtrl != null)
                    {
                        radCtrl.Items.Clear();
                        radCtrl.Items.Add(new RadComboBoxItem(rowValue, rowValue));
                        radCtrl.SelectedIndex = 0;
                    }
                }
            }
        }
    }
 
    protected void lstDentalGroup_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        ListItemsController ctrl = new ListItemsController();
        lstDentalGroup.DataSource = ctrl.Select_Single_Column("Value1", "DENTALGROUP");
        lstDentalGroup.DataBind();
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        string tmpSelValue = lstDentalGroup.SelectedItem.Value;
    }
}

I know the rcb value are load on demand at the client side, but how i can make accessible form the server side, mentaining the LoadOnDemand functionality? The solution to get all the values on server side Page_Load event and bind them initially to all the rcb is not acceptable for me because of the amount of data to load from SQL

Thank you for your help

Kalina
Telerik team
 answered on 22 Jun 2012
1 answer
154 views
Hello All,

I am opening a rad window in the asp.net grid row command . It is working properly .

codebase:
in the command:
  Telerik.Web.UI.RadWindow objwindow = new Telerik.Web.UI.RadWindow();

                    objwindow.VisibleOnPageLoad = true;
                    objwindow.NavigateUrl = "~/OfferManagement/CreateCounterOffer.aspx?OfferId=" + _commandArg;
                    double heightwinc = 400;
                    double widthwinc = 900;
                    objwindow.Height = new Unit(heightwinc);
                    objwindow.Width = new Unit(widthwinc);
                    pnlradData.Controls.Add(objwindow);

in the aspx page:

<asp:Panel ID="pnlradData" runat="server"></asp:panel>


The issue is, I want to refresh the parent window after closing that  dynamically created "objwindow"(rad window) . I searched across the google but I didn't find a correct solution for it.Can I add any event? Please help me.

Thanks

Rama.M


Princy
Top achievements
Rank 2
 answered on 22 Jun 2012
1 answer
105 views
I was testing the scheduler on my local web server without problems.
After publishing it on my hosting the scheduler control looks like it's disabled: vertical scrollbar visible but disabled, clicking buttons has no effect (week, month, calendar, ...).

Looks like some setting error, but I have no idea where to start troubleshooting the issue.

Any help is appreciated

Regards

EDIT: Solution found, hoster had a different IIS version so I had to change httpHandler configuration in web.config
Plamen
Telerik team
 answered on 22 Jun 2012
1 answer
113 views
How to close grid edit form template in external button click from server side
Princy
Top achievements
Rank 2
 answered on 22 Jun 2012
3 answers
703 views

Once again, i find your documentation and demos so convoluted that I have given up trying to make any sense out it.

I am again trying to accomplish a very simple thing: make a hierarchical grid out of a simple, 2-table relational dataset.

All I wish to do is to create a simple parent-child hierachy in a RadGrid, using an ADO DataSet object containing 2 tables, with a DataRelation already added to the DataSet, which should be enough to establish a parent-child relationship.

Here is dummy code that creates the DataSet:

 

 

 

DataTable dt1 = new DataTable();

 

 

 

DataTable dt2 = new DataTable();

 

 

 

DataSet ds = new DataSet();

 

 

 

DataRow myRow;

 

 

dt1.Columns.Add(

"Period");

 

 

dt1.Columns.Add(

"Period_Name");

 

 

dt2.Columns.Add(

"Period");

 

 

dt2.Columns.Add(

"File_Name");

 

 

dt2.Columns.Add(

"Size");

 

 

 

 

myRow = dt1.NewRow();

 

myRow[

"Period"] = "60";

 

 

myRow[

"Period_Name"] = "April 2011";

 

 

dt1.Rows.Add(myRow);

 

myRow = dt1.NewRow();

 

myRow[

"Period"] = "59";

 

 

myRow[

"Period_Name"] = "March 2011";

 

 

dt1.Rows.Add(myRow);

 

myRow = dt1.NewRow();

 

myRow[

"Period"] = "58";

 

 

myRow[

"Period_Name"] = "February 2011";

 

 

dt1.Rows.Add(myRow);

 

myRow = dt1.NewRow();

 

myRow[

"Period"] = "57";

 

 

myRow[

"Period_Name"] = "January 2011";

 

 

dt1.Rows.Add(myRow);

 

myRow = dt2.NewRow();

 

myRow[

"Period"] = "60";

 

 

myRow[

"File_Name"] = "User_60_123456_1.pdf";

 

 

myRow[

"Size"] = "923324";

 

 

dt2.Rows.Add(myRow);

 

myRow = dt2.NewRow();

 

myRow[

"Period"] = "60";

 

 

myRow[

"File_Name"] = "User_60_123456_2.pdf";

 

 

myRow[

"Size"] = "433324";

 

 

dt2.Rows.Add(myRow);

 

myRow = dt2.NewRow();

 

myRow[

"Period"] = "60";

 

 

myRow[

"File_Name"] = "User_60_123456_3.pdf";

 

 

myRow[

"Size"] = "693324";

 

 

dt2.Rows.Add(myRow);

 

ds.Tables.Add(dt1);

 

ds.Tables.Add(dt2);

 

 

DataRelation dRel = new DataRelation("Period_to_PDF", ds.Tables[0].Columns["Period"],

 

 

ds.Tables[1].Columns[

"Period"]);

 

 

ds.Relations.Add(dRel);


Table #1 (dt1) is the parent DataTable, containing "periods"
Table #2 (dt2) is the child DataTable containing "files relating to a period"

Only Period #60 has child rows in dt2 in this example.

HOW DO I USE THIS DATASET TO CREATE A HIERARCHICAL RADGRID???????????????????? IS IT EVEN POSSIBLE?

I would think that simply binding it to a grid would do it, but apprently RadGrid is not very smart, since it does not recognize the DataRelation object in the DataSet    

(I yearn for the days of desktop grid control that handled all of that for you if you created a properly related dataset.




Pavlina
Telerik team
 answered on 22 Jun 2012
3 answers
138 views
Hi,
    I have an issue with radcombo. In my home page , i am using RadComo . The problem comes when i Used a Javascript in Page Load with  " document.forms[0].submit() " . After using this , combo will look like ReadOnly mode.
Pleas help...

Thanks in Advance
Jesmon Joseph
Kalina
Telerik team
 answered on 22 Jun 2012
1 answer
102 views
Hi.

I have a radwindow pop up where the user can add a new user.  

User is getting created & within my OnClientclose I am trying to rebind the dropdownlist of users & select the new one.  I have the id needed at this point but am having difficulty locating the control.  

Are there any examples of finding such objects within the EditItemTemplate?

Once I find the dropdownlist control I will need to rebind it & set the newly selected value.  


Thanks.
Marin
Telerik team
 answered on 22 Jun 2012
3 answers
119 views
Hello,

I am trying to set up a RadComboBox as follows:

<telerik:RadComboBox ID="rcbEntities" runat="server" Width="440px" Height="140px"

                                ShowToggleImage="False" EmptyMessage="Start Typing..." MinFilterLength="3" EnableLoadOnDemand="true"

                                ShowMoreResultsBox="True" EnableVirtualScrolling="True" HighlightTemplatedItems="True"

                                OnClientSelectedIndexChanged="rcbEntities_SelectedIndexChanged"

                                OnClientItemsRequested="rcbEntities_ClientItemsRequested">

                                <WebServiceSettings Method="GetEntities" Path="~/TestService.svc" />

                            </telerik:RadComboBox>


Everything works fine as long as the WCF service is in the same project as the aspx page containing the control. However, I'd like to be able to pull data from a service hosted on the same server, but under a different site in IIS, together with all the other data services in the company.

Do you have a detailed example of a simple service that is defined in a separate VS project / IIS site and is being called from a RadComboBox to perform autocomplete ?


Thanks!
Daniel
Genady Sergeev
Telerik team
 answered on 22 Jun 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?