Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
386 views
This may by a RadInput issue but I am having the problem with RadDatePicker.DateInput and RadTimePicker.DateInput so I'll put this here.

When the input boxes of these controls are rendered they are empty, it takes 200-1000 ms for their values to show in IE7.

This is not only ugly but is giving my some pretty nasty headaches when it comes to my generic dirty checking scripts.

I understand timeouts and IE are necessary for many workarounds for IE bugs but is there any chance that this will be fixed?

For a sample of this go to:
http://www.telerik.com/demos/aspnet/prometheus/Calendar/Examples/DatePicker/CustomPopup/DefaultCS.aspx

You will notice that the input fields of the date pickers are blank for a small period of time before being populated with their appropriate value.

Thanks

Guido Tapia
Dimo
Telerik team
 answered on 30 Dec 2009
1 answer
545 views
Hello All,
I have a ordinary RadGrid which has Sorting option set.
Columns in the RadGrid are named like this: Class1.Class2.Property1
because I use classes inside another ones in my Collections.

Everything works perfectly expect sorting.

When I set GridSortExpression in codebehind or in aspx page, setting fails if
field's name have a point character (.)
Code below fails:

  GridSortExpression expression = new GridSortExpression();
  expression.FieldName = "Class1.Class2.Property1"; // This fails!
  expression.SetSortOrder( ... );

....

Is there another kind of naming syntax for SortColumns or how should I get it working?
This is little bit odd because RadGrid data can be show, edit etc although names have point
characters (nested classes).

Br,

Michael

Tsvetoslav
Telerik team
 answered on 30 Dec 2009
3 answers
149 views
Hi,

I have used telerik:RadScriptManager  in my SharePoint Master page. RAD Controls are working fine.

Sample:

<

form id="Form1" runat="server" onsubmit="return _spFormOnSubmitWrapper();">

 

 

 

<WebPartPages:SPWebPartManager ID="m" runat="Server" />

 

 

<telerik:RadScriptManager ID ="as" runat="server"></telerik:RadScriptManager>

When i am try  to add/edit any item in sharepoint in-built  "contacts list" ( or any sharepoint in-built  lists like links, annoucements etc ), it is not saving. It will post back and comes back to the same page.
 
If i set to default master page which doesnt have  telerik controls,  is adding the new entries to the list.

Please help me to fix this issues....

Note: i have added all necesary entries in web.config file and DLLS to GAC and RAD Controls are working fine.

 

Mareeswaran Arunachalam
Top achievements
Rank 1
 answered on 30 Dec 2009
1 answer
127 views
I need to get this fixed or maybe someone has a work around that will help us complete the implementation of the Telerik Editor.

Here is the problem. I want to use the editor as a WYSIWYG editor. Additionally, I want the editor to inherit the specified styles of the website and thus when a user begins typing into the editor the font and style of their text matches that of the website. I have a test URL where you can see the difference in behavior -- http://editortest.dev1.thenetimpact.com/

Here is what is wrong. In IE, pull up the above link. Simply click in the text area and type "This is a test". Now, click on the HTML view at the bottom of the editor. You should see this:

<p>This is a test</p>

Now, pull up the above site in FireFox and do the exact same thing, this is what you will see:

<p></p>
This is a test<br />

Notice how in FF the text you type in is outside of the Paragraph tags. This is a problem because the styles are at the P level (on purpose) and thus if you look at them side by side you will see that the font is rendered differently in IE versus FF.

I can't believe I am going to say this but in this case I need FF to act more like IE because IE is in this case behaving as I believe to be correct. What is odd is in FF if you hit enter after the text, it will then wrap the text you typed in inside a new <P> block. Again, I think this is wrong because what happens then is additional white space is added to the top whereas in IE the initial text is simply dropped inside the first applied <P> tag.

Any ideas on how to get the initially typed text in FF to fall within the initial <P> tags like IE is doing?

I am using IE version 8.0.6001.18702 and FF version 3.5.5

Also, here is the code that is currently initializing the editor:

