Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
153 views
I have a dropdownlist in a GridTemplateColumn (see code attached). I have C# backend code to update the sql database when an Update is performed. All of this worked fine until I changed a couple of the edit fields to dropdowns. I can't seem to get the value of the dropdown selected item when I update. The dropdown id="StatusDD". Can anyone help?

Thanks in advance
Tom



Tom
Top achievements
Rank 1
 answered on 13 May 2014
1 answer
79 views
i'm using File Explorer. AsyncUpload in File Explorer, select and Upload Multiple files to a button an Error. i will attach a picture of the contents. i'm soory,
did not speak English well.



Hristo Valyavicharski
Telerik team
 answered on 13 May 2014
1 answer
235 views
Do all grid skins have alternating row style? E.g. Silk - how to enable it?
Konstantin Dikov
Telerik team
 answered on 13 May 2014
1 answer
95 views
I am using Telerik Grid which adds hyperlink controls on ItemDataBound. Below code used to work with Telerik.Web.UI(2012.2.912.35).
When I upgraded it to 2014.1.225.35 or  2014.1.403.35 the links lose hyperlink url.

 
protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {         
            try
            {
                if (e.Item is GridDataItem)
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    foreach (string hlc in hyperlinksColumns)
                    {
                        HyperLink link = new HyperLink();
                        link.Text = item[hlc].Text;
                        link.NavigateUrl = item[hlc + "_URL"].Text; //This Does not work
                        link.NavigateUrl = "javascript:callFunctionA('parameter1','parameter2');"; //This works. Same text is present in item[hlc + "_URL"].Text
                        item[hlc].Controls.Add(link);                                         
                    }
}
    }                       
    catch (Exception ex)
             {                  
                    Utils.WriteLog(ex);
             }
         }
Kostadin
Telerik team
 answered on 13 May 2014
1 answer
99 views
I am using Telerik RadGrid which adds hyperlink controls on ItemDataBound. Below code used to work with Telerik.Web.UI(2012.2.912.35).
When I upgraded it to 2014.1.225.35 or  2014.1.403.35 the links lose hyperlink url.

  protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {          
            try
            {
                if (e.Item is GridDataItem)
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    foreach (string hlc in hyperlinksColumns)
                    {
                        HyperLink link = new HyperLink();
                        link.Text = item[hlc].Text; 
                        link.NavigateUrl = item[hlc + "_URL"].Text; //This Does not work
                        link.NavigateUrl = "javascript:callFunctionA('parameter1','parameter2');"; //This works. Same text is present in item[hlc + "_URL"].Text
                        item[hlc].Controls.Add(link);                                          
                    }
}
    }                        
    catch (Exception ex)
             {                   
                    Utils.WriteLog(ex);
             }
         }
Kostadin
Telerik team
 answered on 13 May 2014
1 answer
379 views
Hi

I have created a RadGrid and a RadButton.
For the RadGrid, I have attached a javascript:

            var script = @"
function RowDblClick(sender, eventArgs) {
$find(""" + btnEdit..ClientID + @""").click();
}";
            var javaScript = new HtmlGenericControl("script");
            javaScript.Attributes["type"] = "text/javascript";
            javaScript.InnerHtml = script;
            Controls.Add(javaScript);

            this.DataGrid.ClientSettings.ClientEvents.OnRowDblClick = "RowDblClick";

For the btnEdit (this is my RadButton), I have attached a EventHandler on the Serverside, which should deactivate the RadGrid:

            this.btnEdit.AutoPostBack = true;
            this.btnEdit.Click += BtnEditOnClick;

        private void BtnEditOnClick(object sender, EventArgs eventArgs) {
                this.DataGrid.Enabled = false;
                this.DataGrid.ClientSettings.EnablePostBackOnRowClick = false;
                this.DataGrid.ClientSettings.Resizing.AllowColumnResize = false;
                this.DataGrid.ClientSettings.Selecting.AllowRowSelect = false;
                this.DataGrid.ClientSettings.AllowKeyboardNavigation = false;
        }

