Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
79 views
Hello,

Is there a client-side function which provides smiliar "HasLowerNodes" feature in server-side??
Jason Lee
Top achievements
Rank 1
 asked on 26 Sep 2008
1 answer
193 views
Is it possible to apply the Telerik styles to an asp:Login control? I want to have a consistent form look across my whole site.

I've added RadFormDecorator to some pages, which styles the form elements nicely, but on the login page the form does not display! I'm using master pages. I've looked through the forum here and it appears to be a known issue with older versions, but I'm using the latest version.

Is there something else that could be the problem?
dave
Top achievements
Rank 1
 answered on 26 Sep 2008
3 answers
87 views
I need to make some changes on the RadSlidingZone.js....Therefore
1) .aspx page in <telerik:RadSlidingZone     ID="RadSlidingZone1"     EnableEmbeddedScripts="false"..../>

2) I copied/Cut the script from "C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Scripts\Splitter\RadSlidingZone.js"

3) I paste the script to a .js file in my Visual Studio.

4) I make the necessary changes to the scripts.

5) now to import that .js file I would do
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
    <asp:ScriptReference Path="~/JScript.js" />
    </Scripts>
    </asp:ScriptManager>

I thought that it might works but it doesn't .what am i doing wrong?
Is there a portion on documentation that Ican follow an example?

thanks,
DIP

Svetlina Anati
Telerik team
 answered on 26 Sep 2008
1 answer
151 views
Hello!

Seems there is a problem with using GridHyperLinkColumn in WSS when the NavigateUrl is relative. What will happen is that the resulting URL in the webpage will point to something like ---/_catalogs/masterpage/default.aspx which is not a valid url.
The problem is actually the HyperLink used in the GridHyperLinkColumn. HyperLink calls ResolveClientUrl, which in WSS messes up the URL.

Not a huge issue, we can render our links "manually", but it would be nice if this worked.

Thanks!
/Fredrik
Rosen
Telerik team
 answered on 26 Sep 2008
4 answers
187 views
good day all
Im trying to read the string below into a radeditor control, my problem is its not reading the \n\n characters. Its writing everything in one line without the breaks.
Does anyone know whats wrong. radEdt.content = mystring, where mystring has the value below.

Dear <Auditor First Name>\n\nYou have new audits assigned to you. Please login and schedule these audits.\n \nThese audits have the following special instructions:\n\r\n<Scheduled Audit Special Instructions>\n\nIf you have any questions please contact me on the above email address.\n\nRegards,\n \r\n \n<User First Name> <User Last Name>\r\n"

Omlac
Top achievements
Rank 1
 answered on 26 Sep 2008
8 answers
167 views
hi,
I have a grid within a WebUserControl, to edit the rows i use a editform the type WebUserControl, I noticed that if within editform use RadTextBox or RadCombobox do not work, RadCombox not deployed and the RadTextBox returns the value of Textbox, I've changed These controls for their homonyms of ASP.NET and everything works.
It may be a limitation or am I doing anything wrong?
Sebastian
Telerik team
 answered on 26 Sep 2008
1 answer
230 views
Hi there,

I would like to know how to bind rad combo with rad grid.
Here is my situation.

1. I have nothing on .aspx.cs
2. When I click edit on the grid, I can see the edit form that I made and I also see data on the rad combobox that I made. HOWEVER, the rad combobox does not show all records that I linked the rad combobox with datasourceid="SQLDSContact" so I cannot update to other people. Please educate me how to do this.

Thank You


Below is my code


