Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
228 views
Hi,
I have RadGrid with one GridDropDownColumn, I want to populate this coulmn by a IList<Item> where item is
 

public

 

class Item

 

 

{

 

public string ItemData { get; set; }

 

public string ItemDescription { get; set; }

 

 

}

 

 

On myGridLoad()
I am populating IList<iTem>

 

DataGridComboBoxColumn 

 

dataGridComboBoxColumn = new DataGridComboBoxColumn();

 

 

IList<Item> DropDownList = new List<Item>();

 

for (int idx = 0; idx < 10; ++idx)

 

{

 

 

Item item = new Item();

item.ItemData = dropdownList[idx];

item.ItemDescription = dropdownList[++idx];

DropDownList.Add(item);

}

dataGridComboBoxColumn.ListValueField =

"ItemData";

 

 

dataGridComboBoxColumn.ListTextField =

"ItemDescription";

 

 

 

//how to assign this IList<item> to the ComboBoxColumn
//dataGridComboBoxColumn.DataSourceID = DropDownList;

}

 

 

 

 
Please let me know how to handle this.

thanks
virendra kumar

 

 

 

 

 

 

Mira
Telerik team
 answered on 03 Sep 2009
3 answers
146 views
Hi,


I am not sure about the status of what I am about to report, so I will write it for to be sure.

When using radGrid with the SelfHierarchy functionality and LinqDataSource , the default FilterExpression where I specify the default filter for the top parets isn't working correctly. My guess is that it is being applied to child items also.

I replaced the LinqDataSource with SqlDataSource, and it started working as expected - the filter was being applied only to the top master details view.

To replicate this use a LinqDataSource object with any type of select in it - it doesn't matter. Then set a filter - simple example "ParentId == null". It will load the parents correctly, but it will look for their childs wrong. I can also provide simple source code if it is needed to replicate the error.

Let me know about the status of this, because I would really not want to use SqlDataSource instead of LinqDataSource.

Best Regards,

Ivan.
Daniel
Telerik team
 answered on 03 Sep 2009
0 answers
78 views
Hi,

We are using our custom tables to  store appointments and recurence rules.

We are facing an problem while editing  the appt (i.e. double click and  edit)  
While  editing  a recurring  appt, we get the following options - Which is good.  
1.Edit this Occurrence
2.Edit the series
if "Edit this occurrence" is selected the inline edit form opens with the details populated and i can update. -> No issues here
but if i click Edit the series,the inline edit form opens but no data's gets populated. 
In FormCreated e.appointment object is null.
 

Thanks  for any suggestions

Code:
         <InlineEditTemplate>
                <asp:TextBox runat="server" ID="txtEdit" Height="50%" Text='<%# Eval("Subject") %>' Width="95%">
                    </asp:TextBox>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblEditStartTime" Visible="false" runat="server" Text="Start time:"></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadTimePicker ID="tpEditStartTime" Visible="false"  SelectedDate='<%# Bind("Start") %>'  Skin="Web20" runat="server">
                                    </telerik:RadTimePicker>
                                </td>
                               
                                <td>
                                    <asp:Label ID="lblEditEndTime" Visible="true" runat="server" Text="End time:"></asp:Label>
                                </td>
                                <td>
                                     <telerik:RadTimePicker ID="tpEditEndTime"  SelectedDate='<%# Bind("End") %>'  Skin="Web20" runat="server">
                                     </telerik:RadTimePicker>
                                </td>
                                <td>
                                    <asp:Button ID="btnUpdate"  runat="server"  SkinID="Web20" CommandName="Update" Text="Update" />
                                </td>
                                <td>
                                     <asp:Button ID="btnCancel" runat="server" SkinID="Web20" CommandName="Cancel" Text="Cancel" />
                                </td>
                            </tr>
                          
                        </table>
                     <asp:Label ID="lblId" Visible="false" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                    </div>
                 </InlineEditTemplate>


Anand S
Top achievements
Rank 1
 asked on 03 Sep 2009
2 answers
116 views
Hi,

