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

i want to use red editor in my sharpoint web application...

I want custom fieldtype which has rad editor and this custom field type use in list..

Thanks in advance..
Stanimir
Telerik team
 answered on 28 May 2011
9 answers
264 views
Hello,i'm Student,i'm studying about RadGrid,i have some problem ,plz help me
I have 2 table that's Customer and Bill,i also 2 RadGrid , i want Radgrid1 containing Customer Information and Radgrid2 (In <NestedViewTemplate> )  containing  Bill information with condition is CustomerID= Value when i click Expand
What's should i do ?
http://nguy-hiem.co.cc/share/567.png

THANKS !
trunghieu
Top achievements
Rank 1
 answered on 28 May 2011
11 answers
148 views
While one that is not in te RadPanelBar works perfect the another one simply does not work. No exceptions. Just does not work!

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="MyScriptManager" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadPanelBar1">
    <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="LoadingPanelBasicDesign" />
    </UpdatedControls>
    </telerik:AjaxSetting>
    </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="LoadingPanelBasicDesign" runat="server" Skin="Windows7" />
    <div>
    <telerik:RadScriptBlock runat="server" ID="KKLj">
    <script type="text/javascript">
        function SubmitTheFile() {
            var panel = $find("<%= RadPanelBar1.ClientID %>");
            var item = panel.findItemByValue("BodyStyle");
            if (item) {
                var mybutton = item.findControl("SubmitBodyBgImage");
                mybutton.click();
            } else {
                alert("Not Found!");
            }
        }
 
        function submitFile(sender, e) {
            $get("<%= Button1.ClientID %>").click();
        }
    </script>
    </telerik:RadScriptBlock>
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Windows7" Width="690px" ExpandAnimation-Type="InElastic" ExpandMode="FullExpandedItem">
    <Items>
        <telerik:RadPanelItem Text="Body Style" Value="BodyStyle">
        <ItemTemplate>
        <div style="padding: 10px;">
        <table cellpadding="5" cellspacing="0" width="100%" style="padding: 10px;">
        <col width="170px" />
 
        <tr>
        <td>Background Image Upload:</td>
        <td valign="bottom">
        <telerik:RadUpload ID="BodyBgImageUpload" runat="server" TargetFolder="~/ftp"
            MaxFileSize="1024" ControlObjectsVisibility="None" OnClientFileSelected="SubmitTheFile" />
            <telerik:RadButton ID="SubmitBodyBgImage" runat="server" Text="Button" Style="visibility: hidden;" />
        </td>
        </tr>
        </table>
        </div>
        </ItemTemplate>
        </telerik:RadPanelItem>
    </Items>
    </telerik:RadPanelBar>
 
    <telerik:radupload id="RadUpload1" runat="server" onclientfileselected="submitFile" targetfolder="~/ftp" />
    <telerik:RadButton ID="Button1" runat="server" Text="Button" Style="visibility: hidden;" />
     
    </div>
    </form>
Jugoslav
Top achievements
Rank 1
 answered on 27 May 2011
2 answers
86 views
I trying to implement radasyncupload control inside radgrid.

I declare the upload control like:

<telerik:GridTemplateColumn DataField="usrSignature" EditFormColumnIndex="0"
HeaderText=
"<%$ Resources:Localization, usrSign%>"UniqueName="usrSignature">
    <ItemTemplate>
        <telerik:RadBinaryImage runat="server" ID="rb"
        DataValue='<%#Eval("usrSignature") is DBNull ? null : Eval("usrSignature")%>'
        AutoAdjustImageControlSize="false" Height="30px" Width="100px"
        AlternateText="<%$ Resources:Localization, NoSignature %>" />
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadAsyncUpload ID="raupSignature" runat="server"
        AllowedFileExtensions="bmp,gif,jpg,jpeg,png" MaxFileInputsCount="1" />
    </EditItemTemplate>
</telerik:GridTemplateColumn>

I trying to validate that when UploadedFiles.Count == 0 i send a DBNull to database, and if UpladedFiles.Count > 0 i send the image uplaoded.

if (usrSignature.UploadedFiles.Count > 0)
    scmQuery.Parameters["@usrSignature"].Value = DBNull.Value;
else
    {
    UploadedFile file = usrSignature.UploadedFiles[0];
    byte[] fileData = new byte[file.InputStream.Length];
    file.InputStream.Read(fileData, 0, (int)file.InputStream.Length);
    scmQuery.Parameters["@usrSignature"].Value = fileData;
    }