<rad:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowSorting="True" DataSourceID="SqlDataSource1" EnableAJAX="True" GridLines="None"
        AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true">
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="equipmentGuid" DataSourceID="SqlDataSource1">
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <Columns>
                <rad:GridEditCommandColumn>
                </rad:GridEditCommandColumn>
                <rad:GridBoundColumn DataField="CustomerControlNo" HeaderText="Control No" SortExpression="CustomerControlNo"
                    UniqueName="CustomerControlNo">
                </rad:GridBoundColumn>                
                <rad:GridBoundColumn DataField="equipmentGuid" DataType="System.Guid" HeaderText="equipmentGuid"
                    ReadOnly="True" SortExpression="equipmentGuid" UniqueName="equipmentGuid" Visible="false">
                </rad:GridBoundColumn>
            </Columns>
            <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                        <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"
                            style="border-collapse: collapse;background:white;">
                            <tr class="EditFormHeader">
                                <td colspan="2" style="font-size: small">
                                    <b>Asset Details</b></td>
                            </tr>
                            <tr>
                                <td>
                                    <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
                                        <tr>
                                            <td>Contact
                                            </td>
                                            <td>
                                                <radC:RadComboBox ID="rcbContact" runat="server" DataSourceID="SQLDSContact" DataValueField="contactGuid" DataTextField="contactName" Value='<%# Bind("contactGuid") %>' Text='<%# Bind("contactName") %>'>
                                                </radC:RadComboBox>
                                            </td>
                                        </tr>                                        
                                        <tr>
                                            <td>
                                                Control #:</td>
                                            <td>
                                                <asp:TextBox ID="txtCCNo" runat="server" Text='<%# Bind( "customerControlNo" ) %>'>
                                                </asp:TextBox></td>
                                        </tr>                                        
                                    </table>
                                </td>                                
                            </tr>                            
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                    </asp:Button>&nbsp;
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button></td>
                            </tr>
                        </table>
                    </FormTemplate>
                </EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="true" />
            <ClientEvents OnRowSelected="RowSelected" />
        </ClientSettings>
    </rad:RadGrid><br />
    
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:uscalConnectionString %>"
        SelectCommand="ViewAsset" SelectCommandType="StoredProcedure" >
        <UpdateParameters>
                <asp:Parameter Name="equipmentGuid" Type="empty" />
                <asp:Parameter Name="customerControlNo" Type="String" />
                <asp:Parameter Name="serialNo" Type="String" />
                <asp:Parameter Name="manufacturer" Type="String" />
                <asp:Parameter Name="model" Type="String" />
                <asp:Parameter Name="description" Type="String" />
        </UpdateParameters>             
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SQLDSContact" runat="server" ConnectionString="<%$ ConnectionStrings:uscalConnectionString %>"
    SelectCommand="SELECT c.contactGuid, c.firstName + ' ' + c.lastName AS contactName FROM Contacts c, Equipment e WHERE e.contactGuid = c.contactGuid">
    <SelectParameters>
        <asp:ControlParameter ControlID="RadGrid1" Name="equipmentGuid" PropertyName="SelectedValue" Type="empty" />
    </SelectParameters>
    </asp:SqlDataSource>



Atanas Korchev
Telerik team
 answered on 26 Sep 2008
3 answers
243 views
I am using the confirm dialog, but I want to fire my ok_click event on my program for insert some values into the database.

If I click yes in the confirm dialog how do I to fire the ok_click event in my code behind?

a hug!
Tervel
Telerik team
 answered on 26 Sep 2008
1 answer
97 views
File RadSplitter.cs
In function AddAttributesToRender :
            writer.AddAttribute(HtmlTextWriterAttribute.Style, String.Format("width:1px;height:1px;{2}{3}visibility:{4};{5}", widthAttr, heightAttr, backColorAttr, absolutePositioning, visibleAttr, borderAttr));

Correct syntax is :
writer.AddAttribute(HtmlTextWriterAttribute.Style, String.Format("width:{0};height:{1};{2}{3}visibility:{4};border-width:{5};", widthAttr, heightAttr, backColorAttr, absolutePositioning, visibleAttr, borderAttr));

this error modifies the behavior of control vertical splitter.
Tsvetie
Telerik team
 answered on 26 Sep 2008
1 answer
204 views
Hi

I am trying to upload files using RadUpload, but I always get UploadedFiles.Count = 0 and InvalifFiles.Count = 0, I didn't set any restrictions on file size or type, the RadUpload is nested inside UpdatePanel, but anyway I tried to put inside RadAjaxPanel and it didn't work either.

Any help is appreciated

Thanks in advance.
Atanas Korchev
Telerik team
 answered on 26 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?