I have a need to use the repeater control outside of the scheduler.  I have a system where I need to be able to present a schedule to the user and then they choose specific dates.  I see that there is a way to get the repeater to generate dates from a given set of criteria but is there any way to reuse the repeater part of the appointment editing control in my custom application?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 03 Sep 2009
2 answers
116 views
I have implemented URL rewriting for my site. It wasn't working so I asked my host to have a look at it for me. They said they needed to add a wildcard mapping for .net, which will mean all file extensions are  processed by .net.
I gave them the go ahead and once they had done this my URL rewriting started working.

The issue is that since they did that, none of the RadControls are being displayed. Instead they have changed to normal .net controls. I first noticed this with the form redecorator and then realised it is every control.
I am not sure whether it is because of the wildcard, but it just seems like too much of a coincidence that we changed that and then this started happening.

I have tested the site on my machine and it works as expected.
I removed all references to the telerik.web.ui and then added the latest version and tested this. Again it worked on my server, but as soon as it was uploaded, I was experiencing the same issues.

Is there a solution?
Jaymie
Top achievements
Rank 1
 answered on 03 Sep 2009
1 answer
127 views
Dear all and Telerik,
I have the code below
<asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional"> 
    <ContentTemplate> 
        <asp:Panel ID="pnlSignatureUpdate" runat="server" Width="850px" Style="display: none;" 
            CssClass="Popup_Table"> 
            <table border="0" class="Popup_Title" cellpadding="0" cellspacing="0" style="width: 100%"> 
                <tr> 
                    <td> 
                        <b>::<%=ResxManager.GetString("Report_Signature") %>::</b></td> 
                    <td style="width: 20px; padding-right: 2px;" align="center"> 
                        <div style="height: 17px; width: 16px; text-align: center;" class="Popup_BtClose"> 
                            <asp:LinkButton ID="lbtClose" runat="server" Style="height: 17px;" CssClass="Popup_BtClose" 
                                OnClick="btnCancel_Click">&nbsp;&nbsp;&nbsp;&nbsp;</asp:LinkButton></div> 
                    </td> 
                </tr> 
            </table> 
            <table border="0" class="Popup_Content" cellpadding="0" cellspacing="0" width="100%"> 
                <tr> 
                    <td align="center"> 
                            <telerik:RadEditor ID="txtSignature" runat="server" BackColor="White" CssClass="qsfClear" 
                                EnableResize="False" Skin="Outlook" ToolsFile="~/Controls/RadEditorTools.xml" 
                                Width="100%" Height="400px"> 
                                <Content></Content> 
                            </telerik:RadEditor> 
                    </td> 
                </tr> 
                <tr> 
                    <td style="padding-right: 3px;"> 
                        <asp:CheckBox ID="chkUse" runat="server" Text="Use as default" /></td> 
                </tr> 
                <tr> 
                    <td align="center" style="padding-top: 3px; padding-bottom: 3px"> 
                        <asp:Button ID="btnSaveSign" runat="server" Text="OK" OnClick="btnSaveSign_Click" 
                            ValidationGroup="Signature" CssClass="Control_Button0" EnableViewState="False" /> 
                        <asp:Button ID="btnCancelSign" runat="server" Text="Cancel" CssClass="Control_Button0" EnableViewState="False" /></td> 
                </tr> 
            </table> 
        </asp:Panel> 
        <div id="divSignature" runat="server"> 
        </div> 
        <ajax:ModalPopupExtender ID="mdpSignature" runat="server" TargetControlID="divSignature" 
            CancelControlID="btnCancelSign" PopupControlID="pnlSignatureUpdate" BackgroundCssClass="ModalPopupBackground"> 
        </ajax:ModalPopupExtender> 
    </ContentTemplate> 
    <Triggers> 
        <asp:AsyncPostBackTrigger ControlID="lbtChangeSignature" EventName="Click" /> 
    </Triggers> 
</asp:UpdatePanel> 
protected void lbtChangeSignature_Click(object sender, EventArgs e) 
    { 
        Data objData = new Data(); 
        try 
        { 
            objData.Connect(); 
            objData.CreateNewStoredProceder("Profile_User_DefinitionInfor_GetSignature"); 
            objData.SqlCommand.Parameters.AddWithValue("@Username", User.strUsername); 
            DataTable dt = objData.ExcuteStoredProcedureToDataTable(); 
            if (dt != null && dt.Rows.Count > 0) 
            { 
                txtSignature.Content = dt.Rows[0]["Signature"].ToString(); 
                chkUse.Checked = Convert.ToBoolean(dt.Rows[0]["IsSignatureUsed"].ToString()); 
            } 
        } 
        catch (Exception objEx) 
        { 
            new SystemMessage("", "", "MD_Reports/Reports.ascx/lbtChangeSignature_Click() <BR />" + objEx.Message).MailToSystem(); 
        } 
        finally 
        { 
            objData.DeConnect(); 
            mdpSignature.Show(); 
        } 
    } 
