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

When i disable telerik embeddedskin and basestylesheet on my radgrid as i am using my custom cssclass to design it but it also disable pagerstyle skins on my pagerstyle as below.

 <telerik:RadGrid EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" CssClass="table table-striped table-bordered table-hover">
<PagerStyle Mode="Slider">
</PagerStyle>
</telerik:RadGrid>

I want to disable it for radgrid but not for pagerstyle so i need something like this:

<telerik:RadGrid EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" CssClass="table table-striped
table-bordered table-hover">
<PagerStyle Mode="Slider" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true">
</PagerStyle>
</telerik:RadGrid>

Hope to get help from you.

Thanks in Advance,
Harry
Eyup
Telerik team
 answered on 21 Apr 2014
1 answer
219 views
Hi,
      I want to get  the value of rad grid column on row selection in client side. The Column value is Boolean type.
My Grid Column Code is
<telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Left" UniqueName="IsDefault"  HeaderText="Default" >
             <ItemTemplate
      <asp:Label Id="default" runat="server" Text='<%# Convert.ToBoolean(Eval("IsDefault")) == true ? "Yes" : "No" %>'></asp:Label>
              </ItemTemplate>
</telerik:GridTemplateColumn>
Client side code:
​ function gv_SubAccount_RowSelected(sender, args) {
         var grid = sender;
         var MasterTable = grid.get_masterTableView();
      
         var rowEl = MasterTable.get_dataItems()[2].get_element();
      
         var def = $telerik.findElement(rowEl, "default").innerHTML;
          alert(def);//it return always Yes why?.
return false;
}

How can get the value  column value on OnRowSelected client side.
Please Provide solutions.

Thanks,
Rahul
Princy
Top achievements
Rank 2
 answered on 21 Apr 2014
5 answers
167 views
Hi,

I have display problem with scheduler (file attached). Teleric.dll  is 2009.1.311.20)
Plamen
Telerik team
 answered on 21 Apr 2014
3 answers
864 views
hi telerik ,
in my project i use ORGchart and ListBox  and use a button as item template in ORGchart ,
at click on the button i want to open a devexpress popup and  perform a callback to a devexpress grid view .. it is possible to do ? 
Eyup
Telerik team
 answered on 21 Apr 2014
3 answers
269 views
Hello, I have a RadButton which lives on a user control, which in turn is within a master page.

I'm trying to use the RegisterPostBackControl method of the master page's RadScriptManager object to register the button, but upon clicking it still is causing a FULL postback rather than executing the button's OnClick which references a separate ExportToExcel method I've created.

I have the Page_Load in the user control below as follows, what am I doing wrong?

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                ((RadScriptManager)Page.Master.FindControl("RadScriptManager1")).RegisterPostBackControl(_ExportButton);
            }
        }



Here is the markup for the RadButton:

      <telerik:RadButton runat="server" ID="_ExportButton" Text="Export" Enabled="False" AutoPostBack="True" OnClick="ExportToExcelClick"  />
    
Eyup
Telerik team
 answered on 21 Apr 2014
4 answers
241 views
I have a Rad Grid that exports to PDF. There are several columns in the grid. Most of the data is only a couple words and is displayed on one line.  However, there is a comments column that sometimes is long and wraps to several lines. My issue is when this is the last row. The export starts the row on one page and continues it on the next page. Is there a way to have only complete rows on a page?
Eyup
Telerik team
 answered on 21 Apr 2014
1 answer
394 views
Hello,

I am listing items with checkboxes and I would like to use the strikethrough on the text of an item when the checkbox is checked. Kind of like a ToDo list and marking them completed. I also need to change it back when unchecking it. And I want to load the data that way. I guess I can always loop through and check to mark them and apply the css if needed.

Would this be easier to do with a gridview control also especially since I am data binding it?

Thanks,
Warren


Magdalena
Telerik team
 answered on 21 Apr 2014
6 answers
138 views

Are there any plans to have Typescript declarations for the various client side controls of the ASP.Net AJAX product? I'm developing a project in typescript and using the client APIs of the various controls a lot (TreeView, Menu's, etc) and having declarations would greatly help.


Thanks!

Guy

Rumen
Telerik team
 answered on 21 Apr 2014
2 answers
371 views

Hi,

I want to have a checkbox that binds to a field which stores 'Y' or 'N' instead of boolean value.  Is there an event which I can put the codes to alter true/false back to 'Y'/'N' before saving back to the database? Is this even possible?

In the ItemTemplate I am using label to display the content of the field, so it has no problem displaying. In the EditItemTemplate, here's what I'm doing:

aspx:
<asp:CheckBox runat="server" Text="Vendor" ID="ThirdPartyVendorCheckbox" />
 <asp:HiddenField runat="server" ID="hiddenThirdPartyVendor" Value='<%# Eval("thirdparty_vendor") %>' />

Code-Behind:

protected void RadListView1_ItemDataBound(object sender, RadListViewItemEventArgs e)
 
{
 
    if (e.Item is RadListViewEditableItem && e.Item.IsInEditMode)
 
    {
 
        CheckBox chkbox = e.Item.FindControl("ThirdPartyVendorCheckbox") as CheckBox;
 
        HiddenField hf = e.Item.FindControl("hiddenThirdPartyVendor") as HiddenField;
 
        string txtVal = hf.Value;
 
        if (txtVal != "Y")
 
            chkbox.Checked = true;
 
        else
 
            chkbox.Checked = false;
 
    }
 
}


Thank you,

Helen

Eyup
Telerik team
 answered on 21 Apr 2014
14 answers
3.4K+ views
I hate to waste your time because I know you must have answered this question before.  I did find one answer to it in the forums, but the example did not work on my system, so..........

I would like to display "Yes" or "No" for a SQL Server Boolean column in the RadGrid instead of a checkbox (your checkboxes in the grid are so "faded" that it is very difficult to tell if they are checked or not) or instead of "True"/"False".

I would prefer to write the code for this in the VB code behind page if possible. If not, I can add it to the .aspx page if needed.

The Boolean field is named "TextActive", although it really doesn't matter.

Thanks in advance for your assistance.

Lynn
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?