Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
264 views
Hi
How can I get the filter textbox value in server side.
thanks in advance
Allen
Shinu
Top achievements
Rank 2
 answered on 06 Mar 2013
1 answer
99 views
hi
We are using rad grid and RadComboBox box.
Rad combo box is add as a Edit template in Rad grid.
I m facing a problem OnClientBlurEvent.
I want if Item is not in the combobox then it should display default value.
but it showing blank or pervious value.
Please suggest me the solution for above issue

function

 

 

OnClientBlurHandler(sender, eventArgs) {

 

 

 

var item = sender.findItemByText(sender.get_text());

 

 

 

if (!item) {

 

 

 

debugger;

 

sender.clearSelection();

sender.clearItems();

 

 

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(

 

"Blanck");

 

 

sender.get_items().add(comboItem);

sender.commitChanges();

sleep(10000);

alert(sender.get_text());

sender._filter = 0;

}

}

 
Eyup
Telerik team
 answered on 06 Mar 2013
3 answers
193 views
I have a RadScheduler control which is used in timeline mode. Because I have to get my data from a non standard datasource, i have to add my resources and appointments manually rather than binding to a data source.

When I have added my resources and configured all the appointments to be allocated to a resource (or vice versa) I then add the appointment to the controil using Shecdule.InsertAppointment. None of my appointments are all day events and have start times and end times, the earliest and latest of which are 8am and 6pm respectively.

However, when I run my page, my appointments appear correctly against the correct resource, but they span over 2 days.
For instance, an appointment which starts at 8am and finished on the same day at 6pm shows in the time line as starting of one day, and ending at the end of the next day. Does anyone know why this would be happening?

The image attached shows three appointments like this that occur on successive days.

Thanks,
Karl
Plamen
Telerik team
 answered on 06 Mar 2013
2 answers
104 views
I want to use the middle mouse button to open choosen link in new tab. The middle button works but it opens current loaded url. Not the one that is clicked by the mouse middle button.
I tried to debug it but when i press the middle button it does not fire the OnItemClicked event.
How can i fix that?
Princy
Top achievements
Rank 2
 answered on 06 Mar 2013
1 answer
129 views
Hi
     How to get the edit row index in client side on command event of radgrid. thanks for your help

Savyo
Princy
Top achievements
Rank 2
 answered on 06 Mar 2013
6 answers
217 views
I have an attachment column in my radgrid that has stopped functioning properly and I can't seem to figure out why.

                    <telerik:GridAttachmentColumn ButtonType="ImageButton" ImageUrl="~/Images/pdf_icon.gif" DataSourceID="odsLetter"  HeaderImageUrl="~/Images/pdf_icon.gif" HeaderTooltip="Download Letter"
DataTextField="FileName" AllowFiltering="false" AttachmentDataField="FileBLOB" AttachmentKeyFields="HTC_Key" FileNameTextField="FileName" UniqueName="Letter" SortExpression="LetterReleased">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridAttachmentColumn>

I have the oncommand event set to run the gridCommand function to disable AJAX for the download.

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
    <script type="text/javascript">
<!--
        function gridCommand(sender, args) {
            if (args.get_commandName() == "DownloadAttachment") {
                var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>');
                manager.set_enableAJAX(false);
 
                setTimeout(function () {
                    manager.set_enableAJAX(true);
                }, 0);
            }
        }
 
   -->
    </script>
</telerik:RadCodeBlock>

The grid loads and displays the right filename as a tooltip over the icon when I hover with my mouse which leads me to believe that the keyfields linkage is working right.  When I click the download icon, the page does a postback and reloads the grid without downloading the file from the BLOB field.

Any ideas about why this is happening this way?

Thanks

Mike
asimptota
Top achievements
Rank 1
 answered on 06 Mar 2013
1 answer
106 views
How to export only selected rows in radgrid from external button click?
Shinu
Top achievements
Rank 2
 answered on 06 Mar 2013
7 answers
781 views
 

Folks using VS 2010 and Rad Grid controls for Ajax 2011 V.1

I am using hierarchical Master/Child Table. I would like to know how to get the row counts of detail table into a varible (say

int childRowcount) in following scenarios:

1) When Master record is selected (Without expanding)
 

2) After the update/insert in Child Table.

Thanks GC_0620
_____________



protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
   {  
   
       if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "MasterTable")  
       {  
           GridDataItem dataItem = (GridDataItem)e.Item;  
           // How to Get Child Table Row Count
       }  
       if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "DetailTable")  
       {  
           GridDataItem childItem = (GridDataItem)e.Item;  
           // How to Get the Child Table Row Count
         }  
   
   }  
Daniel
Telerik team
 answered on 06 Mar 2013
3 answers
95 views
how can I get the weekview to look like the monthview where it does not display the time and just stacks the appointments in order on top of each other in the same cell.
Plamen
Telerik team
 answered on 06 Mar 2013
1 answer
157 views
Hi there,

I have creates a combobox - Text with icons (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/textwithicons/defaultvb.aspx?#qsf-demo-source)

I use the following code:
//fill radcombobox
            foreach (DataRow BrandRow in Brand.BrandTable.Rows)
            {
                RadComboBoxItem Item = new RadComboBoxItem();
                Item.Value = (string)BrandRow["Brand"];
                Item.Text = (string)BrandRow["Description"];
                Item.ImageUrl = "~/Images/Brands/" + (string)BrandRow["Brand"] + ".jpg";
                cbBrand.Items.Add(Item);
            }

The images are displayed with different height and width according to their definition.
Is their a way to set the width and height of the images automatically to 16 x 16?
 
Thanx!

Marcel
Helen
Telerik team
 answered on 06 Mar 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?