Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
253 views
I want to set the default filter function for a column on the client side. Please tell me how I can do that.
Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
7 answers
1.4K+ views
Hi Telerik
How can I change dynamically ItemStyle.Font.Bold of

GridBoundColumn


I am trying with this code but does not work ?

GridBoundColumn

gc = RadGridDocument.MasterTableView.Columns.FindByUniqueName("Index") as GridBoundColumn;

foreach (var item in Items)

{

 

if (item.ParentID > 0)

gc.ItemStyle.Font.Bold =

 

true;

 

else

gc.ItemStyle.Font.Bold =

 

false;

}

Nurietin
Top achievements
Rank 1
 answered on 03 Apr 2012
1 answer
275 views

I have a RadGrid in my page.

For a particular string type column i had set the default filter function as "Contains".

On first page load i found that it appears as "Contains" in the Filter menu.
But if lets say, i filter any other column with any filter criteria and again come back to this column and open the filter menu the default filter function now automatically changed to "No Filter".

Many work arrounds i had tried but is not working for me, cant even found the exact cause for it.

Can any body help me in this regard ? I want to know why it happens like this and what may be the fixes for this ?

Thanks in advance. :)

Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
1 answer
99 views
Hi,

I have added some Images to  RadListBox(using RadBinaryImage inside ItemTemplate of RadListBox). I populated Listbox from database (field of type Image) . But the issue is I can see that image in IE but not in Firefox or Chrome. I tried the same with populating images in Northwind database and it is working. Please share your thoughts regarding this issue.

Thanks
Bavya
Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
3 answers
697 views
Hello,

   I am trying to get the combobox selected item and value in the javascript.  Does the accessing of combobox in javascript change based on the version you use?  I am using Telerik 2011.3.1305.35. 

 I have a javascript file and in that i have a function which will accept client id of the radcombobox as a parameter and now how do i get the selected index, selected item and value of that combobox? I have tried it in couple of ways but no luck.

function GetAddress(rcbCity) {
  
 // rcbCity is the clientID of the RadComboBox with ID rcbCity .
 
 how do i get the selected index,item and value here?
 
}

I am calling this GetAddress function in the user control page load.  I am adding the attributes for another button click like below
if (!IsPostBack)
 {
   btnMap.Attributes.Add(
"onClick", "GeocodeAddress('" + this.rcbCity.ClientID + "'); return false;");
}



Appreciate the help
Thanks




Princy
Top achievements
Rank 2
 answered on 03 Apr 2012
1 answer
135 views
Hi,

I need to increase the size of the description text box in the appointment  for rad scheduler. Any ideas on how to do this without creating from scratch insert and edit custom templates?

Thanks,

Erik
Princy
Top achievements
Rank 2
 answered on 03 Apr 2012
2 answers
92 views
I need to be able to know in NeedDataSource event what filter menu option was chosen by the user when filtering.  For example, if the user enters a phrase in the filter and then chooses "Contains", how do I know that the user chose "Contains".  I cannot find this anywhere in the forum or when I search the internet.
Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
1 answer
280 views
How can I retrieve a hidden asp:Label field when the OnClientSelectedIndexChanged event is raised?

javascript:
function OnClientSelectedIndexChanged(sender, eventArgs) {
    var item = eventArgs.get_item();
    if (item.get_text() == "Rejected") {
        var WorkItemId = [...]
        OpenReasonWindow(workItemId);
    }
}


markup:
<tr id="ctl00_PageContent_rtlRshItems_ctl04__2" class="rtlR rtlRL" style="background-color:Lavender;">
 
<td align="left" valign="middle" style="width:90px;">
    <div id="ctl00_PageContent_rtlRshItems_ctl04_rcbStatus" class="RadComboBox RadComboBox_Windows7">
        <table class="rcbFocused" style="border-width: 0pt; border-collapse: collapse;" summary="combobox">
            <tbody>
                <tr class="rcbReadOnly">
                    <td class="rcbInputCell rcbInputCellLeft" style="width:100%;">
                        <input id="ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_Input" class="rcbInput" type="text" readonly="readonly" value="Submitted" name="ctl00$PageContent$rtlRshItems$ctl04$rcbStatus" autocomplete="off">
                    </td>
                    <td class="rcbArrowCell rcbArrowCellRight">
                        <a id="ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_Arrow" style="overflow: hidden;display: block;position: relative;outline: none;">select</a>
                    </td>
                </tr>
            </tbody>
        </table>
 
        <input id="ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_ClientState" type="hidden" name="ctl00_PageContent_rtlRshItems_ctl04_rcbStatus_ClientState" autocomplete="off">
    </div>
</td>
 
<td class=" rtlCL" style="width:0px;">
    <asp:label id="lblWorkItemId" text="199" visible="false"> </asp:label>
</td>

I want to obtain the value of lblWorkItemId, how can I do this?
Princy
Top achievements
Rank 2
 answered on 03 Apr 2012
5 answers
230 views
I have a ListBox on my EditForm that is populated based on the CommandArgument from the ItemCommand. The data is being accessed, but when I go to add the data to the ListBox, the control isn't being found. Here's what I have: 

if (e.CommandName == "Edit") {
                GridEditFormItem item = (GridEditFormItem)(e.Item as GridDataItem).EditFormItem;
                ListBox lb = (ListBox)item.FindControl("lstMembers");

the ListBox is null, the control is named "lstMembers" (I already checked that) my suspicion is something in the previous line of code. When I put the same two lines in another block (different command name) it works fine, so I think it might have something to do with the fact that the control itself isn't loaded yet. Can someone confirm/clarify this for me, and if so give me a work around?
Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
3 answers
153 views
Hi

We're looking for a control that can elegantly display a graph (where nodes can have multiple parents) as opposed to a tree.

Currently we're using RadTreeView and where nodes have multiple parents, we make a copy of the node and place it under each parent. This is not ideal as it does not highlight to the user that they're dealing with a 'copy' and what and where the other parents are.

  • Is there a way to get RadTreeView to display nodes that have multiple parents?
  • Are there any other Telerik controls that are more adept to displaying this data?
  • If not, do you have any recommendations on how we could proceed?

Thanks
Clinton Smyth
Top achievements
Rank 1
 answered on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?