Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
396 views
Hello Team,

I need to give 3 radio buttons in edit form (type 1, type2 , type3) based on which the rest of edit form is desiged(shown/hidden).
How do i bind these radio buttons as the values that comes from database is (id for type, 1 , 2 , 3) I need to check appropriate radiobutton based on id.
Should I handle this in databound without binding this it design time?

Any pointers .
Dimo
Telerik team
 answered on 03 Nov 2010
3 answers
212 views
Hello,

I was wondering if it is possible to have a multicolumn RadComboBox being loaded using AutomaticLoadOnDemand and have the items filtered in the RadComboBox based on what the users type, but not limit the search to be against only the DataValueField of the RadComboBox. I'd like the below RadComboBox to be filtered by CUST_ID, COMPANY_NAME, CONTACT_NAME and ADDRESS when the user types anything in the RadComboBox's text area.

Here is my RadComboBox that I am interested in adding this functionality to.

Please let me know if this is possible.

<telerik:RadComboBox ID="rcbCust" runat="server" CausesValidation="false"
               EnableAutomaticLoadOnDemand="true" Width="550px"
               AutoPostBack="true" DataTextField="COMPANY_NAME"
               DataSourceID="ObjectDataSource1"
               OnSelectedIndexChanged="rcbCust_SelectedIndexChanged"
               AllowCustomText="true"
               EmptyMessage="Select a customer to enter an order for "
               EnableAjaxSkinRendering="true"
               DataValueField="CUST_ID" >
                    <HeaderTemplate>
                        <table width="100%">
                            <tr>
                                <td style="width: 115px" align="center">
                                    Customer ID
                                </td>
                                <td style="width: 115px" align="center">
                                    Company Name
                                </td>
                                <td style="width: 115px" align="center">
                                    Contact Name
                                </td>
                                <td style="width: 120px" align="center">
                                    Address
                                </td>
                            </tr>
                        </table>
    </HeaderTemplate>
    <ItemTemplate>
        <table width="100%">
            <tr>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "CUST_ID") %>
                 </td>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "COMPANY_NAME") %>
                 </td>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "CONTACT_NAME") %>
                 </td>
                 <td style="width: 120px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "ADDRESS") %>
                 </td>
            </tr>
        </table>
    </ItemTemplate>                                                                         
</telerik:RadComboBox>
Casey
Top achievements
Rank 1
 answered on 03 Nov 2010
2 answers
106 views
Hi guys,

I'm new in developing WebParts for sharepoint 2007. I'm able to create a webpart using the RadControls like the "Demo (How to create a WebPart in sharepoint)" shows. my question:
After a controls fires a request, the whole webpart (onInit,onLoad...) is called so all controls where reloadet. In my oppinion ajax only should update on control not the whole webpart. Furthermore, when a controls fires a request, all webparts on the page will be reloadet.

Is this the way Ajax works with webparts?

Jan
Jan
Top achievements
Rank 1
 answered on 03 Nov 2010
3 answers
804 views
Hi,

I am using Telerik controls for displaying data.

Inside the Telerik grid i have to show radcombobox.
I have done this using Template column, but now i am trying the same using telerik GridDropDownColumn.
For providing data to the grid, i am using a SQL data source and for populating dropdown i am using separate sql data source.
I have tried two scenarios here:
1) When the query to populate the dropdown is a subset of the main query to populate the rad grid. (In this case it was working good).
2) When the query to populate the dropdown is coming from a different table, i am getting "'System.Data.DataRowView' does not contain a property with the name ERROR" in this case.

I dont know if i am missing any property to set for the dropdown column.
Below is the same code for this....