String[] imagePath = new String[1];
        String cssPath;

        protected void Page_Init(object sender, EventArgs e)
        {
            imagePath[0] = "~/Files/image";
            cssPath = "~/css/content.css";

            radeTest.CssFiles.Add(cssPath);

            radeTest.NewLineBr = false;
            radeTest.Content = "<p></p>";
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            radeTest.SetPaths(imagePath, EditorFileTypes.Images, EditorFileOptions.All);
            radeTest.SetPaths(imagePath, EditorFileTypes.Documents, EditorFileOptions.All);
            radeTest.SetPaths(imagePath, EditorFileTypes.Flash, EditorFileOptions.All);
            radeTest.SetPaths(imagePath, EditorFileTypes.Media, EditorFileOptions.All);
            radeTest.SetPaths(imagePath, EditorFileTypes.Template, EditorFileOptions.All);
           
            radeTest.ContentFilters = EditorFilters.FixUlBoldItalic | EditorFilters.IECleanAnchors | EditorFilters.MozEmStrong | EditorFilters.ConvertFontToSpan | EditorFilters.ConvertToXhtml | EditorFilters.IndentHTMLContent;
        }


Thank you,
Derek Bemis





Dobromir
Telerik team
 answered on 30 Dec 2009
1 answer
161 views
Hello,

Is it possible to drag items to different pages on the same grid? In your drag and drop example (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx), it is possible to reorder the items by dragging them to different positions, but it only works for items on the same page, so one cannot, for example, drag an item from page 1 to page 2. I was just wondering if this is possible to implement.

Thank you,
Josh
Dimo
Telerik team
 answered on 30 Dec 2009
2 answers
293 views
hi .
i have Hierarchy Grid Like This.
 <input id="radGridClickedpvrid" name="radGridClickedpvrid" style="position: static"
                        type="hidden" />
<input id="radGridClickedRowIndex" name="radGridClickedRowIndex" style="position: static"
                        type="hidden" />

<telerik:RadGrid ID="RadGridLineCount" runat="server" GridLines="None" AllowPaging="True" Skin="Office2007" PageSize="20"
            <MasterTableView> 
                <ExpandCollapseColumn Visible="True"
                </ExpandCollapseColumn> 
                <DetailTables> 
                    <telerik:GridTableView Name="UserPrivilage" DataKeyNames="pvgid" ClientDataKeyNames="pvgid" runat="server"
                        <ExpandCollapseColumn Visible="True"
                        </ExpandCollapseColumn> 
                        <DetailTables> 
                            <telerik:GridTableView Name="Clients" DataKeyNames="clientid" runat="server"
                                <ExpandCollapseColumn Visible="True"
                                </ExpandCollapseColumn> 
                                <DetailTables> 
                                    <telerik:GridTableView Name="Accounts" DataKeyNames="accountid" runat="server"
                                        <ExpandCollapseColumn Visible="True"
                                        </ExpandCollapseColumn> 
                                        <DetailTables> 
                                            <telerik:GridTableView Name="Providers" DataKeyNames="providerid" ClientDataKeyNames="providerid" runat="server"
                                                <RowIndicatorColumn> 
                                                    <HeaderStyle Width="20px" /> 
                                                </RowIndicatorColumn> 
                                                <ExpandCollapseColumn> 
                                                    <HeaderStyle Width="20px" /> 
                                                </ExpandCollapseColumn> 
                                            </telerik:GridTableView> 
                                        </DetailTables> 
                                    </telerik:GridTableView> 
                                </DetailTables> 
                            </telerik:GridTableView> 
                        </DetailTables> 
                    </telerik:GridTableView> 
                </DetailTables> 
            </MasterTableView> 
            <ClientSettings EnableRowHoverStyle="true"
            <Selecting AllowRowSelect="true" /> 
            <ClientEvents OnRowContextMenu="RowContextMenu" />             
            </ClientSettings> 
</telerik:RadGrid> 
here i want to fine the  pvgid datakey value at  Providers Detail Table in Java Script.here is my javascript

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"
 
        <script type="text/javascript"
         
            function RowContextMenu(sender, eventArgs)  
            { 
                 
               if(eventArgs.get_tableView().get_name() == "Providers")  
                {  
              var pvridValue=eventArgs.getDataKeyValue("pvgid") 
                alert(pvridValue) 
                 document.getElementById("radGridClickedpvrid").value = pvridValue     
                // alert(GetNewValue) 
                document.getElementById("radGridClickedRowIndex").value = GetNewValue
                    var menu = $find("<%=RadCMenu1.ClientID %>");                  
                    var evt = eventArgs.get_domEvent(); 
                    var GetNewValue=eventArgs.getDataKeyValue("providerid"); 
                    //alert(GetNewValue) 
                    document.getElementById("radGridClickedRowIndex").value = GetNewValue
                    if(evt.target.tagName == "INPUT" || evt.target.tagName == "A")  
                        {  
                            return;  
                        }                   
 
                menu.show(evt);   
            
                }                              
            }  
