Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
76 views
     i have a datagrid ,,in server-side  grid datasource changed once 2 min ,,how client-side konw datagrid  source changing and do something
     thanks
pan
Top achievements
Rank 1
 asked on 23 Oct 2008
3 answers
335 views
Hi

I'm using the RadDatePicker to allow the user to select a month and day.
When the user clicks on the Month Name another popup appears
where the user can select a specific month and year and there is also a 'Today' button at the bottom of this second popup.

Is it possible to have the 'Today' button appear by default on the popup calendar and not only be visible when the user also clicks on the Monthname in the calendar popup?

Bye
Dimo
Telerik team
 answered on 23 Oct 2008
3 answers
118 views
Hello ,
i working with RadGrid but i have a problem could any one help me to resolve it .
i have RadGrid and i set it's data source with list of business objects

     <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Default2006" GridLines="None"
            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="500px"
            ShowStatusBar="True" OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand"
            OnDeleteCommand="RadGrid1_DeleteCommand" OnItemDataBound="RadGrid1_ItemDataBound">
            <mastertableview gridlines="None" commanditemdisplay="Top" datakeynames="ACC_ID">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn HeaderText="NAME" UniqueName="NAME" DataField="Name">
                    </telerik:GridBoundColumn>                    
                    <telerik:GridDropDownColumn
                        DropDownControlType="DropDownList"
                        HeaderText="TYPE"
                        UniqueName="ACC_TYPE" DataField="CRM_ACC_TYPE"  
                        ListTextField="NAME" ListValueField="TYPE_ID">
                    </telerik:GridDropDownColumn>
                    <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete"
                        CommandName="Delete" ConfirmDialogType="RadWindow" />
                </Columns>
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </mastertableview>
            <filtermenu skin="Vista" enabletheming="True">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </filtermenu>
        </telerik:RadGrid>

CRM_ACC_TYPE is a property at data item and it is an object also conatin 2 property NAME and TYPE_ID



i faced problem at GridDropDownColumn when  data grid bound i cann't see the Name of  CRM_ACC_TYPE in the  GridDropDownColumn in view mode it is empty.

and in edit mode i bound the GridDropDownColumn in RadGrid1_ItemDataBound Event some thing like that

    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;
                GridEditManager editMan = editedItem.EditManager;

                GridDropDownColumnEditor editor = editMan.GetColumnEditor("ACC_TYPE") as GridDropDownColumnEditor;
                editor.DataSource = enties.CRM_ACC_TYPE;
                editor.DataTextField = "NAME";
                editor.DataValueField = "TYPE_ID";
                editor.DataBind();
            }
}




Princy
Top achievements
Rank 2
 answered on 23 Oct 2008
3 answers
137 views
Hi,

Is it possible to assign the subobjects along with the main object to the radgrid?

Following is my problem which i was unable to resolve...Kindly help me....

I have a "Document Object" which contains following properties

DocumentID
DocumentName
TemplateID
objTemplate

I have another object called "Template" which contains the following properties
TemplateID
TemplateName
Field1
Field2

***Template object exist for every document object and here I am assigning the datasource as Document Object to the Radgrid.

Now i would like to display in the following format which includes Document properties and template properties.

DocumentID
DocumentName
TemplateID
TemplateName
Field1
Field2

I have tried with somany tricks and unfortunately i was not success to solve my problem.

I would appreciate if you could help me in this problem.

PS: If possible please post the code as well.

Many Thanks,
S
Princy
Top achievements
Rank 2
 answered on 23 Oct 2008
3 answers
64 views
I'm new to Telerik but not 3rd party controls.  While I've read a lot of information on the rad grid and cell selection, I have yet to find a way to actually act on the contents of the cell when a cell is clicked on the client.  I've looked at wiring a cell click event according to http://www.telerik.com/help/aspnet-ajax/grdselectingcells.html but I need to be able to act on the actual cell data via a javascript function.  

 

Daniel
Telerik team
 answered on 23 Oct 2008
3 answers
75 views
I'm using VS 2008 Pro on WS 2008 Std with all latest service packs, also latest released version of RadControls.

But having problems with RadMenu Item Builder which is NOT saving changes such as new menu items. I'm not sure what I'm doing wrong, or whether there is some incompatibility somewhere...
Paul
Telerik team
 answered on 23 Oct 2008
2 answers
140 views
Hi Everyone,

I have taken one Radwindow and have a rad editor displayed in that window.
Now with the help of javascript i taking a reference to the editor and passing the html content from the window to the form.

Here is the javascript in the RadWindow having editor

function saveClicked() 
    { 
        var editor = $find('ReditorGc')//GetRadEditor("ReditorGc"); //get a reference to RadEditor client object 
        var oValue = editor.get_html(false); //get the HTML content 
        oValue = oValue.replace("<","&lt;"); 
        oValue = oValue.replace(">","&gt;");
        var oWindow = GetRadWindow(); 
        var arg = new Object();      
        arg.content = oValue; 
        oWindow.argument = arg; 
        oWindow.Close();         
    } 
    function GetRadWindow() 
    { 
        var oWindow = null
        if (window.radWindow) oWindow = window.radWindow; 
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
        return oWindow; 
    }  

OnClientClose event of the RadWindow and i taking the value of the Editor and savin in the database.

Code for OnClientClose is below :

sScript.Append("function OnClientClose(radWindow){if(radWindow.argument){alert(radWindow.argument.content);document.getElementById('" + hfPropertyChanged.ClientID + "').value = radWindow.argument.content;__doPostBack('" + hfPropertyChanged.UniqueID + "','');}}"); 
            Telerik.Web.UI.RadScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "OnClientClose", sScript.ToString(), true); 

The problem is :
When i type normal text without any formatting like making it bold,underline etc i am  ABLE to get the value.
But when i add the Bold, underline etc it FAILS with error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occured while processing the request on the server. The status code returned from the server was: 500

I am unable to figure out the problem. What i think is it is not able to parse html tags like "<,>,/" etc thats why its failing to send the content.

Can you please provide a solution or feedback

Thanx.
Huzefa


Huzefa
Top achievements
Rank 1
 answered on 23 Oct 2008
4 answers
149 views
case:
I m doing a grid which need to filter by a Fix value "Apple" and "Orange" in sepcific column.how can i do it.. any suggestion.

regards,
kenny
kenny
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
79 views
Hi,

We are using the client side objects and this works well for drag and drop except if we are performing operations in the root. I am not sure how to handle this - as we normally get the parent using get_parent but for root nodes this throws a javascript error. Is there a safer way to test to see if you are dragging to the root and thereby, determining that the destination for the drop is in the root? Thanks.
Veselin Vasilev
Telerik team
 answered on 23 Oct 2008
1 answer
76 views
Dear Telerik Support Team,

 

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Index1

76%

77%

88%

12%

45%

73%

21%

22%

38%

12%

N/A

N/A

Index2

23%

76%

88%

24%

77%

12%

33%

15%

94%

44%

N/A

N/A


I want to show statistic data as above using RadGrid. (RadGrid.DataSource = DataTable)

However, the DataTable will disappear after PostBack(such as paging and sorting).

My questions are:

(1) Can the RadGrid remains the data after postback? (Currently, I place them in Session and reassign in the Page_Load event. RadGrid.DataSource = Session[“tbl”])

(2) As you see, the table above is simple, no sorting or paging needed. Is there any trim-down version of RadGrid to suit such case? Although I can disable all functions of RadGrid, I still think that RadGrid should be used for more complicated cases.

Regards,
Alex

Shinu
Top achievements
Rank 2
 answered on 23 Oct 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?