protected void btnSaveSign_Click(object sender, EventArgs e) 
    {         
        Data objData = new Data(); 
        try 
        { 
            objData.Connect(); 
            objData.CreateNewStoredProceder("Profile_User_DefinitionInfor_UpdateSignature"); 
            objData.SqlCommand.Parameters.AddWithValue("@Username", User.strUsername); 
>>>>>>>>>   objData.SqlCommand.Parameters.AddWithValue("@Signature", txtSignature.Content.Trim()); (**********)
            objData.SqlCommand.Parameters.AddWithValue("@IsSignatureUsed", chkUse.Checked); 
            objData.SqlCommand.ExecuteNonQuery(); 
        } 
        catch (Exception objEx) 
        { 
            new SystemMessage("MD_Reports/Reports.ascx/lbtChangeSignature_Click()", "", "MD_Reports/Reports.ascx/lbtChangeSignature_Click() <BR />" + objEx.ToString()).MailToSystem(); 
        } 
        finally 
        { 
            objData.DeConnect(); 
            mdpSignature.Hide(); 
        } 
    }


In IE 7 and 8, it run normally, but, in Firefox, the marked code (start with >>>>>>>>>), txtSignature always the previous input at show modal popup instead the current text display on RadEditor.

I think this is a bug for Telerik.
Please help me fix this.

Best regard,
Lini
Telerik team
 answered on 03 Sep 2009
1 answer
190 views
I'm binded the result of a wcf service call to a grid on the client side. All good. I'm also trying to put tooltips on various columns in the grid (also clientside). Putting the tooltips on isn't the problem. The problem starts when I go to page 2. The tooltip IDs for page 1 still exist and so the tooltip breaks. So question is how do you remove the tooltips from the tooltipmanager on the clientside. I've seen the way to so this on the server side i.e. RadToolTipManager1.TargetControls.Clear(); But there doesn't seem to be an equivalent on the client side.
Any help would be appreciated.
Thanks
Rumen
Telerik team
 answered on 03 Sep 2009
2 answers
119 views
Hi,

I want to disable the edit,delete,drag(move appointment) in some situations based on user authenication.Aim is to prevent the update.

please tell me how to disable the drag for particular appointment?

i know that there is client side functionality available.but i need to disable in server side because i have some validation.

Thanks for your help

Dhana.
Peter
Telerik team
 answered on 03 Sep 2009
5 answers
181 views
Hi

My Schedule is currently showing data from a database in the appointment section. This data contains HTML, but the tags are being shown and are not being rendered as HTML. Is there a HTMLEncode equivalent like bound colunms on Rad / data grids.

This is what is displayed:QEH <br/> BWH <br/> DCC
This is the view source:QEH &lt;br/&gt; BWH &lt;br/&gt; DCC
This is what I want:
QEH
BWH
DCC

Or is there another way to achieve this.

Andy
Andy Green
Top achievements
Rank 1
 answered on 03 Sep 2009
17 answers
213 views
Hello,

With my RadTabStrip, I have a PageView associated (PageViewID = ID) with some of my tabs.  I set_selected during the OnClientMouseOver event.  Not all tabs have a PageView.  Therefore, set_selected(-1) when there is no PageView.  This all works fine except that once a PageView has been selected it stays visible even after the user has moved away from the tabstrip and the PageView.

I tried using OnClientMouseOut to set_selected(-1).  But, that causes the wanted PageView to disappear when the user navigates from the current tab to the PageView below the tab.

Is there a way to either change set_selected(-1) after a period of time, displaying the PageView temporarily, or some other method of keeping the PageView active until the user has navigated completely away from the RadTabStrip and the PageView?

Any guidance would be greatly appreciated.

Thank you,

Doug
Doug
Top achievements
Rank 1
 answered on 03 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?