Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views

Hi,

We are using RadGrid with GridTemplateColumn which has a table in it with multiple controls. And handling OnRowSelected and OnRowDblClick client side events.
When user clicks some area in table then OnRowDblClick not fired while OnRowSelected works properly. as a work around we used a div outside the table with ondblclick event.

Is there anyother better solution for this as we are getting some other limitation and problem by handling double click through div?

Thanks

Princy
Top achievements
Rank 2
 answered on 02 Jul 2010
3 answers
101 views
Ive developed a website that uses the FileUpload component.  On my local development machine, clicking the 'Select' button launches the file selection window and Im able to select a file and upload it.  In the hosted environment, nothing happens, no window appears and I get no error messages.  Is there anything I need to be aware of when deploying this to a hosted environment ?
Genady Sergeev
Telerik team
 answered on 02 Jul 2010
1 answer
78 views
hi

i am getting the following error message(image attached)

i am programmatically creating the list view and using the demo as a base for the example

                    <div id="contentInner"
                        <telerik:RadFormDecorator  ID="RadFormDecorator1" runat="server" /> 
                        <telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" /> 
                        <telerik:RadAjaxPanel  runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"
                        <asp:PlaceHolder ID="PlaceHolder1" runat="server"
                            
                        </asp:PlaceHolder> 
                        </telerik:RadAjaxPanel> 
                    </div> 




can anyone make any suggestions.
Rosen
Telerik team
 answered on 02 Jul 2010
3 answers
182 views
I've created a custom grid template that displays 3 columns of data (see code below).  The data is then grouped by year.  How can I show a total for each of these three columns in the group footer?


                    <telerik:GridTemplateColumn HeaderStyle-Width="246" ItemStyle-Width="246"  
                        UniqueName="TemplateColumn2"
                        <HeaderTemplate> 
                            <table ID="Table1" border="0" cellpadding="0" cellspacing="0" width="246"
                                <tr> 
                                    <td align="center" colspan="3"
                                        Remaining Reserve<BR />Open MN Claims Only</td> 
                                </tr> 
                                <tr> 
                                    <td width="82px"
                                        <center> 
                                            Indemnity</center> 
                                    </td> 
                                    <td width="82px"
                                        <center> 
                                            Medical</center> 
                                    </td> 
                                    <td width="82px"
                                        <center> 
                                            Med Only</center> 
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table ID="Table2" border="0" cellpadding="0" cellspacing="0" width="246"
                                <tr> 
                                    <td align="right" width="82px"
                                        <%#DataBinder.Eval(Container.DataItem, "open_indemnity", "{0:c}")%> 
                                    </td> 
                                    <td align="right" width="82px"
                                        <%#DataBinder.Eval(Container.DataItem, "open_medical", "{0:c}")%> 
                                    </td> 
                                    <td align="right" width="82px"
                                        <%#DataBinder.Eval(Container.DataItem, "open_medonly", "{0:c}")%> 
                                    </td> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
                        <HeaderStyle Width="246px" /> 
                        <ItemStyle Width="78px" /> 
                    </telerik:GridTemplateColumn> 

Mira
Telerik team
 answered on 02 Jul 2010
1 answer
130 views
Greetings,

I am new to the Grid control and have spent hours trying to do a very simple thing.  I also looked at lots of examples but still no success.

-------------------------------------------------------------------------------
I have a database table that has three fields, all text.  One field has a full path and name of an image that is already stored on the server.

I want to get the records and display that image inside the grid (one image for each row)

How can I do this in VB.NET?
-------------------------------------------------------------------------------

Thanks in advance,

Jimmy
Princy
Top achievements
Rank 2
 answered on 02 Jul 2010