</script> 
</telerik:RadScriptBlock> 

Can any one help me how to get the pvgid datakey value in Providers level in script. and i am able to getting the providerid datakey value.

Thank You.
Suresh K.



Suresh K
Top achievements
Rank 1
 answered on 30 Dec 2009
1 answer
220 views

I have a radGrid with Add a Record turned on and the edit is turned on for each row.  How do I validate in the code behind if the user selected Add a Record or Edit an Existing?

I have a drop down list in the Insert and Edit modes.  If the user selects add a new record, I want to populate the drop dwon list with all the values and the first one should be selected.  If the user selects edit a record, I want the current value to display.  I am getting the latter one to work.

Protected Sub RadGrid1_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.EditCommand  
        editSelected = True 
 
        Dim item As GridEditableItem = DirectCast(e.Item, GridEditableItem)  
        Dim statusLabel As Label  
        statusLabel = item.FindControl("lblStatus")  
        Session("updatedStatusValue") = statusLabel.Text.ToString()  
 
        Dim priorityLabel As Label  
        priorityLabel = item.FindControl("lblPriorityDesc")  
        Session("updatedPriorityValue") = priorityLabel.Text.ToString()  
 
    End Sub  
 
    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
 
        If "matter".Equals(e.Item.OwnerTableView.Name) Then  
            If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then  
                Dim item As GridEditableItem = e.Item  
 
                Dim ddlStatusList As DropDownList = item.FindControl("ddlStatus")  
                ddlStatusList.DataSource = GetStatusList()  
                ddlStatusList.DataBind()  
 
                If (Not Session("updatedStatusValue") Is Nothing) Or editSelected Then  
                    For Each ddlItems As ListItem In ddlStatusList.Items  
                        If ddlItems.Text = Session("updatedStatusValue") And editSelected Then  
                            ddlStatusList.SelectedValue = ddlItems.Value  
                        End If  
                    Next  
                Else  
                    ddlStatusList.SelectedValue = 1 
                End If  
 
                Dim ddlPriorityList As DropDownList = item.FindControl("ddlPriorityDesc")  
                ddlPriorityList.DataSource = GetPriorityList()  
                ddlPriorityList.DataBind()  
 
                If (Not Session("updatedPriorityValue") Is Nothing) Or editSelected Then  
                    For Each ddlItems As ListItem In ddlPriorityList.Items  
                        If ddlItems.Text = Session("updatedPriorityValue") And editSelected Then  
                            ddlPriorityList.SelectedValue = ddlItems.Value  
                        End If  
                    Next  
                Else  
                    ddlPriorityList.SelectedValue = 1 
                End If  
 
            End If  
        End If  
    End Sub 

Thanks,

Randy

Princy
Top achievements
Rank 2
 answered on 30 Dec 2009
2 answers
143 views

I have a program that needs to call ajaxRequest from client side.
When I use this code in any aspx page, it works fine.
But when I put it into a DNN module,the $find method always return null.
Is there any difference in DNN module?

var ajaxManager = null;  
 
        function pageLoad() {  
            if (ajaxManager == null) {  
                ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");  
            }  
        }  
        function SuccessHandler(privateToken, alias, message) {  
            var datetime = new Date();  
            ajaxManager.ajaxRequest("(" + datetime.toLocaleTimeString() + ")");  
        } 
JC Wu
Top achievements
Rank 1
 answered on 30 Dec 2009
7 answers
414 views
I have a situation where a client is looking for a file explorer with the ability to map to locations that don't just lie under the root of the web directory.  This could mapped network drives, UNC paths etc.  Is it possible to specify those with this File Explorer and be able to use them?

Thanks
LG
Top achievements
Rank 2
 answered on 29 Dec 2009
2 answers
185 views
i binded a combobox with a sqldatasource and created a default selected value with combobox builder.I want to select default value for my combobox is "--all--".My code look like this but its not working.

<telerik:RadComboBox ID="market" Runat="server" Width="205px" DataSourceID="market_ds" DataTextField="Code" DataValueField="MainCodeID">  
<Items>   
<telerik:RadComboBoxItem runat="server" Text="-- all --" Value="all" Selected="true"/>   
</Items>   
</telerik:RadComboBox>   
 

 

 

 

 

 

Teoman
Top achievements
Rank 1
 answered on 29 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?