Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hello,
I am trying to find a tutorial or example that has a gridview with a side navigation, like the one displayed at the bottom of this comp.  (see attached .jpg)  The user clicks on the side links, and the gridview loads the content.

Thanks.
Maria Ilieva
Telerik team
 answered on 19 Nov 2013
3 answers
122 views

I've built an ASP.NET composite control which includes several asp label controls, two textbox controls and a button control.  The composite control functions perfectly - without having any of the above controls ajaxified - in a parent page that already has a RadAjaxManager.

Now I want to ajaxify the composite control. I followed the various examples and sample code, but no matter which way I arrange the code, when I ajaxify the the button, two text boxes and a label in the composite control and click the button, I always get alternating full postback and asynchronous (partial) postback. (So I get the effect I want every other button click.)

// in CreateChildControls I added:

            RadAjaxManager objTelerikAjaxManager = RadAjaxManager.GetCurrent(Page);
            if (objTelerikAjaxManager == null)
            {
                objTelerikAjaxManager = new RadAjaxManager();
                objTelerikAjaxManager.ID = "RadAjaxManager1";
                Controls.Add(objTelerikAjaxManager);
            }
            .
            .

            // create controls and add to collection, then:
            .
            .

            objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlButtonLogin);
            objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlLabelMessage);
            objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlTextBoxUser);
            objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlTextBoxAppID);

What am I missing and what should I check?  Is there an alternative recommendation for placing the above code blocks?

Thanks

Maria Ilieva
Telerik team
 answered on 19 Nov 2013
4 answers
486 views
Hi,

I'm very new to Telerik controls and I've been reading the documentation and some of the examples but I still couldn't figure out this problem.
I'm trying to validate the address after the user entered into the textboxes and click on an image button. I have no trouble getting the values from GridBoundColumns setup for my city, state, zip.  However, I can't access my address textbox in the GridTemplateColumn.  Please help~

Thank you so much,

Helen

Here's is my aspx code:

 

<telerik:GridTemplateColumn DataField="bldgstreet1" FilterControlAltText="Filter address column" HeaderText="Address" SortExpression="address" UniqueName="addressTemplate">

 

 

<EditItemTemplate>

 

<asp:TextBox ID="address1" runat="server" Text='<%# Bind("bldgstreet1") %>'></asp:TextBox><br />

<asp:TextBox ID="address2" runat="server" Text='<%# Bind("bldgstreet2") %>'></asp:TextBox>

</EditItemTemplate>

<InsertItemTemplate>

<asp:TextBox ID="address1" runat="server" Text='<%# Bind("bldgstreet1") %>'></asp:TextBox><br />

<asp:TextBox ID="address2" runat="server" Text='<%# Bind("bldgstreet2") %>'></asp:TextBox>

</InsertItemTemplate>

<ItemTemplate>

<asp:Label ID="addressLabel" runat="server" Text='<%# Eval("bldgstreet1") + " " + Eval("bldgstreet2") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="bldgcity" FilterControlAltText="Filter bldgcity column" HeaderText="City" SortExpression="bldgcity" UniqueName="bldgcity">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="bldgstate" FilterControlAltText="Filter bldgstate column" HeaderText="State" SortExpression="bldgstate" UniqueName="bldgstate">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="bldgzip" FilterControlAltText="Filter bldgzip column" HeaderText="Zip" SortExpression="bldgzip" UniqueName="bldgzip">

</telerik:GridBoundColumn>


I tried doing this in my click event:

protected void CertifyAddressImageButton_Click(object sender, ImageClickEventArgs e)
{
 
 
    foreach (GridEditableItem item in gdvBuilding.EditItems)
    {
 
 
        string bldgname = ((TableCell)item["bldgname"]).Text.Trim();
        Debug.WriteLine("bldgname=" + bldgname);
        string zip = ((TableCell)item["bldgzip"]).Text.Trim();
        Debug.WriteLine("zip=" + zip);
 
        TableCell cell = item["addressTemplate"];
        string address1 = (cell.Controls[0] as TextBox).Text;
 
        //    This also doesn't work
 
        //    string address1 = (item.FindControl("address1") as TextBox).Text;
        //    Debug.WriteLine("address=" + address1);
 
        Debug.WriteLine("address=" + address1);
    }
   
 
    //CertifyAddress();
}

Helen
Top achievements
Rank 1
 answered on 19 Nov 2013
0 answers
55 views
Hi,

How to send extra parameter to wcf with optimize code ?
Now parameters are different category ??

I can not take array because these parameters are different category ?? 