This it's fine, but if i upload a file, then i delete the uploaded file, when i proceed to submit the record, I detect that UploadedFiles.Count = 1

I need to know how can decrease the UploadedFiles.Count every time when i delete a uploaded file.

I found a similar problem in the post: RadAsyncUpload does not clear uploaded files.

I'm using the version Q1 2010, and i need to find a solution for this problem.

NOTE: I found a similar problem in your Upload / Using RadAsyncUpload in an Ajaxified Grid example. If you add a image, then you delete the image, and then you proceed to add the record, One row in the grid it's deleted. If you repeat the operation to upload and delete more files, then produce a error.

I appreciated your time and your answer.

Regards,
Felipe Meléndez.
Felipe de Jesús
Top achievements
Rank 1
 answered on 27 May 2011
2 answers
196 views
Folks using VS 2010 SP1 with Rad Controls for ASP.Net Ajax 2011. I am below link as prototype. But unlike the below link I have 1 Master and 1 detail table.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

My intention is for example if CustomerID column value is 'ALFKI' in parent Table then hide Freight (A GridTemplateColumn in my actual scenario) Data in Detail Table, else show Frieght Column data in Detail Table. So far I come up with this in Radgrid Prerender event but strugling to get a referrence to hide the Detail Table column.

protected void RadGrid1_PreRender(object sender, EventArgs e)  
    {  
        foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)  
        {  
            if (dataItem.Expanded)  
            {  
                // Need Help here to Conditionally Hide Detail Table Freight Column
                     //  if Column Value CustomerID  of Parent Table =  'ALFKI'.
                    
            }  
        }   
    }

Thanks

gc_0620
gc_0620
Top achievements
Rank 1
 answered on 27 May 2011
5 answers
177 views
Hi,

I have radconfirm window on blur of Date control. OK button gets the focus on confirm window, when i press tab, the focus goes to Cancel button. If i press tab again, the focus goes to parent page first control (here it is RadioButtonList) and allowing to navigate through radio buttons.

Does anyone know how to tab between Ok and Cancel buttons on confirm window.

I am using Confirm template to do this.
Here is my code:

<TelerikWeb:RadWindowManager ID="Singleton" runat="server" Skin="Vista">
      <ConfirmTemplate>
            <div class="windowpopup radconfirm">
                <script type="text/javascript">
                    function RadWindowManager_SetFocus(obj, ev)
                    {                               
                        if (!ev) ev = window.event;               
                        if (ev.keyCode == 9)
                        {                                   
                            if (obj.nextSibling)
                            {
                                obj.nextSibling.focus();
                            }
                            else if (obj.previousSibling)
                            {
                                 obj.previousSibling.focus();
                            }
                        }                               
                     }
               </script>

             <div class="dialogtext">
                {1}
                </div>
                <div>
                   <a onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);"
                                    onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onkeypress="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onkeypress="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" class="radwindowbutton"
                                            href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[Cancel]##</span> </span></a>
                  </div>
              </div>
       </ConfirmTemplate>
</TelerikWeb:RadWindowManager>


for some reason tab keypress event is not firing the function. But it get firing for any keypress.

I would appreciate any help I can get with this.

-Vishal

Randall
Top achievements
Rank 2
 answered on 27 May 2011
2 answers
49 views
Hi guys,

I have a "Line Chart" with 1 series inside. The X-Axis items are the months of the year like, Oct, Nov, Dec etc. and Y-Axis items are some numeric values.

The PointMarks start in the middle of the columns but I want them to overlap with Grid Lines so they must shift half column width to the (<<) left  direction. (The first point must start from X=0)

I checked the forum pages but could not find an appropriate way for that. Can you please help me to find a way to shift them without damaging the structure of the line chart ?

P.S. Please see the attachment..

Thanks,
Ervin  
ervin
Top achievements
Rank 1
 answered on 27 May 2011
1 answer
63 views
I am trying to use the RadRating component in a Customer Survey tool I am creating.  Are there any resources available that I can see to help me in understanding how to setup my database for using the RadRating and also in querying my database to provide an overall RadRating for my customer surveys?

Thanks.

Matt
Gimmik
Top achievements
Rank 1
 answered on 27 May 2011
4 answers
71 views
How do I show caption inside the image (or it could be outside) for each image?
Amber
Top achievements
Rank 1
 answered on 27 May 2011
3 answers
93 views
Can someone show me how to set focus on the "Select" button in the RadUpload object?


Robert
Top achievements
Rank 1
 answered on 27 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?