Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
127 views
I'm facing a very singular behaviour in my RadGrid.
I have some GridCheckBoxColumn(s) that I mangled in code behind (ASP.NET 4.5 WebForms) to show nome nicer labels in "view" mode and revert back to checkbox in edit mode.
The code is:
Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
    ' Display booleans with text labels when grid is not in editing mode
    If TypeOf e.Item Is GridDataItem AndAlso Not e.Item.IsInEditMode Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
 
        Dim verifiedCheck As Boolean = DirectCast(item("IsVerified").Controls(0), CheckBox).Checked
        Dim activeCheck As Boolean = DirectCast(item("IsActive").Controls(0), CheckBox).Checked
        Dim approvedCheck As Boolean = DirectCast(item("IsApproved").Controls(0), CheckBox).Checked
        Dim lockedCheck As Boolean = DirectCast(item("IsLockedOut").Controls(0), CheckBox).Checked
 
        If verifiedCheck Then
            item("IsVerified").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsVerified").Text = "<span class=""label label-warning autowidth"">No</span>"
        End If
 
        If activeCheck Then
            item("IsActive").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsActive").Text = "<span class=""label label-important autowidth"">No</span>"
        End If
 
        If approvedCheck Then
            item("IsApproved").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsApproved").Text = "<span class=""label label-warning autowidth"">No</span>"
        End If
 
        If lockedCheck Then
            item("IsLockedOut").Text = "<span class=""label label-warning autowidth"">Ok</span>"
        Else
            item("IsLockedOut").Text = "<span class=""label label-success autowidth"">No</span>"
        End If
    End If
End Sub

It works beautifully as you can see in the following screenshot:
Screenshot 1

Now the problem arise when I click on the little arrow to expand a row and show the content of my NestedViewTemplate. For some reason I come up with empty checkboxes all over the page, as documented in this second screenshot:
Screenshot 2

Thanks in advance as always.
Massimiliano
Top achievements
Rank 1
 answered on 19 Nov 2013
5 answers
669 views
I would like to hide a GridCommandItem button during the grid loading process if a field in the Grid is null. I don't know which event would be best to accomplish this in. Thanks for any help.
Daniel
Telerik team
 answered on 19 Nov 2013
1 answer
82 views
Hi

I am using Telerik Web UI version 2009.3.1503.20

The RadComboBox fails to retain the input text in IE9 when moved focus to other controls in the page, however it works fine in IE7, IE8, firefox and chrome,  including the compatability mode of IE9

I have already tried the options mentioned in the following article with no luck. Please help!

http://www.telerik.com/community/forums/aspnet-ajax/combobox/patch-ms-update-kb2586448-breaks-radcombobox-markfirstmatch-in-versions-older-than-2009-3-1314-inclusive.aspx

Thanks
Siva
Kate
Telerik team
 answered on 19 Nov 2013
4 answers
116 views
Hi,

My number one wish, for the controls would be to reduce the overall payload of the controls.

I was thinking that it may be easy to split up telerik core into a few different scripts - that are included only if you need them.  I had a quick look, and there is some code that appears to be relating to web services that wouldn't be needed all the time.

Also, some of the functions seem to be similar to functions contained in jQuery. Since jQuery is pretty "mandatory", could these functions be refactored to use JQuery instead of the telerik.core, reducing the script further.

For the general controls - again, it would be great if the scripts could be broken down further into functional parts.  Either compiling-on-the-fly only what bits you need, or having a "pre-compile" system when you deploy your project.

And - maybe some "lazy loading" of script parts.

At the moment, i am employing all the script combining / script compression / caching i can, but for some of my projects where bandwidth is an issue, i am not able to use my favorite set of controls.  Half the world is still on dialup.  Google - who are known for the light interface - is still spending loads of time and money reducing the bytes its sends to people.

A small script payload would really put you ahead of other asp.net ajax vendors, and give you a unique selling feature. 

I could start to try and "split-up" the code for different projects myself, but would no doubt encounter problems / hurdles when new, improved versions of the products are released.

It would be fantastic if you could work towards this.

Thanks,



Richard

Genady Sergeev
Telerik team
 answered on 19 Nov 2013
4 answers
92 views
Hi,

if there is only one item in the LightBox then how would I hide the Previous and Next buttons?
Can this be automated?

Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 19 Nov 2013
1 answer
121 views
Hi
 I have a skin manager in the master page.
How do  I set different skin for different control type?
for example, setting all RadButton and RadComboBox to WebBlue and all RadGrid to default?

Thanks for help!

Guorui
Maria Ilieva
Telerik team
 answered on 19 Nov 2013
1 answer
108 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
151 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
511 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
83 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?