Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
251 views
I'm trying to Clear a RadComboBox in javascript, and have it post back (when AutoPostBack is enabled). I've been searching around for a solution, and this is the best I can come up with - but it feels incredibly hacky - is there a more appropriate method of doing this?

var combo = $find(comboId);
combo.hideDropDown();
combo.trackChanges();
combo.clearSelection();
combo.commitChanges();
var f = { Command: "Select", Index: combo.get_selectedIndex() };
combo.postback(f);

Thanks
Fergal
Fergal
Top achievements
Rank 1
 answered on 13 Dec 2013
1 answer
337 views
Hi Telerik developers;

This problem RadGrid in radwindow open in server side GridClientSelectColumn selected

Gird in Columns
<Columns>
                       <telerik:GridClientSelectColumn UniqueName="chkSelectColumn" HeaderStyle-Width="20px"></telerik:GridClientSelectColumn>
                       <telerik:GridBoundColumn DataField="CekKartID" HeaderText="ID" ReadOnly="true" ShowFilterIcon="false" Display="false" UniqueName="CekKartID"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="CekNo" HeaderText="Çek No" FilterControlWidth="80%" ShowFilterIcon="false" HeaderStyle-Width="100px"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="BankaAdi" HeaderText="Banka Adi" FilterControlWidth="80%" ShowFilterIcon="false" HeaderStyle-Width="100px"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="AlinanCari" HeaderText="Alinan Cari Unvan" FilterControlWidth="80%" ShowFilterIcon="false" HeaderStyle-Width="100px"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="VadeTarihi" HeaderText="Vade Tarihi" FilterControlWidth="80%" ShowFilterIcon="false" HeaderStyle-Width="100px"></telerik:GridBoundColumn>
                       <telerik:GridNumericColumn DataField="Tutar" HeaderText="Tutar" DataFormatString="{0:N}" Aggregate="Sum" FilterControlWidth="20%" ShowFilterIcon="false" HeaderStyle-Width="100px" />
                   </Columns>


C# is Radgrid item data bound
protected void grdPortCekIade_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridDataItem)
           {
 
               GridDataItem dataBoundItem = e.Item as GridDataItem;
 
               var rowID= dataBoundItem["CekKartID"].Text;
                
                //sesCekKart = session in CekKart Table
               if (Convert.ToInt32(rowID) == sesCekKart.CekKartID)
               {
                   CheckBox chk = (CheckBox)dataBoundItem["chkSelectColumn"].Controls[0];                   
                   chk.Checked = true;
               }
           }
 
 
       }

RadWindow open and grid columns no selected GridClientSelectColumn
I want you selected the selected object
This radwindow image in click


Konstantin Dikov
Telerik team
 answered on 13 Dec 2013
1 answer
69 views
I have a RadGrid that displays the results of a query submitted by the user. If the user requeries I want the vertical scroll position to be at the top of the grid, not at the position of the previous query. How do I do this?

I have tried the following in the PreRender event all to no avail:

           RadGrid1.MasterTableView.CurrentPageIndex = 0;

and this..

          if (RadGrid1.MasterTableView.Items.Count > 0)
            {
                RadGrid1.MasterTableView.Items[0].Selected = true;
            }

Here are my property settings

        <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" Width="100%"  
            Height="450px" ShowStatusBar="True"
            AutoGenerateColumns="False" CellSpacing="0" GridLines="None" 
            onprerender="RadGrid1_PreRender" 
            onitemdatabound="RadGrid1_ItemDataBound" 
            ondetailtabledatabind="RadGrid1_DetailTableDataBind" 
            onneeddatasource="RadGrid1_NeedDataSource" 
                OnItemCreated="RadGrid1_ItemCreated" 
                onsortcommand="RadGrid1_SortCommand">
                  <MasterTableView DataKeyNames="GloveId, MaterialType, Chemical" HierarchyDefaultExpanded="true" Name="PermDataGroup" CssClass="masterTablePadding" 
                GroupsDefaultExpanded="False" >


Thanks,
Rob
Eyup
Telerik team
 answered on 13 Dec 2013
