Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
138 views
Hallo I saw the example at
http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/applicationscenarios/customgridcolumns/defaultvb.aspx?#qsf-demo-source
And I also read some other topics and stuff in the control reference but still I didn't come up with an idea on how to solve this.
I use the explorer to upload images (for news, profiles, whatever) and I need to make one of all the uploaded images as the "main one".
I handled all the logic for this but now I would like to display a little image in the file explorer grid near the "main image" so that users can see at a glance which one is the "main image".
So I need to add a column to the grid which will show that image only if the filename is equal to the "main image file name, which I keep in my page/usercontrol property (hidden input field or whatever).
So mangling with the file provider is not useful in my situation since I have to match the file name with a variable which is not accessible inside the file provider (I guess).

Any hint?

Thanks in advance
Massimiliano
Top achievements
Rank 1
 answered on 03 May 2014
2 answers
187 views
I was creating a Kendo grid that contains several column.  There is one numeric column called 'Length".  When I clicked on this column, I would expect it to invoke the editor, but unfortunately it crashed in kendo.all.js.  I have no idea what I did wrong.  I am hoping someone here could take a look at it and give me some advice on how to fix my code.

Here is a sample of my code:
http://jsbin.com/wikav/1/edit


Thanks in advance.





Chuen
Top achievements
Rank 1
 answered on 03 May 2014
2 answers
125 views
Hi,

I'd like to know if the Ribbonbar has any support for using sprites instead of images directly?  And if not if there were any plans to add support in a future release.

Thanks!
Richard
Richard
Top achievements
Rank 1
 answered on 02 May 2014
1 answer
77 views
Hi everybody,
i want to populate a ComboBox that exist on the EditFormTemplate of a detailTable base on the ParentItem DataKeyValue, when the user click on the btn add new record, so here's my code :

public void radGrid_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.InitInsertCommandName)
            {
                if (e.Item.OwnerTableView.Name == "ChildGrid")
                {
                    GridDataItem parentItem = (GridDataItem)(e.Item.OwnerTableView.ParentItem);
                   
                    if (parentItem != null)
                    {
                        int itemId= Convert.ToInt32(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["Id"]);
                        //i want to get here the ComboBox control and the code (as i think) should look like this :
                        RadComboBox = e.item.findControl("comboId") as RadComboBox;
                    }

                }
                
            }
        }

thanks.
Said
Top achievements
Rank 1
 answered on 02 May 2014
3 answers
175 views
Hello,

I am trying to configure the SP RadScheduler webpart but I cannot get the date in the header to display dd/mm/yyyy in Week view. I have checked all the timezone and regional settings for the site and these are English (United Kingdom) and GMT. Yet the date in the Week view header still displays mm/dd/yyyy. How can this be corrected?

In addition, I don't want Saturday or Sunday to display and I want to prevent users changing the view (needs to be Week view only). Although it is possible to configure in the ASP.NET RadScheduler, these settings are not available in the SP webpart version. How can I get the same functionality in the SP webpart version of RadScheduler?

Thanks,
Jonathan

Boyan Dimitrov
Telerik team
 answered on 02 May 2014
1 answer
110 views
Hi,

My RoomType dropdownlist change event fire on first time page load but after come back from other tabs event not fire already. Is it because of RadAjaxManager <telerik:AjaxUpdatedControl ControlID="pnlRoomType" /> ? Can anyone give me some suggestion how to solve this problems? I would like to publish my code and screenshot. I appreciate any help.
In Script

<script type="text/javascript" id='GlobalValueSetup'>
           
            $telerik.$(function () {
                var txtRemarks = $telerik.$('#ctl00_ContentPlaceHolderMain_txtRemark').val();
                if (txtRemarks !== '') {
                    alert(txtRemarks);
                }
                $telerik.$('#<%=ddlRoomType.ClientID %>').unbind('change').bind('change', OnddlRoomTypeSelectedIndexChange);
            });  
function OnddlRoomTypeSelectedIndexChange() {
    var ddlRoomType = $telerik.$('#' + GlobalObjectControls.DllRoomTypeID);
    if (isDonotMoveChecked == false) {
        ChangeRoomType(GlobalObjectControls.RoomTypeKey, ddlRoomType.val(), '', null, null);
    }
    else {
        ddlRoomType.val(GlobalObjectControls.RoomTypeKey);
        alert('Do not move has been set');
    }
}
        </script>
    </telerik:RadCodeBlock>



In .ASPX

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="false">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdGrpRoomTypeIno" />
                        <telerik:AjaxUpdatedControl ControlID="pnlRoomType" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="radTabStripSelection">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radTabStripSelection" />               <telerik:AjaxUpdatedControl ControlID="pnlRoomType" />                          
                                        
                    </UpdatedControls>
                </telerik:AjaxSetting>    
                
            </AjaxSettings>
            <ClientEvents OnRequestStart ="$telerik.$.blockUI" OnResponseEnd="$telerik.$.unblockUI" />
        </telerik:RadAjaxManager>

<div id="pnlRoomType" runat="server" class="divRow">
                                                <asp:DropDownList ID="ddlRoomType" runat="server" Width="75%" Font-Size="11px">
                                                </asp:DropDownList>
                                                <input id="btnRoomType" name="btnRoomType" value="..." onclick="return popupRoomType();"
                                                       type="button" class="divbtn" style="width: 15%" />
                                            </div>
Hristo Valyavicharski
Telerik team
 answered on 02 May 2014
1 answer
1.2K+ views
Hello, 
After updating telerik framework for ASP.NET AJAX Q1 to version 2014.1.403.40, my application just throwing a lot of "$telerik is not defined".
One think i want to mention is that i use (like in previous versions) <add key="Telerik.EnableEmbeddedScripts" value="false"/> and i compressed all js files in one only named Telerik.js. 
WebConfig attached, ErrorsImage attached, Aspx files with RadScriptManager and ScriptManager attached.

Hope you will point me in the right direction,
Thanks!



























Marin Bratanov
Telerik team
 answered on 02 May 2014
1 answer
416 views
Hi
which is the best method to compare the values of two columns?
Princy
Top achievements
Rank 2
 answered on 02 May 2014
1 answer
94 views
Has anyone else had this issue?  I have setup an RadImageGallery control to display images in the images folder of my application.  However, I have noticed that it displays .jpegs, .bmp, .gif, etc just fine but NOT .png images.   It does not throw an error or anything, simply skips over them and goes onto the next image.  This normally would not be a huge problem, but my workplace is an Apple shop.  Everyone has macbooks, mac minis, and more importantly iPhones that we use to take pics of production related items.  So I need ImageGallery to display .png images also.  Below is how I have setup my control, i have no server side code at the moment.

thanks for your help..

Doug


  <telerik:RadSplitter ID="RadSplitter1" Runat="server" Width="500px"  style="margin-left: 949px" Height="500px">
                    <telerik:RadPane ID="radpane1" runat="server" Height="500px" Width="500px">
                        <telerik:RadImageGallery ID="rigSFRpics" ImagesFolderPath = "../images" 
                            runat="server" Height="500px">
                        </telerik:RadImageGallery>
                    </telerik:RadPane>
 </telerik:RadSplitter>
Maria Ilieva
Telerik team
 answered on 02 May 2014
1 answer
82 views
I have using RadFileExplorer In my project so I have to hide one of the folder from the list of the folder shown in the treeview when we load the file explorer like showing in the attach files .

Suppose the treeview list these folder "a" , "b", "c" so I want to hide the "c" folder when we load the radfileexplorer 
Joana
Telerik team
 answered on 02 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?