2 answers
159 views
I'm trying to remove the ability to add custom colors in the radEditor, because I don't find it really user-friendly. Looking in the telerik website, I came across the property AllowCustomColors but it seems that this property has been removed (http://www.telerik.com/help/aspnet-ajax/editor_migrationfromradeditorclassictoradeditorprometheus.html).

AllowCustomColors
n/a

 property

 Removed


Is there an easy way to achieve this, or do I need to implement my own color tool to go around the problem?

Thanks,
Sébastien
Sébastien
Top achievements
Rank 1
 answered on 02 Jul 2010
1 answer
202 views
hi

how do i format the date?

I tried with this code but gaveeme an error: Thanks

 <telerik:RadDatePicker ID="dtDate" Runat="server"
                      Culture="English (United States)" DbSelectedDate='<%# Bind("SchedDate"),"{0:dd/MM/yyyy}") %>'>
<Calendar UseRowHeadersAsSelectors="False"  UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                </telerik:RadDatePicker>
Tsvetoslav
Telerik team
 answered on 02 Jul 2010
3 answers
347 views
Hi

I have a problem with the listview I have a close proximity to the demo, however when you click on the insert button you need to do so twice before the Insert Template is used.   Stepping through the code, the same routines are called, using the same branches etc.

<telerik:RadListView ID="RadListBox1" runat="server" OnNeedDataSource="RadListView1_NeedDataSource" 
                                        ItemPlaceholderID="ProductsHolder" OnItemCommand="RadListView1_ItemCommand" DataKeyNames="CountrySapInfoId"
                                        <LayoutTemplate> 
                                            <fieldset style="width: 700px;" id="FieldSet1"
                                                <legend>SAP Country Info</legend> 
                                                <asp:Panel ID="ProductsHolder" runat="server" /> 
                                                <div style="clear: both" /> 
                                                <div style="padding: 10px"
                                                    <asp:LinkButton ID="btnInitInsert" runat="server" Text="New Sap Country Info" CommandName="InitInsert" /> 
                                                </div> 
                                            </fieldset> 
                                        </LayoutTemplate> 
                                        <ItemTemplate> 
                                            <fieldset style="border-style: none; float: left; width: 300px;"
                                                <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"
                                                    <tr> 
                                                        <td width="100px"
                                                            Company Code: 
                                                        </td> 
                                                        <td> 
                                                            <%#  Eval("SAPCompanyCode") %> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            Sales Org: 
                                                        </td> 
                                                        <td> 
                                                            <%#  Eval("SAPSalesOrg") %> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="padding-top: 5px"
                                                            <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </fieldset> 
                                        </ItemTemplate> 
                                        <EditItemTemplate> 
                                            <fieldset style="border-style: none; float: left; width: 300px;"
                                                <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"
                                                    <tr> 
                                                        <td> 
                                                            Company Code: 
                                                        </td> 
                                                        <td> 
                                                            <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            Sales Org: 
                                                        </td> 
                                                        <td> 
                                                            <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="padding-top: 5px" colspan="2"
                                                            <asp:LinkButton ID="btnUpdate" runat="server" Text="Update" CommandName="Update" 
                                                                Width="70px" /> 
                                                            <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" CommandName="Delete" 
                                                                Width="70px" /> 
                                                            <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" 
                                                                CausesValidation="false" Width="70px" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </fioeldset> 
                                        </EditItemTemplate> 
                                        <InsertItemTemplate> 
                                            <fieldset style="border-style: none; float: left; width: 300px;"
                                                <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"
                                                    <tr> 
                                                        <td width="50%"
                                                            Company Code: 
                                                        </td> 
                                                        <td> 
                                                            <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            Sales Org: 
                                                        </td> 
                                                        <td> 
                                                            <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="padding-top: 5px" colspan="2"
                                                            <asp:LinkButton ID="btnInsert" runat="server" Text="Insert" CommandName="PerformInsert" 
                                                                Width="70px" /> 
                                                            <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" 
                                                                CausesValidation="false" Width="70px" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </fieldset> 
                                        </InsertItemTemplate> 
                                    </telerik:RadListView> 

and my code behind is

 protected void RadListView1_ItemCommand(object source, RadListViewCommandEventArgs e) 
    { 
        RadListView rlv = (source as RadListView); 
        if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName) || (e.CommandName == RadListView.CancelCommandName)) 
        { 
            rlv.InsertItemPosition = RadListViewInsertItemPosition.None; 
        } 
        else if (e.CommandName == RadListView.InitInsertCommandName) 
        { 
            rlv.InsertItemPosition = RadListViewInsertItemPosition.LastItem; 
            //e.Canceled = true; 
        } 
 
        if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName)) 
        { 
            SaveCountrySapInfo(e.ListViewItem); 
        } 
 
        if (e.CommandName == "Delete"
        { 
            DeleteCountrySapInfo(e.ListViewItem); 
        } 
    } 

Any ideas?

TIA
Richard


Rosen
Telerik team
 answered on 02 Jul 2010
1 answer
192 views
Hello Telerik Team,

I am coming across the following error (Script controls may not be registered after PreRender) when I am trying to create a new tab to load the previous tab User controls into it.
When I call the Addtab() method, it loads the tab but on PageView created after loading all the child controls, I get this following error.
I am using xmlDom to load all UserControls.
Each Tab has a parent UserControl into which I am loading multiple child Controls.

After Iterating through the xmlnodelist, I finally say:
e.PageView.FindControl(parent).FindControl(LeftZone).controls.add(customControl)
Where
parent is the MainParent.ascx, LeftZone is the placeholder into which I need to add teh CustomControl (child.ascx)
When I get into this step, it executes child.ascx perfectly and when i comes out and tries to stepout of this step, I get this error.
I have followed few ref, which include: this and this and this.
Any help regading this issue will be greatly appreciated.

Thanks

T. Tsonev
Telerik team
 answered on 02 Jul 2010
1 answer
109 views
i m opening rad window with this code  from tool bar button

function MyTasksCommentToolarClick(sender, args)
      {
          var button = args.get_item();
              
          if (button.get_value() == "Add")
          {
            OpenUrlModal("ManageComment.aspx",825, 560);
          }
      }

function OpenUrlModal(Url, iWidth, iHeight) {
    var oWnd = radopen(Url, "ManageTask");
    oWnd.setSize(iWidth, iHeight);
    oWnd.set_modal(true);
    oWnd.add_close(HandleWindowClose);
    
    return false;
}

using this code in master page
 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" ReloadOnShow="true"
        Behaviors="Close">

it refresh every time when we open it in IE or Firefox but it not working for safari and chrome.
what should we do ?



Georgi Tunev
Telerik team
 answered on 02 Jul 2010
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?