public string X1{ get; set; }
public string X1{ get; set; }
public string X1{ get; set; }
..........................
..........................
..........................
..........................
public string X13{ get; set; }


public SchedulerInfoEntity(ISchedulerInfo baseInfo, string x1, string x2, string x3, string x4, string x5, int x6, int x7, bool blsX8, string x9, string x10, string x11,string x12,string 13)
            : base(baseInfo)
        { 
X1=x1;
X2=x2;
X3=x3;
...............................
...............................
...............................
...............................
X13=x13;

}

How will be managed a lot of parameter in the wcf 
Any better solution for fast processing???
Kuldeep
Top achievements
Rank 1
 asked on 19 Nov 2013
3 answers
211 views
Hi,

I have a RadWindow named rtbStreetAddress inside a usercontrol.  The problem I am having is the rwEditAddress.ClientID property is not returning the full client id as expected in the Page_Load or OnPreRender methods. 
It returning "rwEditAddress" instead of "ctl00_cDefaultContent_cAddresses_cBillingAddress_rwEditAddress"
I have a rad text box in the user control and it returning the correct client id "ctl00_cDefaultContent_cAddresses_cBillingAddress_rtbCity"

Vincent
Samaira
Top achievements
Rank 1
 answered on 19 Nov 2013
1 answer
180 views

Hi Telerik support,


My client is using telerik control, version 2012...



We are using RadRotator. I want to get the current showing index. If I retrieve index like:



function OnClientItemShown( sender, eventArgs)

{

     alert( eventArgs.get_item().get_index());

}



it does not always give the right value. For example, if I have 4 items, showing one item per screen. When it start rotating, the index for the first 3 times will be 0, 1, 2, which is correct. However, the 4th item and that after will always have the index as 2. And I found the returned index is not always stable.



Another question, when I called clearItems() to delete all items, then call addRotatorItem to add some items back from the client side, when I call start() after these operation, the type is AutomaticAdvance, there are strange behavior for the first time animation. It seems start rotating all items, then rotate to the second item the first time. If I clearItems again, and then add items back. The first time start() it will skip 1 pages. Can you tell me what I should do to get a stable rotating animation after I have clearItems and addRotatorItems?



Thanks in advance for suggestions.



Joe

Slav
Telerik team
 answered on 19 Nov 2013
2 answers
164 views
for some inexplicable reason telerik controls have stopped working clientside.

I have a Radrotator which now wont display any images.  A RadDropdown which doesnt display or even activate its drop down lists.  CSS for menus, etc is not downloaded so the styling disappears.  RadMenus dont do anything when you click a menu item, the whole lot has just stopped working.  Does anyone know what could cause this ?
Kate
Telerik team
 answered on 19 Nov 2013
1 answer
633 views
Hi,

I have a RadComboBox to which i want some Javascript to be fired onClientClick of the RadComboBox.

I have set up a simple alert but it does not seem to work. 

Please help.

Thanks

.NET Code:
<telerik:RadComboBox ID="RadComboBoxDropDown" runat="server" OnClientClick="show();"/>

Javascript:
function show()
        {
            Alert("Are you sure you want to submit the page?");
        }
Princy
Top achievements
Rank 2
 answered on 19 Nov 2013
1 answer
72 views
Hi, I got the latest version of the TELERIK ASP.NET AJAX and my grid footer is displayed on top of the data rows, right after the header.

My page has a master grid with many grids (5) inside its template organized in html tables.

I export the grid calling "grid.MasterTableView.ExportToExcel()"

My footer is manipulated on databound as below :

...
Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
footerItem("NAME").Text = "<
div>" & var1 & "</div>" & String.Format("{0:0.00}", var2)
...

How can I correct the export behavior?
Kostadin
Telerik team
 answered on 19 Nov 2013
1 answer
49 views
Hi,

Scripts and Required field validators not working after putting Telerik controls in some pages. In some pages it is working fine.

Following are the details of my page

I have used rad grid and rad button in page1.aspx. while loading the page RadGrid will show with all the details.The RadGrid resides inside a div(divGrid). If user click on New button (RadButton) in this page , the div (divGrid) will go invisible and entry fields will show. These fields also resides inside a div (divEntry).These fields also have some RequiredFieldValidators,CustomValidators etc. But while clicking on Save button RequiredFieldValidators, CustomValidators are not validating and saving the details with null values.This time the div (divEntry) goes invisible and div (divGrid) will visible.

While debugging i found that some file were missing. I am attaching the screen shot for this.


Eyup
Telerik team
 answered on 19 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?