17 answers
601 views
 i have create tab and alone with it's pageview .it's work fine for deleting i add close image button to another class .(i.e. add tab and pageview in one class and deleting tab in another class) tab is deleting but pageview of that tab is not delete.how can i delete tab alone with pageview.pls help me
Nencho
Telerik team
 answered on 13 Dec 2013
1 answer
265 views
Hi - After upgrading from Q3 2013 to Q3 2013 SP1 I get borders around my check boxes in IE 8.  Chrome and firefox do not have them. 
You can see this here in your demo
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Is this change expected behavior for IE 8? or is this a bug?

Thanks
Eyup
Telerik team
 answered on 13 Dec 2013
1 answer
876 views
Hey

I'm trying to figure out how to edit the default css in the webresource.axd file, as its failing compatibility and accessibility tests. 

For example..

*html .RadTreeView .rtMinus{margin-right:1px}

Anyone know where I can find that file and edit it?

Thanks

John
Ivan Zhekov
Telerik team
 answered on 13 Dec 2013
15 answers
333 views
Hello,
    In the web application we are developing using the latest version of RadControls for Ajax, we make use of RadSplitter and RadTabStrip. We would like to format the selected tab's  text as bold so we have tried several approaches to accomplish it, one of them using the tab's SelectedCssClass:
tab.SelectedCssClass  = "highlightedTab";
  
  
where
  
  
  .highlightedTab
  {
         font-weight: bold !important;
  }
The other approach we have tried is to directly modify the CSS class of the selected tab:
.RadTabStripTop_Office2007 .rtsSelected
 {
        font-weight: bold !important;
 }

Both of these approaches produce the expected result but are also causing a problem: the last tab in the tabstrip ocassionally disappears. We have looked into the issue using Firebug and we noticed that the inner list of the tabstrip does not update its width when a tab caption is made bold (therefore the tab width increases) and it causes the last tab to be wrapped on the following row because there is not enough room left for it.
We have tried updating the list's width through client side code every time a tab is selected, but we couldn't get the tabstrip to work properly given that it also has the scroll buttons enabled.
Please advise us on how to fix this issue.
Thank you.
Ivan Zhekov
Telerik team
 answered on 13 Dec 2013
5 answers
203 views
Hi ,
           I have only the root tab with few items , the tabs are generated from a datasource . the code generated is like this

<div id="ctl00__RadTabStrip1" class="RadTabStrip RadTabStrip_Suntab RadTabStripTop_Suntab ">
<div class="rtsLevel rtsLevel1">
<ul class="rtsUL"><li class="rtsLI rtsFirst"><a title="" class="rtsLink rtsSelected" href=""><span class="rtsOut"><span class="rtsIn"><span class="rtsTxt">Overview</span></span></span></a></li></ul>
</div>


I need to change the class name of ul from rtsUL to something else . How is this possible?

Thanks
Thomson
Kate
Telerik team
 answered on 13 Dec 2013
7 answers
161 views
Hi,

I'm trying to use the RadGrid in a composite user control, where some of the features of the RadGrid are to be set dynamically by the user control (and the page the user control is placed on dictates its settings and appearance).

For example:
The user control is told which columns to present to the user and wether sorting is allowed, and then the user control will need to tell all that to the RadGrid so it can initialize itself with the proper columns and settings before databinding.

I'm struggling to make this work, as I don't know at which point in the life cycle I can get hold of the encapsulated RadGrid instance to set its options.
If I do that in the OnInit event of the user control, the RadGrid is not available yet. But as I understand, I need to define the RadGrid columns in its Init event, and I only know its required settings after the Init event has already passed.

I've tried placing a RadGrid declaratively in the user control, and I've also tried adding it programmatically to a placeholder, but I can't seem to get it working.

Can anyone give me any pointers? Thanks in advance!
Eyup
Telerik team
 answered on 13 Dec 2013
3 answers
134 views
Youtube video initialization error (IE, FireFox) in official demo (and any video from youtube)
http://demos.telerik.com/aspnet-ajax/media-player/examples/overview/defaultcs.aspx
internal request from player https://www.youtube.com/get_video?...
failed
though other request from Chrome is work.




Eyup
Telerik team
 answered on 13 Dec 2013
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?