But it doesn't work. When I click on the Button, it work great - but not when I doubleclick the row. But the javascript RowDblClick will be executed - I have checked this with an alert().
Konstantin Dikov
Telerik team
 answered on 13 May 2014
2 answers
163 views
Hi,

I need to autoclose radwindow after lets say 5 seconds.

but I have to use following method to open radwindow:

  RadWindowtest.VisibleOnPageLoad = True

I need to use ContentTemplate, I need to change controls in ContentTemplate from code behind. its'a must for me so I choose this method.
I can open/close window with javascript events but its not usefull to me in this problem.

any ideas ?
best regards.

aykut
Top achievements
Rank 1
 answered on 13 May 2014
1 answer
164 views

Hi there
I am trying to implement MediaPlayer in my Sitefinity project and it seems that mp4 is widely supported now. Even my opera plays it.

mp4 should play on ipad and iPhone as well but mine is not working.

Now http://demos.telerik.com/aspnet-ajax/media-player/examples/overview/defaultcs.aspx does not work for me on iPad either.

Can anyone check if the demo is running on their iPad, iPhone?

-------------
If not I found some stuff on the web. Anyone with some know-ledger?

- iOs doesn't support all the profiles that h.264 provides. You have to encode your h264 with a baseline profile only in order for it to be playable on iphone/ipad.

- One important thing to note is that "iDevices" doesn't support all the varieties of mp4. Here is a small list about MPEG-4 and H.264 supported varieties.According to Apple official website, iPad or iPhone 4S is only compatible with H.264 or MPEG-4 video format with the following specifications:

If it is H.264 video, it should meet: up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
If it is MPEG-4 video, it should meet: up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;

But there are some forums saying that in fact, the iPad specifications are these:
iPad Supported Video FormatH.264 video (up to 720p, 30 frames per second; main profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats)
MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.

Markus

Markus
Top achievements
Rank 2
 answered on 13 May 2014
2 answers
100 views
I have set up a Rad DatePicker, with a Calendar and a DateInput field, however I want the date input field to show on the left of the calendar, currently the Calendar is showing to the right of the dateInput control. Is there any simple way of doing this?


<telerik:RadDatePicker ID="dpDate" runat="server" Skin="TestSkin" EnableEmbeddedSkins="false">
                            <DateInput ID="diInput" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" runat="server" Enabled="false"
                                DisabledStyle-ForeColor="Black" BorderStyle="None" BackColor="White">
                            </DateInput>
                            <Calendar ID="calDate" ShowRowHeaders="false" runat="server" EnableEmbeddedSkins="false"
                                Skin="TestSkin">
                                <ClientEvents OnDateSelecting="DateSelected" />
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                </SpecialDays>
                            </Calendar>
                        </telerik:RadDatePicker>
Lex
Top achievements
Rank 1
 answered on 13 May 2014
7 answers
262 views
Hi,
Actually my requirement is quit similar to the below demo link, Let me explain my requirements step by step

1. Very First I want to show TreeView / ListView which contains the ID, Name ,Detail & Picture for each record and this should bind with DataSet automatically on page load or button click event. DataSet contain ID, Name, Detail and PictureURL.

2. Second : I can Drag & drop the Item from TreeView / ListView on RadScheduler so it should add that appointment with date & time and remove that itme from TreeView / ListView.

3. Third : Once I press the SAVE Button on the page all those appointments which I have drag from TreeView / ListView, I should able to store into database with that ID.

3. Fourth : same Radscheduler also show already SAVED appointments, those appointments also available in DATASET, that DataSet contain the following fields ID,Subject(Name+Detail), and somother fields for navigation url link.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/creatingappointmentswithdraganddrop/defaultcs.aspx#


 Thank you waiting for your quick and prompt response.
Plamen
Telerik team
 answered on 13 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?