<telerik:RadGrid ID="rgrdUpdateDropdown" runat="server" DataSourceID="dsDropDown" GridLines="None" Width="600px">
            <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" DataSourceID="dsDropDown" DataKeyNames="COMM_CD">
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EDIT_IMAGE" ButtonType="LinkButton" EditText="Edit">
                        <ItemStyle Width="2%"/>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="COMM_CD" HeaderText="ID" UniqueName="COMM_CD">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataSourceID="dsDropDown2" HeaderText="Editable" UniqueName="Dropdown1" DataField="POSSE_ADDR"
                        ListTextField="POSSE_ADDR" ListValueField="POSSE_ADDR" DropDownControlType="RadComboBox">
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataSourceID="dsDropDown"  HeaderText="Editable1" UniqueName="Dropdown12" DataField="COMM_CD"
                        ListTextField="COMM_CD" DropDownControlType="RadComboBox">
                    </telerik:GridDropDownColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
                <asp:SqlDataSource ID="dsDropDown" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
            SelectCommand='SELECT "COMM_CD","COMM_NAME" FROM "COMMUNITY"'>
        </asp:SqlDataSource>
                <asp:SqlDataSource ID="dsDropDown2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
            SelectCommand='SELECT DISTINCT "POSSE_ADDR" FROM "ADDRESS" WHERE ROWNUM < 10'>
        </asp:SqlDataSource>

Thanks
SKY
Princy
Top achievements
Rank 2
 answered on 03 Nov 2010
1 answer
115 views
the radcontextmenu by default loads downwards when clicked.  I wish for this to load upwards.  Is this possible?
Yana
Telerik team
 answered on 03 Nov 2010
1 answer
122 views

Hello,
Could you please provide an example demonstrating the Load on Demand feature with Static class or with a XML file ?

Thanks ,
Srinivas
Nikolay Tsenkov
Telerik team
 answered on 03 Nov 2010
6 answers
214 views
I'm implementing the RadWindow as a confirm dialog as show in the demo. However, my form never posts back.

I've narrowed the issue down to this:


In the demo, the input renders as follows:
<input type="submit" style="" class="PostbackButton" id="PostbackButton1" onclick="return blockConfirm('Are you sure you want to postback?', event, 330, 100,'','Custom title');" value="Confirm postback with radconfirm" name="PostbackButton1">

On my page, the input renders as follows:
<input type="button" id="ctl00_bodyContentPlaceHolder_uxTimeCard_uxContainer_uxSaveTimesheet" onclick="return blockConfirm(this, event,'Saving timesheet...','Rows without time will be removed. Do you want to continue?', 350, 150);WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$bodyContentPlaceHolder$uxTimeCard$uxContainer$uxSaveTimesheet", "", true, "", "", false, true))" value="save timesheet" name="ctl00$bodyContentPlaceHolder$uxTimeCard$uxContainer$uxSaveTimesheet" class="rfdDecorated" tabindex="-1">
Notice the additional WebForm_DoPostBackWithOptions in my onclick event as opposed to the demo. So when the line callerObj["onclick"] = ""; fires, the event is totally removed.

Please advise.
Georgi Tunev
Telerik team
 answered on 03 Nov 2010
1 answer
160 views
we bought  and install RadControls_for_Silverlight_4_2010_2_0924_DEV.msi using that we done one  xap file  using silverlight template in VS 2010  development system.
how to configure my xap file in production server . whatever all dll i have to deploy in product server and how.

please give me a detail steps because i am new to telerik .

Thanks  in Advance
Pavel Pavlov
Telerik team
 answered on 03 Nov 2010
8 answers
414 views
Is there a way to connect to a folder structure through DFS?

Thank you
Fiko
Telerik team
 answered on 03 Nov 2010
1 answer
74 views
I have an issue where column alignment breaks after the 10th grid row for custom columns. There is no difference in the behaviour during page load and during consecutive file explorer updates.

The name and size columns are aligned correctly, but the custom columns are incorrectly aligned. See provided screenshot. The custom columns are added like this (server side)

var createdDateColumn = new GridTemplateColumn
{
            HeaderText = GlobalResources_Projects.FileExplorer_CreatedDate,
            SortExpression = "CreatedDate",
            UniqueName = "CreatedDate",
            DataField = "CreatedDate",
};
createdDateColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
fileExplorer.Grid.Columns.Add(createdDateColumn);


I've tried to fix the issue by manually setting the column width to fix sizes on the server side, to no avail. This is done for all columns, including the standard 'name' and 'size'.

GridColumn column = fileExplorer.Grid.Columns.FindByUniqueNameSafe(name);
column.HeaderStyle.Width = Unit.Pixel(width);
column.ItemStyle.Width = Unit.Pixel(width);

Do you have any idea what the problem is?
Fiko
Telerik team
 answered on 03 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?